From d15a15495aa994f7f1193f2ec58b3c552a691b4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Thu, 5 Aug 2010 09:01:38 +0000 Subject: [PATCH] translate solver actions make a multi lines field for comments git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@37510 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../listbox_comment.xml | 10 ++++++++-- .../listbox_solver.xml | 2 +- bt5/erp5_simulation/bt/revision | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/Delivery_viewSolveDivergenceDialog/listbox_comment.xml b/bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/Delivery_viewSolveDivergenceDialog/listbox_comment.xml index 26ea1afb89..2a30d8f2a0 100644 --- a/bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/Delivery_viewSolveDivergenceDialog/listbox_comment.xml +++ b/bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/Delivery_viewSolveDivergenceDialog/listbox_comment.xml @@ -12,7 +12,9 @@ <item> <key> <string>delegated_list</string> </key> <value> - <list/> + <list> + <string>height</string> + </list> </value> </item> <item> @@ -74,12 +76,16 @@ <dictionary> <item> <key> <string>field_id</string> </key> - <value> <string>my_string_field</string> </value> + <value> <string>my_comment</string> </value> </item> <item> <key> <string>form_id</string> </key> <value> <string>Base_viewFieldLibrary</string> </value> </item> + <item> + <key> <string>height</string> </key> + <value> <int>1</int> </value> + </item> <item> <key> <string>target</string> </key> <value> <string>Click to edit the target</string> </value> diff --git a/bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/Delivery_viewSolveDivergenceDialog/listbox_solver.xml b/bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/Delivery_viewSolveDivergenceDialog/listbox_solver.xml index 0d012d94ad..694d1b7a61 100644 --- a/bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/Delivery_viewSolveDivergenceDialog/listbox_solver.xml +++ b/bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/Delivery_viewSolveDivergenceDialog/listbox_solver.xml @@ -155,7 +155,7 @@ <dictionary> <item> <key> <string>_text</string> </key> - <value> <string>python:[(\'Do Nothing\', \'\')] + [(x.getSolverActionTitle() or x.getTitleOrId(), x.getRelativeUrl()) for x in cell.getCausalityValue().getSolverValueList()]</string> </value> + <value> <string>python:[(context.Base_translateString(\'Do Nothing\'), \'\')] + [(context.Base_translateString(x.getSolverActionTitle()) or x.getTranslatedTitle(), x.getRelativeUrl()) for x in cell.getCausalityValue().getSolverValueList()]</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_simulation/bt/revision b/bt5/erp5_simulation/bt/revision index b5db9c417a..acfba60953 100644 --- a/bt5/erp5_simulation/bt/revision +++ b/bt5/erp5_simulation/bt/revision @@ -1 +1 @@ -139 \ No newline at end of file +141 \ No newline at end of file -- 2.30.9