Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #15608 -- Added Nicaraguan Spanish locale (format file only). T…

…hanks, fitoria.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15841 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit b46cbc49c297a9254d2ebdf95107335ff43cded9 1 parent 243d0be
Jannis Leidel jezdez authored
1  django/conf/global_settings.py
View
@@ -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')),
6 django/conf/locale/__init__.py
View
@@ -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',
0  django/conf/locale/es_NI/__init__.py
View
No changes.
30 django/conf/locale/es_NI/formats.py
View
@@ -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
+
Please sign in to comment.
Something went wrong with that request. Please try again.