Commit 5ee23596 authored by Yusei Tahara's avatar Yusei Tahara

2008-08-28 yusei

* Use Base_translateString or translateString instead of N_ for translation message.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23265 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7c3f2088
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<string>Products.PythonScripts.PythonScript</string> <tuple/>
<string>PythonScript</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -121,9 +118,8 @@ if line_found == False:\n ...@@ -121,9 +118,8 @@ if line_found == False:\n
order_line.setResource(resource.getRelativeUrl())\n order_line.setResource(resource.getRelativeUrl())\n
order_line.setQuantity(quantity)\n order_line.setQuantity(quantity)\n
\n \n
N_ = context.Base_translateString\n context.Base_redirect(\'view\',\n
context.Base_redirect(\'view\', \\\n keep_items={\'portal_status_message\':context.Base_translateString("Added to cart.")})\n
keep_items={\'portal_status_message\': N_("Added to cart.")})\n
]]></string> </value> ]]></string> </value>
...@@ -196,7 +192,6 @@ context.Base_redirect(\'view\', \\\n ...@@ -196,7 +192,6 @@ context.Base_redirect(\'view\', \\\n
<string>order_line</string> <string>order_line</string>
<string>new_quantity</string> <string>new_quantity</string>
<string>True</string> <string>True</string>
<string>N_</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -223,6 +218,12 @@ context.Base_redirect(\'view\', \\\n ...@@ -223,6 +218,12 @@ context.Base_redirect(\'view\', \\\n
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Add resource to shopping cart</string> </value> <value> <string>Add resource to shopping cart</string> </value>
</item> </item>
<item>
<key> <string>uid</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>warnings</string> </key> <key> <string>warnings</string> </key>
<value> <value>
......
2008-08-28 yusei
* Use Base_translateString or translateString instead of N_ for translation message.
2007-06-07 Ivan 2007-06-07 Ivan
* Update. Split core script from widgets * Update. Split core script from widgets
......
116 118
\ No newline at end of file \ No newline at end of file
...@@ -76,7 +76,7 @@ if listbox is not None:\n ...@@ -76,7 +76,7 @@ if listbox is not None:\n
if cache is not None:\n if cache is not None:\n
return cache\n return cache\n
\n \n
N_ = context.Base_translateString\n Base_translateString = context.Base_translateString\n
\n \n
# XXX this is just a copy / paste of the old implementation\n # XXX this is just a copy / paste of the old implementation\n
# dirty code : if we are in domain or report tree, just use the old one, otherwise\n # dirty code : if we are in domain or report tree, just use the old one, otherwise\n
...@@ -161,7 +161,7 @@ for listboxline in listboxline_list:\n ...@@ -161,7 +161,7 @@ for listboxline in listboxline_list:\n
if listboxline.isStatLine():\n if listboxline.isStatLine():\n
string_property = "%s+++++" % string_property\n string_property = "%s+++++" % string_property\n
elif listboxline.isTitleLine():\n elif listboxline.isTitleLine():\n
string_property = ("%s+++++" % str(N_(string_property)))[:max_title_property_len]\n string_property = ("%s+++++" % str(Base_translateString(string_property)))[:max_title_property_len]\n
new_column_max_len = max(len(string_property),\n new_column_max_len = max(len(string_property),\n
max_line_len.get(column_id, 0))\n max_line_len.get(column_id, 0))\n
\n \n
...@@ -236,7 +236,7 @@ return result\n ...@@ -236,7 +236,7 @@ return result\n
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>cache</string> <string>cache</string>
<string>N_</string> <string>Base_translateString</string>
<string>result</string> <string>result</string>
<string>min_column_width</string> <string>min_column_width</string>
<string>_getiter_</string> <string>_getiter_</string>
...@@ -293,6 +293,12 @@ return result\n ...@@ -293,6 +293,12 @@ return result\n
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>uid</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>warnings</string> </key> <key> <string>warnings</string> </key>
<value> <value>
......
2008-08-28 yusei
* Use Base_translateString or translateString instead of N_ for translation message.
2007-10-30 jerome 2007-10-30 jerome
* Support for list fields in report_view * Support for list fields in report_view
* define macros for deferred rendering * define macros for deferred rendering
......
63 64
\ No newline at end of file \ No newline at end of file
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
portal = context.getPortalObject()\n portal = context.getPortalObject()\n
N_ = portal.Base_translateString\n Base_translateString = portal.Base_translateString\n
\n \n
cell_range = []\n cell_range = []\n
add_predicate = 1\n add_predicate = 1\n
...@@ -150,13 +150,13 @@ if add_predicate == 1:\n ...@@ -150,13 +150,13 @@ if add_predicate == 1:\n
min_qty = criterion.min\n min_qty = criterion.min\n
max_qty = criterion.max\n max_qty = criterion.max\n
if min_qty is None:\n if min_qty is None:\n
predicate_title = N_("Quantity < ${max_quantity}",\n predicate_title = Base_translateString("Quantity < ${max_quantity}",\n
mapping={\'max_quantity\': max_qty})\n mapping={\'max_quantity\': max_qty})\n
elif max_qty is None:\n elif max_qty is None:\n
predicate_title = N_("${min_quantity} <= Quantity",\n predicate_title = Base_translateString("${min_quantity} <= Quantity",\n
mapping={\'min_quantity\': min_qty})\n mapping={\'min_quantity\': min_qty})\n
else:\n else:\n
predicate_title = N_("${min_quantity} <= Quantity < ${max_quantity}",\n predicate_title = Base_translateString("${min_quantity} <= Quantity < ${max_quantity}",\n
mapping={\'min_quantity\': min_qty,\n mapping={\'min_quantity\': min_qty,\n
\'max_quantity\': max_qty})\n \'max_quantity\': max_qty})\n
break\n break\n
...@@ -226,7 +226,7 @@ return cell_range\n ...@@ -226,7 +226,7 @@ return cell_range\n
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>portal</string> <string>portal</string>
<string>N_</string> <string>Base_translateString</string>
<string>cell_range</string> <string>cell_range</string>
<string>add_predicate</string> <string>add_predicate</string>
<string>no_option_base_category_list</string> <string>no_option_base_category_list</string>
......
2008-08-28 yusei
* Use Base_translateString or translateString instead of N_ for translation message.
2008-07-01 luke 2008-07-01 luke
* added support for int_index and reference for Transformation children * added support for int_index and reference for Transformation children
* Transformation related forms proxified * Transformation related forms proxified
......
277 278
\ No newline at end of file \ No newline at end of file
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