Skip to content

A platform for community discussion. Free, open, simple.

I18N: Translations for the translations feature (#42299)

Natalie Tayacc4e0039613
diff --git a/config/locales/client.ja.yml b/config/locales/client.ja.yml
index faeef840463..46297d25f9b 100644
--- a/config/locales/client.ja.yml
+++ b/config/locales/client.ja.yml
@@ -1484,6 +1484,10 @@ ja:
enable_smart_lists: "コンポーザーに書き込む際にスマートリストを有効にする"
enable_defer: "トピックを未読としてマークする"
enable_markdown_monospace_font: "作成ツールの Markdown モードで等幅フォントを使用する"
+ automatically_translate: "ほかの言語で書かれたトピックや投稿を自動翻訳する"
+ content_languages:
+ understood: "理解できる言語"
+ understood_description: "これらの言語で書かれたトピックや投稿は翻訳されません。インターフェースの言語は常にこのリストに含まれます。"
experimental_sidebar:
enable: "サイドバーを有効にする"
options: "オプション"
@@ -4043,8 +4047,14 @@ ja:
share:
title: "投稿 #%{post_number} の共有"
instructions: "この投稿へのリンクを共有します:"
- original_language: "元の投稿は%{language}で書かれました"
- original_language_and_outdated: "元の投稿は%{language}で書かれています。翻訳は古い可能性があります"
+ original_language: "この投稿は元々%{language}で書かれています"
+ original_language_and_outdated: "この投稿は元々%{language}で書かれています。翻訳が最新でない可能性があります"
+ originally_written_in: "元の言語: %{language}"
+ click_to_show_original: "クリックして原文を表示"
+ tap_to_show_original: "タップして原文を表示"
+ click_to_show_translation: "クリックして翻訳を表示"
+ tap_to_show_translation: "タップして翻訳を表示"
+ ai_translation_disclaimer: "AIによる翻訳は正確でない場合があります。"
category:
none: "(カテゴリなし)"
all: "すべてのカテゴリ"
diff --git a/config/locales/client.zh_TW.yml b/config/locales/client.zh_TW.yml
index 8e9d87d54a3..5267b0c3dab 100644
--- a/config/locales/client.zh_TW.yml
+++ b/config/locales/client.zh_TW.yml
@@ -1351,6 +1351,10 @@ zh_TW:
enable_quoting: "允許引用劃記文字"
enable_smart_lists: "在編輯器中編寫時啟用智慧型列表"
enable_defer: " 將主題標記為未讀"
+ automatically_translate: "自動翻譯以其他語言撰寫的主題和貼文"
+ content_languages:
+ understood: "我能理解的語言"
+ understood_description: "以這些語言撰寫的主題和貼文將不會被翻譯。你的介面語言一律會包含在內。"
experimental_sidebar:
enable: "啟用側選單"
options: "選項"
@@ -3701,6 +3705,14 @@ zh_TW:
share:
title: "分享貼文#%{post_number}"
instructions: "分享此貼文的連結:"
+ original_language: "這篇貼文原本以%{language}撰寫"
+ original_language_and_outdated: "這篇貼文原本以%{language}撰寫。翻譯內容可能已過時"
+ originally_written_in: "原文為 %{language}"
+ click_to_show_original: "點擊以顯示原文"
+ tap_to_show_original: "輕觸此處以顯示原文"
+ click_to_show_translation: "點擊以顯示翻譯"
+ tap_to_show_translation: "輕觸此處以顯示翻譯"
+ ai_translation_disclaimer: "由 AI 產生的翻譯可能不準確。"
category:
none: "( 無分類 )"
all: "所有分類"
diff --git a/spec/system/content_localization_spec.rb b/spec/system/content_localization_spec.rb
index 94fec5237e1..e9f83d44008 100644
--- a/spec/system/content_localization_spec.rb
+++ b/spec/system/content_localization_spec.rb
@@ -130,7 +130,6 @@ describe "Content Localization" do
modal = topic_page.open_content_language_preferences
expect(modal).to be_open
expect(modal).to have_logged_in_language_controls
- expect(modal).to have_understood_languages_description
expect(modal).to have_locked_understood_language
expect(modal).to have_understood_language_option("de")
expect(modal).to be_automatic_translation_enabled
diff --git a/spec/system/page_objects/modals/content_language_preferences.rb b/spec/system/page_objects/modals/content_language_preferences.rb
index be5fe234b18..dbf02a3fcc3 100644
--- a/spec/system/page_objects/modals/content_language_preferences.rb
+++ b/spec/system/page_objects/modals/content_language_preferences.rb
@@ -30,16 +30,6 @@ module PageObjects
)
end
- def has_understood_languages_description?
- body.has_css?(
- ".form-kit__field[data-name='understoodLanguages'] " \
- ".form-kit__container-description",
- text:
- "Topics and posts in these languages won’t be translated. " \
- "Your interface language is always included.",
- )
- end
-
def has_understood_language_option?(locale)
understood_languages_dropdown.expand
result =