Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
erp5
Commits
bcf10033
Commit
bcf10033
authored
Jul 31, 2013
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_discussion: translate post summary
parent
2b3da2a4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
19 deletions
+15
-19
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionPost_getSummaryAsHTML.xml
...skins/erp5_discussion/DiscussionPost_getSummaryAsHTML.xml
+14
-18
bt5/erp5_discussion/bt/revision
bt5/erp5_discussion/bt/revision
+1
-1
No files found.
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionPost_getSummaryAsHTML.xml
View file @
bcf10033
...
@@ -36,13 +36,14 @@
...
@@ -36,13 +36,14 @@
<key>
<string>
_text
</string>
</key>
<key>
<string>
_text
</string>
</key>
<value>
<unicode
encoding=
"cdata"
>
<![CDATA[
<value>
<unicode
encoding=
"cdata"
>
<![CDATA[
<tal:block tal:define="discussion_post_object here/getObject;\n
<tal:block i18n:domain="ui"\n
tal:define="discussion_post_object here/getObject;\n
author_dict discussion_post_object/DiscussionPost_getAuthorDict;\n
author_dict discussion_post_object/DiscussionPost_getAuthorDict;\n
author_url author_dict/author_url;\n
author_url author_dict/author_url;\n
author_signature author_dict/author_signature;\n
author_signature author_dict/author_signature;\n
author_title author_dict/author_title;\n
author_title author_dict/author_title;\n
author_thumbnail_url author_dict/author_thumbnail_url;\n
author_thumbnail_url author_dict/author_thumbnail_url;\n
is_author_thumbnai_available python: author_thumbnail_url is not None;\n
is_author_thumbnai
l
_available python: author_thumbnail_url is not None;\n
discussion_post_id discussion_post_object/getId;\n
discussion_post_id discussion_post_object/getId;\n
discussion_post_uid discussion_post_object/getUid;\n
discussion_post_uid discussion_post_object/getUid;\n
discussion_post_title discussion_post_object/getTitle;\n
discussion_post_title discussion_post_object/getTitle;\n
...
@@ -50,37 +51,31 @@
...
@@ -50,37 +51,31 @@
discussion_post_creation_date python: here.Base_FormatDate(discussion_post_object.getCreationDate());\n
discussion_post_creation_date python: here.Base_FormatDate(discussion_post_object.getCreationDate());\n
discussion_post_validation_state_title discussion_post_object/getTranslatedValidationStateTitle;\n
discussion_post_validation_state_title discussion_post_object/getTranslatedValidationStateTitle;\n
discussion_post_stripped_html discussion_post_object/asStrippedHTML;\n
discussion_post_stripped_html discussion_post_object/asStrippedHTML;\n
attachment_list discussion_post_object/DiscussionPost_getAttachmentList;\n
isUserAllowedToPost python: discussion_post_object.getParentValue().DiscussionThread_isUserAllowedToPost()">
\n
isUserAllowedToPost python: discussion_post_object.getParentValue().DiscussionThread_isUserAllowedToPost()">
\n
\n
\n
<div
class=
"discussion-post-header"
>
\n
<div
class=
"discussion-post-header"
>
\n
\n
\n
<div
class=
"thumbnail"
\n
<div
class=
"thumbnail"
\n
tal:condition=
"is_author_thumbnai_available"
>
\n
tal:condition=
"is_author_thumbnai
l
_available"
>
\n
<img
tal:attributes=
"src string:${author_thumbnail_url}?display=thumbnail&format=png"
/>
\n
<img
tal:attributes=
"src string:${author_thumbnail_url}?display=thumbnail&format=png"
/>
\n
</div>
\n
</div>
\n
\n
\n
<div
class=
"title"
>
\n
<div
class=
"title"
i18n:translate=
""
>
\n
<a
class=
"discussion-post-title"
\n
<a
class=
"discussion-post-title"
i18n:name=
"discussion_post_title"
tal:attributes=
"href string:${discussion_post_url}/view; name discussion_post_uid"
tal:content=
"discussion_post_title"
></a>
\n
tal:attributes=
"href string:${discussion_post_url}/view;\n
name discussion_post_uid"
\n
tal:content=
"discussion_post_title"
></a>
\n
by\n
by\n
<a
class=
"discussion-post-creator-title-link"
\n
<a
class=
"discussion-post-creator-title-link"
i18n:name=
"discussion_post_author"
tal:attributes=
"href author_url"
tal:content=
"author_title"
></a>
\n
tal:attributes=
"href author_url"
\n
tal:content=
"author_title"
></a>
\n
at \n
at \n
<span
tal:content=
"discussion_post_creation_date"
></span>
\n
<span
tal:content=
"discussion_post_creation_date"
i18n:name=
"discussion_post_creation_date"
></span>
\n
</div>
\n
</div>
\n
\n
\n
</div>
\n
</div>
\n
\n
\n
<div
class=
"discussion-post-body-container"
\n
<div
class=
"discussion-post-body-container"
\n
tal:content=
"structure discussion_post_stripped_html"
></div>
\n
tal:content=
"structure discussion_post_stripped_html"
></div>
\n
\n
\n
<div
class=
"attachment"
\n
<div
class=
"attachment"
\n
tal:condition=
"python: len(attachment_list)"
>
\n
tal:condition=
"python: len(attachment_list)"
>
\n
<p>
Attachments:
</p>
\n
<p
i18n:translate=
""
>
Attachments:
</p>
\n
<ul>
\n
<ul>
\n
<li
tal:repeat=
"attachment attachment_list"
>
\n
<li
tal:repeat=
"attachment attachment_list"
>
\n
<a
tal:attributes=
"href attachment/url"
\n
<a
tal:attributes=
"href attachment/url"
\n
...
@@ -88,7 +83,6 @@
...
@@ -88,7 +83,6 @@
</li>
\n
</li>
\n
</ul>
\n
</ul>
\n
</div>
\n
</div>
\n
\n
\n
\n
<div
tal:condition=
"python: author_signature is not None"
\n
<div
tal:condition=
"python: author_signature is not None"
\n
class=
"discussion-post-author-signature-container"
\n
class=
"discussion-post-author-signature-container"
\n
...
@@ -97,9 +91,11 @@
...
@@ -97,9 +91,11 @@
<div
class=
"discussion-post-actions"
>
\n
<div
class=
"discussion-post-actions"
>
\n
<button
tal:condition=
"isUserAllowedToPost"
\n
<button
tal:condition=
"isUserAllowedToPost"
\n
type=
"submit"
title=
"Reply"
\n
type=
"submit"
title=
"Reply"
\n
i18n:attributes=
"title"
\n
name=
"DiscussionThread_redirectCreateNewDiscussionPost:method"
\n
name=
"DiscussionThread_redirectCreateNewDiscussionPost:method"
\n
tal:attributes=
"onclick python: \'redirectCreateCitedNewDiscussionPost(\\\'%s\\\')\' %discussion_post_id"
\n
tal:attributes=
"onClick python: \'redirectCreateCitedNewDiscussionPost(\\\'%s\\\')\' %discussion_post_id"
\n
class=
"discussion-post-action-button"
>
Reply
</button>
\n
class=
"discussion-post-action-button"
\n
i18n:translate=
""
>
Reply
</button>
\n
</div>
\n
</div>
\n
\n
\n
</tal:block>
</tal:block>
...
...
bt5/erp5_discussion/bt/revision
View file @
bcf10033
139
140
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment