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