diff options
Diffstat (limited to 'lib/gitlab/i18n.rb')
-rw-r--r-- | lib/gitlab/i18n.rb | 33 |
1 files changed, 19 insertions, 14 deletions
diff --git a/lib/gitlab/i18n.rb b/lib/gitlab/i18n.rb index 8fe5868ca57..fa85d839927 100644 --- a/lib/gitlab/i18n.rb +++ b/lib/gitlab/i18n.rb @@ -44,30 +44,30 @@ module Gitlab TRANSLATION_LEVELS = { 'bg' => 0, 'cs_CZ' => 0, - 'da_DK' => 34, - 'de' => 16, + 'da_DK' => 31, + 'de' => 15, 'en' => 100, 'eo' => 0, - 'es' => 33, + 'es' => 31, 'fil_PH' => 0, - 'fr' => 99, + 'fr' => 98, 'gl_ES' => 0, 'id_ID' => 0, 'it' => 1, - 'ja' => 31, - 'ko' => 20, + 'ja' => 77, + 'ko' => 18, 'nb_NO' => 23, 'nl_NL' => 0, 'pl_PL' => 3, - 'pt_BR' => 57, - 'ro_RO' => 91, - 'ru' => 26, - 'si_LK' => 11, - 'tr_TR' => 10, - 'uk' => 55, - 'zh_CN' => 98, + 'pt_BR' => 56, + 'ro_RO' => 84, + 'ru' => 24, + 'si_LK' => 10, + 'tr_TR' => 9, + 'uk' => 54, + 'zh_CN' => 99, 'zh_HK' => 1, - 'zh_TW' => 98 + 'zh_TW' => 99 }.freeze private_constant :TRANSLATION_LEVELS @@ -118,12 +118,17 @@ module Gitlab end def setup(domain:, default_locale:) + custom_pluralization setup_repositories(domain) setup_default_locale(default_locale) end private + def custom_pluralization + Gitlab::I18n::Pluralization.install_on(FastGettext) + end + def setup_repositories(domain) translation_repositories = [ (po_repository(domain, 'jh/locale') if Gitlab.jh?), |