Author: mark
Date: 2008-08-13 08:10:30 -0600 (Wed, 13 Aug 2008)
New Revision: 3555

Modified:
   FormEncode/trunk/formencode/national.py
Log:
formatstrings in common format for postal code explanations (in English)

Modified: FormEncode/trunk/formencode/national.py
===================================================================
--- FormEncode/trunk/formencode/national.py     2008-08-13 14:02:09 UTC (rev 
3554)
+++ FormEncode/trunk/formencode/national.py     2008-08-13 14:10:30 UTC (rev 
3555)
@@ -183,14 +183,14 @@
         >>> ArgentinianPostalCode.to_python('5555')
         Traceback (most recent call last):
             ...
-        Invalid: Please enter a zip code (CNNNNCCC)
+        Invalid: Please enter a zip code (LnnnnLLL)
     """
 
     regex = re.compile(r'^([a-zA-Z]{1})\s*(\d{4})\s*([a-zA-Z]{3})$')
     strip = True
 
     messages = {
-        'invalid': _("Please enter a zip code (%s)") % _("CNNNNCCC"),
+        'invalid': _("Please enter a zip code (%s)") % _("LnnnnLLL"),
         }
 
     def _to_python(self, value, state):
@@ -218,14 +218,14 @@
         >>> CanadianPostalCode.to_python('5555')
         Traceback (most recent call last):
             ...
-        Invalid: Please enter a zip code (CNC NCN)
+        Invalid: Please enter a zip code (LnL nLn)
     """
 
     regex = re.compile(r'^([a-zA-Z]\d[a-zA-Z])\s?(\d[a-zA-Z]\d)$')
     strip = True
 
     messages = {
-        'invalid': _("Please enter a zip code (%s)") % _("CNC NCN"),
+        'invalid': _("Please enter a zip code (%s)") % _("LnL nLn"),
         }
 
     def _to_python(self, value, state):


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
FormEncode-CVS mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/formencode-cvs

Reply via email to