Author: jezdez
Date: 2010-04-29 09:37:39 -0500 (Thu, 29 Apr 2010)
New Revision: 13050

Modified:
   django/trunk/django/conf/locale/ca/formats.py
   django/trunk/django/conf/locale/es/formats.py
   django/trunk/django/conf/locale/eu/formats.py
   django/trunk/django/conf/locale/lt/formats.py
   django/trunk/django/conf/locale/lv/formats.py
   django/trunk/django/conf/locale/pt/formats.py
   django/trunk/django/conf/locale/vi/formats.py
Log:
Fixed #12980 - Use raw strings for locale formats which contain single 
backslahes. Thanks for report and patch, Martin von L?\195?\182wis and Ramiro 
Morales.

Modified: django/trunk/django/conf/locale/ca/formats.py
===================================================================
--- django/trunk/django/conf/locale/ca/formats.py       2010-04-29 14:37:04 UTC 
(rev 13049)
+++ django/trunk/django/conf/locale/ca/formats.py       2010-04-29 14:37:39 UTC 
(rev 13050)
@@ -2,11 +2,11 @@
 # This file is distributed under the same license as the Django package.
 #
 
-DATE_FORMAT = 'j \de F \de Y'
+DATE_FORMAT = r'j \de F \de Y'
 TIME_FORMAT = 'G:i:s'
-DATETIME_FORMAT = 'j \de F \de Y \\a \le\s G:i'
-YEAR_MONTH_FORMAT = 'F \de\l Y'
-MONTH_DAY_FORMAT = 'j \de F'
+DATETIME_FORMAT = r'j \de F \de Y \a \le\s G:i'
+YEAR_MONTH_FORMAT = r'F \de\l Y'
+MONTH_DAY_FORMAT = r'j \de F'
 SHORT_DATE_FORMAT = 'd/m/Y'
 SHORT_DATETIME_FORMAT = 'd/m/Y G:i'
 FIRST_DAY_OF_WEEK = 1 # Monday

Modified: django/trunk/django/conf/locale/es/formats.py
===================================================================
--- django/trunk/django/conf/locale/es/formats.py       2010-04-29 14:37:04 UTC 
(rev 13049)
+++ django/trunk/django/conf/locale/es/formats.py       2010-04-29 14:37:39 UTC 
(rev 13050)
@@ -2,11 +2,11 @@
 # This file is distributed under the same license as the Django package.
 #
 
-DATE_FORMAT = 'j \de F \de Y'
+DATE_FORMAT = r'j \de F \de Y'
 TIME_FORMAT = 'H:i:s'
-DATETIME_FORMAT = 'j \de F \de Y \a \l\a\s H:i'
-YEAR_MONTH_FORMAT = 'F \de Y'
-MONTH_DAY_FORMAT = 'j \de F'
+DATETIME_FORMAT = r'j \de F \de Y \a \l\a\s H:i'
+YEAR_MONTH_FORMAT = r'F \de Y'
+MONTH_DAY_FORMAT = r'j \de F'
 SHORT_DATE_FORMAT = 'd/m/Y'
 SHORT_DATETIME_FORMAT = 'd/m/Y H:i'
 FIRST_DAY_OF_WEEK = 1 # Monday

Modified: django/trunk/django/conf/locale/eu/formats.py
===================================================================
--- django/trunk/django/conf/locale/eu/formats.py       2010-04-29 14:37:04 UTC 
(rev 13049)
+++ django/trunk/django/conf/locale/eu/formats.py       2010-04-29 14:37:39 UTC 
(rev 13050)
@@ -2,7 +2,7 @@
 # This file is distributed under the same license as the Django package.
 #
 
-DATE_FORMAT = 'Yeko M\re\n d\a'
+DATE_FORMAT = r'Yeko M\re\n d\a'
 TIME_FORMAT = 'H:i:s'
 # DATETIME_FORMAT = 
 # YEAR_MONTH_FORMAT = 

