[i18n] yams constraint messages updated
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 23 Apr 2010 13:25:31 +0200
changeset 5387 aed0c441923a
parent 5386 4c92202ab130
child 5396 78d92a47a4e5
[i18n] yams constraint messages updated
i18n/en.po
i18n/es.po
i18n/fr.po
web/test/unittest_views_basecontrollers.py
--- a/i18n/en.po	Fri Apr 23 13:25:02 2010 +0200
+++ b/i18n/en.po	Fri Apr 23 13:25:31 2010 +0200
@@ -58,18 +58,6 @@
 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 ""
 
@@ -3813,6 +3801,18 @@
 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 ""
 
--- a/i18n/es.po	Fri Apr 23 13:25:02 2010 +0200
+++ b/i18n/es.po	Fri Apr 23 13:25:31 2010 +0200
@@ -63,18 +63,6 @@
 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"
 
@@ -3900,6 +3888,18 @@
 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 ""
 
--- a/i18n/fr.po	Fri Apr 23 13:25:02 2010 +0200
+++ b/i18n/fr.po	Fri Apr 23 13:25:31 2010 +0200
@@ -63,18 +63,6 @@
 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"
 
@@ -3943,6 +3931,18 @@
 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"
 
--- a/web/test/unittest_views_basecontrollers.py	Fri Apr 23 13:25:02 2010 +0200
+++ b/web/test/unittest_views_basecontrollers.py	Fri Apr 23 13:25:31 2010 +0200
@@ -222,7 +222,7 @@
                     '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 @@
                     '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',