X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/87ff3f803d2f147e6fa939a99c4c4a4ca6aa965f..c26ab6ee15974c1133a6d08c459b51199185f25f:/wolnelektury/settings/locale.py?ds=inline diff --git a/wolnelektury/settings/locale.py b/wolnelektury/settings/locale.py new file mode 100644 index 000000000..7f9e90574 --- /dev/null +++ b/wolnelektury/settings/locale.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +from os import path +from settings.paths import PROJECT_DIR + +# If you set this to False, Django will make some optimizations so as not +# to load the internationalization machinery. +USE_I18N = True + +LOCALE_PATHS = [ + path.join(PROJECT_DIR, 'locale-contrib') +] + +# Language code for this installation. All choices can be found here: +# http://www.i18nguy.com/unicode/language-identifiers.html +LANGUAGE_CODE = 'pl' + +gettext = lambda s: s + +LANGUAGES = tuple(sorted([ + ('pl', u'polski'), + ('de', u'Deutsch'), + ('en', u'English'), + ('lt', u'lietuvių'), + ('fr', u'français'), + ('ru', u'русский'), + ('es', u'español'), + ('uk', u'українська'), +# ('jp', u'日本語'), +# ('it', u'italiano'), +], key=lambda x: x[0]))