For upgrades
[wolnelektury.git] / src / wolnelektury / settings / locale.py
1 # This file is part of Wolne Lektury, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Wolne Lektury. 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
11 LOCALE_PATHS = [
12     path.join(PROJECT_DIR, 'locale')
13 ]
14
15 # Language code for this installation. All choices can be found here:
16 # http://www.i18nguy.com/unicode/language-identifiers.html
17 LANGUAGE_CODE = 'pl'
18
19
20 LANGUAGES = tuple(sorted([
21     ('pl', 'polski'),
22     ('de', 'Deutsch'),
23     ('en', 'English'),
24     ('lt', 'lietuvių'),
25     ('fr', 'français'),
26     ('ru', 'русский'),
27     ('es', 'español'),
28     ('uk', 'українська'),
29     # ('jp', '日本語'),
30     ('it', 'italiano'),
31 ], key=lambda x: x[0]))