Modified: django/trunk/django/conf/locale/lt/formats.py
===================================================================
--- django/trunk/django/conf/locale/lt/formats.py       2010-04-29 14:37:04 UTC 
(rev 13049)
+++ django/trunk/django/conf/locale/lt/formats.py       2010-04-29 14:37:39 UTC 
(rev 13050)
@@ -2,7 +2,7 @@
 # This file is distributed under the same license as the Django package.
 #
 
-DATE_FORMAT = 'Y \m. F j \d.'
+DATE_FORMAT = r'Y \m. F j \d.'
 TIME_FORMAT = 'H:i:s'
 # DATETIME_FORMAT = 
 # YEAR_MONTH_FORMAT = 

Modified: django/trunk/django/conf/locale/lv/formats.py
===================================================================
--- django/trunk/django/conf/locale/lv/formats.py       2010-04-29 14:37:04 UTC 
(rev 13049)
+++ django/trunk/django/conf/locale/lv/formats.py       2010-04-29 14:37:39 UTC 
(rev 13050)
@@ -2,12 +2,12 @@
 # This file is distributed under the same license as the Django package.
 #
 
-DATE_FORMAT = 'Y. \g\a\d\a j. F'
+DATE_FORMAT = r'Y. \g\a\d\a j. F'
 TIME_FORMAT = 'H:i:s'
 # DATETIME_FORMAT = 
-YEAR_MONTH_FORMAT = 'Y. \g. F'
+YEAR_MONTH_FORMAT = r'Y. \g. F'
 MONTH_DAY_FORMAT = 'j. F'
-SHORT_DATE_FORMAT = 'Y. \g\a\d\a j. M'
+SHORT_DATE_FORMAT = r'Y. \g\a\d\a j. M'
 # SHORT_DATETIME_FORMAT = 
 # FIRST_DAY_OF_WEEK = 
 # DATE_INPUT_FORMATS = 

Modified: django/trunk/django/conf/locale/pt/formats.py
===================================================================
--- django/trunk/django/conf/locale/pt/formats.py       2010-04-29 14:37:04 UTC 
(rev 13049)
+++ django/trunk/django/conf/locale/pt/formats.py       2010-04-29 14:37:39 UTC 
(rev 13050)
@@ -2,11 +2,11 @@
 # This file is distributed under the same license as the Django package.
 #
 
-DATE_FORMAT = 'j \de F \de Y'
+DATE_FORMAT = r'j \de F \de Y'
 TIME_FORMAT = 'H:i:s'
 # DATETIME_FORMAT = 
-YEAR_MONTH_FORMAT = 'F \de Y'
-MONTH_DAY_FORMAT = 'j \de F'
+YEAR_MONTH_FORMAT = r'F \de Y'
+MONTH_DAY_FORMAT = r'j \de F'
 SHORT_DATE_FORMAT = 'd/m/Y'
 # SHORT_DATETIME_FORMAT = 
 # FIRST_DAY_OF_WEEK = 

Modified: django/trunk/django/conf/locale/vi/formats.py
===================================================================
--- django/trunk/django/conf/locale/vi/formats.py       2010-04-29 14:37:04 UTC 
(rev 13049)
+++ django/trunk/django/conf/locale/vi/formats.py       2010-04-29 14:37:39 UTC 
(rev 13050)
@@ -2,9 +2,9 @@
 # This file is distributed under the same license as the Django package.
 #
 
-DATE_FORMAT = '\N\gà\y d \t\há\n\g n \nă\m Y'
+DATE_FORMAT = r'\N\gà\y d \t\há\n\g n \nă\m Y'
 TIME_FORMAT = 'H:i:s'
-DATETIME_FORMAT = 'H:i:s \N\gà\y d \t\há\n\g n \nă\m Y'
+DATETIME_FORMAT = r'H:i:s \N\gà\y d \t\há\n\g n \nă\m Y'
 YEAR_MONTH_FORMAT = 'F Y'
 MONTH_DAY_FORMAT = 'j F'
 SHORT_DATE_FORMAT = 'd-m-Y'

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to