From b46cbc49c297a9254d2ebdf95107335ff43cded9 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Tue, 15 Mar 2011 22:13:24 +0000 Subject: [PATCH] Fixed #15608 -- Added Nicaraguan Spanish locale (format file only). Thanks, fitoria. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15841 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/conf/global_settings.py | 1 + django/conf/locale/__init__.py | 6 ++++++ django/conf/locale/es_NI/__init__.py | 0 django/conf/locale/es_NI/formats.py | 30 ++++++++++++++++++++++++++++ 4 files changed, 37 insertions(+) create mode 100644 django/conf/locale/es_NI/__init__.py create mode 100644 django/conf/locale/es_NI/formats.py diff --git a/django/conf/global_settings.py b/django/conf/global_settings.py index 46a8b8fe1c399..97b7ac670f078 100644 --- a/django/conf/global_settings.py +++ b/django/conf/global_settings.py @@ -57,6 +57,7 @@ ('es', gettext_noop('Spanish')), ('es-ar', gettext_noop('Argentinian Spanish')), ('es-mx', gettext_noop('Mexican Spanish')), + ('es-ni', gettext_noop('Nicaraguan Spanish')), ('et', gettext_noop('Estonian')), ('eu', gettext_noop('Basque')), ('fa', gettext_noop('Persian')), diff --git a/django/conf/locale/__init__.py b/django/conf/locale/__init__.py index 503ded83c5005..2f19dc5913b34 100644 --- a/django/conf/locale/__init__.py +++ b/django/conf/locale/__init__.py @@ -95,6 +95,12 @@ 'name': 'Spanish Mexico', 'name_local': u'espa\xf1ol de Mexico', }, + 'es-ni': { + 'bidi': False, + 'code': 'es-ni', + 'name': 'Nicaraguan Spanish', + 'name_local': u'espa\xf1ol de Nicaragua', + }, 'et': { 'bidi': False, 'code': 'et', diff --git a/django/conf/locale/es_NI/__init__.py b/django/conf/locale/es_NI/__init__.py new file mode 100644 index 0000000000000..e69de29bb2d1d diff --git a/django/conf/locale/es_NI/formats.py b/django/conf/locale/es_NI/formats.py new file mode 100644 index 0000000000000..b91d7f8dbdf81 --- /dev/null +++ b/django/conf/locale/es_NI/formats.py @@ -0,0 +1,30 @@ +# -*- encoding: utf-8 -*- +# This file is distributed under the same license as the Django package. +# + +DATE_FORMAT = r'j \de F \de Y' +TIME_FORMAT = 'H:i:s' +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: ISO 8601 +DATE_INPUT_FORMATS = ( + '%d/%m/%Y', '%d/%m/%y', # '25/10/2006', '25/10/06' + '%Y%m%d', # '20061025' + +) +TIME_INPUT_FORMATS = ( + '%H:%M:%S', '%H:%M', # '14:30:59', '14:30' +) +DATETIME_INPUT_FORMATS = ( + '%d/%m/%Y %H:%M:%S', + '%d/%m/%Y %H:%M', + '%d/%m/%y %H:%M:%S', + '%d/%m/%y %H:%M', +) +DECIMAL_SEPARATOR = '.' +THOUSAND_SEPARATOR = ',' +NUMBER_GROUPING = 3 +