diff --git a/config/locales/ja.yml b/config/locales/ja.yml index 765f5314..aace7e2f 100644 --- a/config/locales/ja.yml +++ b/config/locales/ja.yml @@ -93,6 +93,7 @@ ja: label_overview_right: "Overview page, right" label_overview_top: "Overview page, top" label_pdf_wiki_settings: PDF Wiki settings + label_planning: Planning label_project_list: "プロジェクト一覧" label_project_overview_content: "Project guide" label_query_delete: Delete query diff --git a/test/unit/i18n_test.rb b/test/unit/i18n_test.rb index 0f145f84..248acc19 100644 --- a/test/unit/i18n_test.rb +++ b/test/unit/i18n_test.rb @@ -26,24 +26,13 @@ class I18nTest < Additionals::TestCase assert_equal 8, lang_files_count valid_languages.each do |lang| assert set_language_if_valid(lang) + case lang.to_s + when 'en' + assert_equal 'External urls', l(:label_external_urls) + when 'de', 'es', 'fr', 'it', 'ja', 'zh-TW', 'zh' + assert_not l(:label_external_urls) == 'External urls', lang + end end - # check if parse error exists - ::I18n.locale = 'de' - assert_equal 'Externe URLs', l(:label_external_urls) - ::I18n.locale = 'en' - assert_equal 'External urls', l(:label_external_urls) - ::I18n.locale = 'es' - assert_equal 'URLs externos', l(:label_external_urls) - ::I18n.locale = 'fr' - assert_equal 'Les urnes externes', l(:label_external_urls) - ::I18n.locale = 'it' - assert_equal 'Esterno urls', l(:label_external_urls) - ::I18n.locale = 'ja' - assert_equal '外部URL', l(:label_external_urls) - ::I18n.locale = 'zh-TW' - assert_equal '外部連結', l(:label_external_urls) - ::I18n.locale = 'zh' - assert_equal '外部 URLs', l(:label_external_urls) set_language_if_valid('en') end