Add br, es-AR, et, mk, nn to available locales (#12062)

main
Eugen Rochko 2019-10-03 03:59:43 +02:00 committed by GitHub
parent 1681319d11
commit fb45f6d911
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 8 deletions

View File

@ -2,11 +2,11 @@
module SettingsHelper module SettingsHelper
HUMAN_LOCALES = { HUMAN_LOCALES = {
en: 'English',
ar: 'العربية', ar: 'العربية',
ast: 'Asturianu', ast: 'Asturianu',
bg: 'Български', bg: 'Български',
bn: 'বাংলা', bn: 'বাংলা',
br: 'Breton',
ca: 'Català', ca: 'Català',
co: 'Corsu', co: 'Corsu',
cs: 'Čeština', cs: 'Čeština',
@ -14,8 +14,11 @@ module SettingsHelper
da: 'Dansk', da: 'Dansk',
de: 'Deutsch', de: 'Deutsch',
el: 'Ελληνικά', el: 'Ελληνικά',
en: 'English',
eo: 'Esperanto', eo: 'Esperanto',
'es-AR': 'Español (Argentina)',
es: 'Español', es: 'Español',
et: 'Eesti',
eu: 'Euskara', eu: 'Euskara',
fa: 'فارسی', fa: 'فارسی',
fi: 'Suomi', fi: 'Suomi',
@ -36,32 +39,34 @@ module SettingsHelper
ko: '한국어', ko: '한국어',
lt: 'Lietuvių', lt: 'Lietuvių',
lv: 'Latviešu', lv: 'Latviešu',
mk: 'Македонски',
ml: 'മലയാളം', ml: 'മലയാളം',
ms: 'Bahasa Melayu', ms: 'Bahasa Melayu',
nl: 'Nederlands', nl: 'Nederlands',
nn: 'Nynorsk',
no: 'Norsk', no: 'Norsk',
oc: 'Occitan', oc: 'Occitan',
pl: 'Polski', pl: 'Polski',
pt: 'Português',
'pt-PT': 'Português (Portugal)',
'pt-BR': 'Português (Brasil)', 'pt-BR': 'Português (Brasil)',
'pt-PT': 'Português (Portugal)',
pt: 'Português',
ro: 'Română', ro: 'Română',
ru: 'Русский', ru: 'Русский',
sk: 'Slovenčina', sk: 'Slovenčina',
sl: 'Slovenščina', sl: 'Slovenščina',
sq: 'Shqip', sq: 'Shqip',
sr: 'Српски',
'sr-Latn': 'Srpski (latinica)', 'sr-Latn': 'Srpski (latinica)',
sr: 'Српски',
sv: 'Svenska', sv: 'Svenska',
ta: 'தமிழ்', ta: 'தமிழ்',
te: 'తెలుగు', te: 'తెలుగు',
th: 'ไทย', th: 'ไทย',
tr: 'Türkçe', tr: 'Türkçe',
uk: 'Українська', uk: 'Українська',
zh: '中文',
'zh-CN': '简体中文', 'zh-CN': '简体中文',
'zh-HK': '繁體中文(香港)', 'zh-HK': '繁體中文(香港)',
'zh-TW': '繁體中文(臺灣)', 'zh-TW': '繁體中文(臺灣)',
zh: '中文',
}.freeze }.freeze
def human_locale(locale) def human_locale(locale)

View File

@ -39,11 +39,11 @@ module Mastodon
# All translations from config/locales/*.rb,yml are auto loaded. # All translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
config.i18n.available_locales = [ config.i18n.available_locales = [
:en,
:ar, :ar,
:ast, :ast,
:bg, :bg,
:bn, :bn,
:br,
:ca, :ca,
:co, :co,
:cs, :cs,
@ -51,8 +51,11 @@ module Mastodon
:da, :da,
:de, :de,
:el, :el,
:en,
:eo, :eo,
:'es-AR',
:es, :es,
:et,
:eu, :eu,
:fa, :fa,
:fi, :fi,
@ -73,20 +76,22 @@ module Mastodon
:ko, :ko,
:lt, :lt,
:lv, :lv,
:mk,
:ms, :ms,
:nl, :nl,
:nn,
:no, :no,
:oc, :oc,
:pl, :pl,
:'pt-PT',
:'pt-BR', :'pt-BR',
:'pt-PT',
:ro, :ro,
:ru, :ru,
:sk, :sk,
:sl, :sl,
:sq, :sq,
:sr,
:'sr-Latn', :'sr-Latn',
:sr,
:sv, :sv,
:ta, :ta,
:te, :te,