diff options
| author | Martin Trigaux <mat@odoo.com> | 2016-01-13 14:31:02 +0100 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2016-01-13 14:46:30 +0100 |
| commit | bb56e484b767aa037ec697dd11b0bd865ec31db1 (patch) | |
| tree | 57377fdd4bc6048bd6488baaf4744e2e07e01944 /addons/anonymization/anonymization.py | |
| parent | 2ace8f0270b26eae08c6fd6814605326de28da43 (diff) | |
[FIX] all: construction of translations lookup
When evaluated, the translation function never finds a match if a variable is
integrated into the untranslated text.
SHAME! :bell: :raising_hand:
Diffstat (limited to 'addons/anonymization/anonymization.py')
| -rw-r--r-- | addons/anonymization/anonymization.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/anonymization/anonymization.py b/addons/anonymization/anonymization.py index 581a5d8f586..5ad6f8eea42 100644 --- a/addons/anonymization/anonymization.py +++ b/addons/anonymization/anonymization.py @@ -72,7 +72,7 @@ class ir_model_fields_anonymization(osv.osv): if global_state == 'anonymized': raise UserError(_("The database is currently anonymized, you cannot create, modify or delete fields.")) elif global_state == 'unstable': - msg = _("The database anonymization is currently in an unstable state. Some fields are anonymized," + \ + msg = _("The database anonymization is currently in an unstable state. Some fields are anonymized," " while some fields are not anonymized. You should try to solve this problem before trying to create, write or delete fields.") raise UserError(msg) @@ -339,7 +339,7 @@ class ir_model_fields_anonymize_wizard(osv.osv_memory): # remove the placeholer: eview.remove(placeholder) else: - msg = _("The database anonymization is currently in an unstable state. Some fields are anonymized," + \ + msg = _("The database anonymization is currently in an unstable state. Some fields are anonymized," " while some fields are not anonymized. You should try to solve this problem before trying to do anything else.") raise UserError(msg) @@ -372,7 +372,7 @@ class ir_model_fields_anonymize_wizard(osv.osv_memory): if state == 'anonymized': self._raise_after_history_update(cr, uid, history_id, _('Error !'), _("The database is currently anonymized, you cannot anonymize it again.")) elif state == 'unstable': - msg = _("The database anonymization is currently in an unstable state. Some fields are anonymized," + \ + msg = _("The database anonymization is currently in an unstable state. Some fields are anonymized," " while some fields are not anonymized. You should try to solve this problem before trying to do anything.") self._raise_after_history_update(cr, uid, history_id, 'Error !', msg) @@ -509,7 +509,7 @@ class ir_model_fields_anonymize_wizard(osv.osv_memory): if state == 'clear': raise UserError(_("The database is not currently anonymized, you cannot reverse the anonymization.")) elif state == 'unstable': - msg = _("The database anonymization is currently in an unstable state. Some fields are anonymized," + \ + msg = _("The database anonymization is currently in an unstable state. Some fields are anonymized," " while some fields are not anonymized. You should try to solve this problem before trying to do anything.") raise UserError(msg) |
