Commit bcfe0711 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Use a heristic method to translate worklist names, such as "Drafts to validate (18)".


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1425 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e69fca69
......@@ -56,11 +56,30 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
i18n:translate="" i18n:domain="ui">
-- <tal:block tal:replace="action/title" /> --
</option>
<option value="1"
i18n:translate="" i18n:domain="ui"
tal:content="action/name"
tal:attributes="value action/url"
tal:condition="not:action/disabled">Saut</option>
<tal:block tal:condition="not:action/disabled"
tal:define="name python: action.get('name', '');
index python: name.find(' (');
">
<tal:block tal:condition="python: index >= 0">
<option value="1" tal:attributes="value action/url">
<tal:block tal:content="python: name[:index]"
i18n:translate="" i18n:domain="ui">
Drafts to confirmed
</tal:block>
<tal:block tal:replace="python: name[index:]">
(12)
</tal:block>
</option>
</tal:block>
<tal:block tal:condition="python: index < 0">
<option value="1"
i18n:translate="" i18n:domain="ui"
tal:content="action/name"
tal:attributes="value action/url">
name
</option>
</tal:block>
</tal:block>
</span>
</span>
<span tal:condition="user_actions">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment