summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarc Garcia <garcia.marc@gmail.com>2009-06-08 13:46:06 +0000
committerMarc Garcia <garcia.marc@gmail.com>2009-06-08 13:46:06 +0000
commita25d53191c2ad869ba688da77d04c78a6c7b4640 (patch)
tree6261b30bad094066296df97319770f7ae73d4c90 /tests
parentf973c57aaac3e918ac0234acbbbc86834ccfca86 (diff)
[soc2009/i18n-improvements] Created a specific function to get locale formats (to avoid using gettext), and updated the code that used gettext.
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/i18n-improvements@10956 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
-rw-r--r--tests/regressiontests/i18n/tests.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/regressiontests/i18n/tests.py b/tests/regressiontests/i18n/tests.py
index 94e792cf54..dc875c6a31 100644
--- a/tests/regressiontests/i18n/tests.py
+++ b/tests/regressiontests/i18n/tests.py
@@ -64,6 +64,15 @@ status.
'as'
>>> print s
Password
+
+>>> from django.utils.formats import getformat
+>>> activate('en')
+>>> getformat('DATE_FORMAT')
+'N j, Y'
+>>> activate('ca')
+>>> getformat('DATE_FORMAT')
+'j \de N \de Y'
+
"""
__test__ = {