Commit 5a821efa authored by Jonne Haß's avatar Jonne Haß

hardcode default(=fallback) language

parent 5598cd80
......@@ -10,17 +10,17 @@ if settings_file.exist?
locale_settings = YAML.load_file(settings_file)
AVAILABLE_LANGUAGES = (locale_settings['available'].length > 0) ? locale_settings['available'] : { "en" => 'English' }
AVAILABLE_LANGUAGE_CODES = locale_settings['available'].keys
DEFAULT_LANGUAGE = (AVAILABLE_LANGUAGE_CODES.include?(locale_settings['default'].to_s)) ? locale_settings['default'].to_s : "en"
LANGUAGE_CODES_MAP = locale_settings['fallbacks']
RTL_LANGUAGES = locale_settings['rtl']
else
AVAILABLE_LANGUAGES = { "en" => 'English' }
DEFAULT_LANGUAGE = "en"
AVAILABLE_LANGUAGE_CODES = ["en"]
LANGUAGE_CODES_MAP = {}
RTL_LANGUAGES = []
end
DEFAULT_LANGUAGE = "en"
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# Use the railtie configuration option to ensure overiding devise.
......
default: "en"
available:
ar: "العربية"
art-nvi: "Na'vi"
......@@ -116,7 +113,6 @@ fallbacks:
pt-PT:
- "pt"
rtl:
- "ar"
- "he"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment