Commit 1c06a049 authored by Yusei Tahara's avatar Yusei Tahara

2008-08-28 yusei

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

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23237 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 11555d67
......@@ -66,11 +66,11 @@
<item>
<key> <string>_body</string> </key>
<value> <string>portal = context.getPortalObject()\n
N_ = portal.Base_translateString\n
Base_translateString = portal.Base_translateString\n
\n
currency = context.portal_preferences.getPreferredAccountingTransactionCurrency()\n
if currency is None:\n
raise ValueError, N_("Currency must be defined in Preferences")\n
raise ValueError, Base_translateString("Currency must be defined in Preferences")\n
\n
currency_value = context.restrictedTraverse(currency)\n
precision = currency_value.getQuantityPrecision()\n
......@@ -127,7 +127,7 @@ return precision\n
<string>_getattr_</string>
<string>context</string>
<string>portal</string>
<string>N_</string>
<string>Base_translateString</string>
<string>currency</string>
<string>None</string>
<string>ValueError</string>
......
749
\ No newline at end of file
750
\ 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