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