summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonin Bourguignon <abo@openerp.com>2013-01-21 19:16:50 +0100
committerAntonin Bourguignon <abo@openerp.com>2013-01-21 19:16:50 +0100
commit8ab50cc0efbc52fd043e4252d32e845abfad00a7 (patch)
tree8995d312f7db92b09ef57cbe19c9cff159f7abd8
parent0a0e5e9fb02817a0a12c1019590e540ab4f9eb05 (diff)
[WIP] remove a useless translation phase
bzr revid: abo@openerp.com-20130121181650-md0t80lokegr5kx1
-rw-r--r--openerp/addons/base/res/res_config.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/openerp/addons/base/res/res_config.py b/openerp/addons/base/res/res_config.py
index 68f11d989c6..7f5dd7779e5 100644
--- a/openerp/addons/base/res/res_config.py
+++ b/openerp/addons/base/res/res_config.py
@@ -605,7 +605,7 @@ class res_config_settings(osv.osv_memory):
def get_warning_config(cr, msg, context=None):
res_config_obj = pooler.get_pool(cr.dbname).get('res.config.settings')
- # Treat the msg
+ # Process the msg
# 1/ find the path and field references, put them in a list
references = re.findall(r'\[((?:path|field):[a-z_\.]*)\]', msg, flags=re.I)
@@ -622,7 +622,7 @@ def get_warning_config(cr, msg, context=None):
# 3/ replace the text references by the %s conversion symbol
msg = re.sub(r'\[((?:path|field):[a-z_\.]*)\]', '%s', msg, flags=re.I)
- # 4/ translate all the strings, substitute and return the result
- return exceptions.WarningConfig(_(msg) % tuple(map(_, values)))
+ # 4/ substitute and return the result
+ return exceptions.WarningConfig(msg % tuple(values))
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: