Commit 4098b7e3 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[i18n] yams constraint messages updated

parent 4c92202ab130
......@@ -57,18 +57,6 @@ msgstr ""
msgid "%(value)r doesn't match the %(regexp)r regular expression"
msgstr ""
#, python-format
msgid "%(value)r must be %(op)s %(boundary)s"
msgstr ""
#, python-format
msgid "%(value)r must be <= %(boundary)s"
msgstr ""
#, python-format
msgid "%(value)r must be >= %(boundary)s"
msgstr ""
#, python-format
msgid "%d days"
msgstr ""
......@@ -3812,6 +3800,18 @@ msgstr ""
msgid "value associated to this key is not editable manually"
msgstr ""
#, python-format
msgid "value must be %(op)s %(boundary)s"
msgstr ""
#, python-format
msgid "value must be <= %(boundary)s"
msgstr ""
#, python-format
msgid "value must be >= %(boundary)s"
msgstr ""
#, python-format
msgid "value should have maximum size of %s"
msgstr ""
......
......@@ -62,18 +62,6 @@ msgstr "%(subject)s %(etype)s #%(eid)s (%(login)s)"
msgid "%(value)r doesn't match the %(regexp)r regular expression"
msgstr ""
#, python-format
msgid "%(value)r must be %(op)s %(boundary)s"
msgstr ""
#, python-format
msgid "%(value)r must be <= %(boundary)s"
msgstr ""
#, python-format
msgid "%(value)r must be >= %(boundary)s"
msgstr ""
#, python-format
msgid "%d days"
msgstr "%d días"
......@@ -3899,6 +3887,18 @@ msgstr ""
msgid "value associated to this key is not editable manually"
msgstr "el valor asociado a este elemento no es editable manualmente"
#, python-format
msgid "value must be %(op)s %(boundary)s"
msgstr ""
#, python-format
msgid "value must be <= %(boundary)s"
msgstr ""
#, python-format
msgid "value must be >= %(boundary)s"
msgstr ""
#, python-format
msgid "value should have maximum size of %s"
msgstr ""
......
......@@ -62,18 +62,6 @@ msgstr "%(subject)s %(etype)s #%(eid)s (%(login)s)"
msgid "%(value)r doesn't match the %(regexp)r regular expression"
msgstr "%(value)r ne correspond pas à l'expression régulière %(regexp)r"
#, python-format
msgid "%(value)r must be %(op)s %(boundary)s"
msgstr "%(value)r doit être %(op)s %(boundary)s"
#, python-format
msgid "%(value)r must be <= %(boundary)s"
msgstr "%(value)r doit être <= %(boundary)s"
#, python-format
msgid "%(value)r must be >= %(boundary)s"
msgstr "%(value)r doit être >= %(boundary)s"
#, python-format
msgid "%d days"
msgstr "%d jours"
......@@ -3942,6 +3930,18 @@ msgstr "valeur"
msgid "value associated to this key is not editable manually"
msgstr "la valeur associée à cette clé n'est pas éditable manuellement"
#, python-format
msgid "value must be %(op)s %(boundary)s"
msgstr "la valeur doit être %(op)s %(boundary)s"
#, python-format
msgid "value must be <= %(boundary)s"
msgstr "la valeur doit être <= %(boundary)s"
#, python-format
msgid "value must be >= %(boundary)s"
msgstr "la valeur doit être >= %(boundary)s"
#, python-format
msgid "value should have maximum size of %s"
msgstr "la valeur doit être de taille %s au maximum"
......
......@@ -222,7 +222,7 @@ class EditControllerTC(CubicWebTC):
'described_by_test-subject:X': u(feid),
}
ex = self.assertRaises(ValidationError, self.ctrl_publish, req)
self.assertEquals(ex.errors, {'amount-subject': 'value [0;100] constraint failed for value -10'})
self.assertEquals(ex.errors, {'amount-subject': 'value must be >= 0'})
req = self.request()
req.form = {'eid': ['X'],
'__type:X': 'Salesterm',
......@@ -231,7 +231,7 @@ class EditControllerTC(CubicWebTC):
'described_by_test-subject:X': u(feid),
}
ex = self.assertRaises(ValidationError, self.ctrl_publish, req)
self.assertEquals(ex.errors, {'amount-subject': 'value [0;100] constraint failed for value 110'})
self.assertEquals(ex.errors, {'amount-subject': 'value must be <= 100'})
req = self.request()
req.form = {'eid': ['X'],
'__type:X': 'Salesterm',
......
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