Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hamza
erp5-Boxiang
Commits
e76adbc8
Commit
e76adbc8
authored
Jul 08, 2015
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
knowledge_pad: translate worklists names
parent
ce03d16f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/ERP5Site_getWorklistObjectList.xml
...rtal_skins/erp5_gadget/ERP5Site_getWorklistObjectList.xml
+8
-4
No files found.
bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/ERP5Site_getWorklistObjectList.xml
View file @
e76adbc8
...
...
@@ -50,17 +50,21 @@
</item>
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string>
from Products.ERP5Type.Document import newTempDocument\n
<value>
<string>
from Products.ERP5Type.Message import translateString\n
from Products.ERP5Type.Document import newTempDocument\n
return_list = []\n
i = 1\n
portal = context.getPortalObject()\n
for worklist in context.portal_workflow.listActionInfos():\n
# XXX worklist translation process is a bit tricky. We translate only the first part of "XXX to Validate (count)"\n
title = worklist[\'title\']\n
title, count = title.split(\' (\', 1)\n
title = "%s (%s" % ( translateString(title), count )\n
o = newTempDocument(portal, str(i))\n
o.edit(\n
count=worklist[\'count\'],\n
title=worklist[\'title\'],\n
worklist_url=worklist[\'url\'],\n
\n
title=title,\n
worklist_url=worklist[\'url\']\n
)\n
return_list.append(o)\n
i+=1\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