Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_workflow
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenjie.zheng
erp5_workflow
Commits
83e52c00
Commit
83e52c00
authored
Oct 16, 2015
by
wenjie.zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_core: ERP5Site_updateTranslationTable uses accessor to get state title.
parent
93f60cb5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_updateTranslationTable.xml
...ortal_skins/erp5_core/ERP5Site_updateTranslationTable.xml
+5
-4
No files found.
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_updateTranslationTable.xml
View file @
83e52c00
...
@@ -96,13 +96,14 @@ for portal_type in portal_type_list:\n
...
@@ -96,13 +96,14 @@ for portal_type in portal_type_list:\n
translated_message=translated_message))\n
translated_message=translated_message))\n
\n
\n
# translate state title as well\n
# translate state title as well\n
if state.title != \'\' :\n
state_title = state.getTitle()\n
if state_title not in [None, \'\']:\n
state_var_title = \'%s_title\' % state_var\n
state_var_title = \'%s_title\' % state_var\n
msg_id = getMessageIdWithContext(state
.
title, \'state\', wf_id)\n
msg_id = getMessageIdWithContext(state
_
title, \'state\', wf_id)\n
translated_message = context.Localizer.erp5_ui.gettext(msg_id, default=\'\', lang=lang).encode(\'utf-8\')\n
translated_message = context.Localizer.erp5_ui.gettext(msg_id, default=\'\', lang=lang).encode(\'utf-8\')\n
if translated_message == \'\':\n
if translated_message == \'\':\n
msg_id = state
.
title\n
msg_id = state
_
title\n
translated_message = context.Localizer.erp5_ui.gettext(state
.
title.decode(\'utf-8\'), lang=lang).encode(\'utf-8\')\n
translated_message = context.Localizer.erp5_ui.gettext(state
_
title.decode(\'utf-8\'), lang=lang).encode(\'utf-8\')\n
key = (lang, pt_id, state_var_title, state_ref, msg_id)\n
key = (lang, pt_id, state_var_title, state_ref, msg_id)\n
if not translated_keys.has_key(key):\n
if not translated_keys.has_key(key):\n
translated_keys[key] = None # mark as translated\n
translated_keys[key] = None # mark as translated\n
...
...
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