From 14a300b4282356100d4ca2c0858ed49e5ee76932 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sun, 2 Sep 2018 22:31:53 +0200 Subject: [PATCH] Enable ro and ta locales in Rails (#8583) * Enable ro and ta locales in Rails * Add Tamil and Romanian to language dropdown --- app/helpers/settings_helper.rb | 2 ++ config/application.rb | 3 +++ 2 files changed, 5 insertions(+) diff --git a/app/helpers/settings_helper.rb b/app/helpers/settings_helper.rb index ae915abf6..fc03fcf82 100644 --- a/app/helpers/settings_helper.rb +++ b/app/helpers/settings_helper.rb @@ -35,12 +35,14 @@ module SettingsHelper pl: 'Polszczyzna', pt: 'Português', 'pt-BR': 'Português do Brasil', + ro: 'Limba română', ru: 'Русский', sk: 'Slovenčina', sl: 'Slovenščina', sr: 'Српски', 'sr-Latn': 'Srpski (latinica)', sv: 'Svenska', + ta: 'தமிழ்', te: 'తెలుగు', th: 'ภาษาไทย', tr: 'Türkçe', diff --git a/config/application.rb b/config/application.rb index af023b0db..24f75d3a2 100644 --- a/config/application.rb +++ b/config/application.rb @@ -69,12 +69,14 @@ module Mastodon :pl, :pt, :'pt-BR', + :ro, :ru, :sk, :sl, :sr, :'sr-Latn', :sv, + :ta, :te, :th, :tr, @@ -85,6 +87,7 @@ module Mastodon ] config.i18n.default_locale = ENV['DEFAULT_LOCALE']&.to_sym + unless config.i18n.available_locales.include?(config.i18n.default_locale) config.i18n.default_locale = :en end