Skip to content

Commit

Permalink
* Add Spanish translation and the needed configuration to make it all…
Browse files Browse the repository at this point in the history
… work.
  • Loading branch information
bgroff committed Jul 6, 2018
1 parent 4d5d15d commit 870ebf9
Show file tree
Hide file tree
Showing 4 changed files with 185 additions and 165 deletions.
6 changes: 4 additions & 2 deletions django_kala/django_kala/settings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
# Internationalization
# https://docs.djangoproject.com/en/1.10/topics/i18n/

LANGUAGE_CODE = 'en-us'
LANGUAGE_CODE = 'es'

TIME_ZONE = 'UTC'

Expand All @@ -63,7 +63,9 @@
USE_L10N = True

USE_TZ = True

LOCALE_PATHS = (
os.path.join(os.path.normpath(os.path.join(BASE_DIR, os.pardir)), 'locale'),
)

# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.10/howto/static-files/
Expand Down
1 change: 1 addition & 0 deletions django_kala/django_kala/settings/middleware.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
Expand Down
Binary file added django_kala/locale/es/LC_MESSAGES/django.mo
Binary file not shown.

0 comments on commit 870ebf9

Please sign in to comment.