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
30973c35
Commit
30973c35
authored
Oct 12, 2015
by
wenjie.zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_core: ERP5Site_updateTranslationTable when generate table, only check related portal type.
parent
a85f3c5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_updateTranslationTable.xml
...ortal_skins/erp5_core/ERP5Site_updateTranslationTable.xml
+4
-0
No files found.
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_updateTranslationTable.xml
View file @
30973c35
...
...
@@ -72,6 +72,7 @@ def catalog_translation_list(object_list):\n
object_list = []\n
portal_workflow = context.portal_workflow\n
portal_type_list = context.portal_types.objectValues()\n
\n
for wf in portal_workflow.objectValues():\n
if wf is None:\n
continue\n
...
...
@@ -80,6 +81,9 @@ for wf in portal_workflow.objectValues():\n
for state_id, state in wf.getStateValueList().items():\n
for lang in supported_languages:\n
for portal_type in portal_type_list:\n
if wf.getId() not in portal_type.getTypeWorkflowList() and portal_type.getId() not in getattr(portal_workflow.getChainDict(), wf.getId(),[]):\n
# do not check unrelated portal type.\n
continue\n
key = (lang, portal_type, state_var, state_id)\n
if not translated_keys.has_key(key):\n
translated_message = context.Localizer.erp5_ui.gettext(state_id, lang=lang).encode(\'utf-8\')\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