This repository has been archived by the owner on Jul 12, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathsettings.py
63 lines (51 loc) · 2.17 KB
/
settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import os
ROOT = os.path.dirname(__file__)
MOBILE_ROOT = os.path.join(ROOT, 'mobile')
V4_ROOT = os.path.join(ROOT, 'v4')
# Root folder for build artifacts
BUILD_ROOT = os.path.join(ROOT, 'build/')
# Static folders. All of these will be copied into the output dir, and
# symlinked from the locale directories.
STATIC_FOLDERS = ['css', 'fonts', 'img', 'js', 'json']
MOBILE_STATIC_FOLDERS = ['css', 'fonts', 'img', 'js']
V4_STATIC_FOLDERS = ['css', 'fonts', 'img', 'js']
STATIC_SYMLINK_PATH = '../static'
MOBILE_STATIC_SYMLINK_PATH = '../../static/mobile'
V4_STATIC_SYMLINK_PATH = '../../static/v4'
# L10n dir
LOCALE_DIR = os.path.join(ROOT, 'locale')
if not os.path.exists(LOCALE_DIR):
LOCALE_DIR = os.path.join(ROOT, 'locale_test')
# .lang file, filename
LANG_FILENAME = 'fhr.lang'
# List of languages.
LANGS = (
'ach', 'af', 'an', 'ar', 'as', 'ast', 'az', 'bg', 'bn-BD', 'bn-IN', 'br',
'bs', 'ca', 'cak', 'cs', 'cy', 'da', 'de', 'dsb', 'el', 'en-GB', 'en-US',
'en-ZA', 'eo', 'es-AR', 'es-CL', 'es-ES', 'es-MX', 'et', 'eu', 'fa', 'ff',
'fi', 'fr', 'fy-NL', 'ga-IE', 'gd', 'gl', 'gn', 'gu-IN', 'he', 'hi-IN',
'hr', 'hsb', 'hu', 'hy-AM', 'id', 'is', 'it', 'ja', 'ja-JP-mac', 'ka',
'kab', 'kk', 'km', 'kn', 'ko', 'lij', 'lo', 'lt', 'ltg', 'lv', 'mai', 'mk',
'ml', 'mr', 'ms', 'my', 'nb-NO', 'ne-NP', 'nl', 'nn-NO', 'or', 'pa-IN',
'pl', 'pt-BR', 'pt-PT', 'rm', 'ro', 'ru', 'si', 'sk', 'sl', 'son', 'sq',
'sr', 'sv-SE', 'ta', 'te', 'th', 'tl', 'tr', 'uk', 'ur', 'uz', 'vi', 'xh',
'zh-CN', 'zh-TW', 'zu',
)
# RTL languages.
RTL_LANGS = ('ar', 'fa', 'he', 'ur')
# Language fallbacks. Langs listed here will be symlinked to their respective
# fallbacks rather than generated on their owns. Both sides must exist in
# LANGS.
LANG_FALLBACK = {
'en-ZA' : 'en-US',
'he' : 'en-US',
'ja-JP-mac' : 'ja',
}
# Mobile Language fallbacks. Langs listed here will be symlinked to
# their respective fallbacks rather than generated on their owns.
# This is for locales that do have fhr for Destop but haven't translated
# it for mobile.
# e.g. 'ja' : 'en-US',
LANG_MOBILE_FALLBACK = {}
# View to build - specify either 'passive' or 'urgent'
BUILD_VERSION = 'passive'