Code layout change.
[wolnelektury.git] / src / wolnelektury / settings / locale.py
1 # -*- coding: utf-8 -*-
2 from os import path
3 from .paths import PROJECT_DIR
4
5 # If you set this to False, Django will make some optimizations so as not
6 # to load the internationalization machinery.
7 USE_I18N = True
8 USE_L10N = True
9
10 LOCALE_PATHS = [
11     path.join(PROJECT_DIR, 'locale-contrib')
12 ]
13
14 # Language code for this installation. All choices can be found here:
15 # http://www.i18nguy.com/unicode/language-identifiers.html
16 LANGUAGE_CODE = 'pl'
17
18 gettext = lambda s: s
19
20 LANGUAGES = tuple(sorted([
21     ('pl', u'polski'),
22     ('de', u'Deutsch'),
23     ('en', u'English'),
24     ('lt', u'lietuvių'),
25     ('fr', u'français'),
26     ('ru', u'русский'),
27     ('es', u'español'),
28     ('uk', u'українська'),
29 #    ('jp', u'日本語'),
30     ('it', u'italiano'),
31 ], key=lambda x: x[0]))