Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 authored March 15, 2011
1  django/conf/global_settings.py
@@ -57,6 +57,7 @@
57 57
     ('es', gettext_noop('Spanish')),
58 58
     ('es-ar', gettext_noop('Argentinian Spanish')),
59 59
     ('es-mx', gettext_noop('Mexican Spanish')),
  60
+    ('es-ni', gettext_noop('Nicaraguan Spanish')),
60 61
     ('et', gettext_noop('Estonian')),
61 62
     ('eu', gettext_noop('Basque')),
62 63
     ('fa', gettext_noop('Persian')),
6  django/conf/locale/__init__.py
@@ -95,6 +95,12 @@
95 95
         'name': 'Spanish Mexico',
96 96
         'name_local': u'espa\xf1ol de Mexico',
97 97
     },
  98
+    'es-ni': {
  99
+        'bidi': False,
  100
+        'code': 'es-ni',
  101
+        'name': 'Nicaraguan Spanish',
  102
+        'name_local': u'espa\xf1ol de Nicaragua',
  103
+    },
98 104
     'et': {
99 105
         'bidi': False,
100 106
         'code': 'et',
0  django/conf/locale/es_NI/__init__.py
No changes.
30  django/conf/locale/es_NI/formats.py
... ...
@@ -0,0 +1,30 @@
  1
+# -*- encoding: utf-8 -*-
  2
+# This file is distributed under the same license as the Django package.
  3
+#
  4
+
  5
+DATE_FORMAT = r'j \de F \de Y'
  6
+TIME_FORMAT = 'H:i:s'
  7
+DATETIME_FORMAT = r'j \de F \de Y \a \l\a\s H:i'
  8
+YEAR_MONTH_FORMAT = r'F \de Y'
  9
+MONTH_DAY_FORMAT = r'j \de F'
  10
+SHORT_DATE_FORMAT = 'd/m/Y'
  11
+SHORT_DATETIME_FORMAT = 'd/m/Y H:i'
  12
+FIRST_DAY_OF_WEEK = 1 			# Monday: ISO 8601 
  13
+DATE_INPUT_FORMATS = (
  14
+    '%d/%m/%Y', '%d/%m/%y',            	# '25/10/2006', '25/10/06'
  15
+    '%Y%m%d',                          	# '20061025'
  16
+
  17
+)
  18
+TIME_INPUT_FORMATS = (
  19
+    '%H:%M:%S', '%H:%M',		# '14:30:59', '14:30'
  20
+)
  21
+DATETIME_INPUT_FORMATS = (
  22
+    '%d/%m/%Y %H:%M:%S',
  23
+    '%d/%m/%Y %H:%M',
  24
+    '%d/%m/%y %H:%M:%S',
  25
+    '%d/%m/%y %H:%M',
  26
+)
  27
+DECIMAL_SEPARATOR = '.'
  28
+THOUSAND_SEPARATOR = ','
  29
+NUMBER_GROUPING = 3
  30
+

0 notes on commit b46cbc4

Please sign in to comment.
Something went wrong with that request. Please try again.