From a13b7f36c8ed1f1e9f27137544cbb5cbac66640f Mon Sep 17 00:00:00 2001 From: Gerhard Schlager Date: Sun, 11 Dec 2022 15:21:11 +0100 Subject: [PATCH] REFACTOR: Reformat Message Format strings for better readability @discourse-translator-bot keep_translations_and_approvals --- config/locales/client.en.yml | 149 +++++++++++++++++++++++++++++------ 1 file changed, 126 insertions(+), 23 deletions(-) diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index b093ae2e2bd..90a36881e2a 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -1932,33 +1932,98 @@ en: # This string uses the ICU Message Format. See https://meta.discourse.org/t/7035 for translation guidelines. too_few_topics_and_posts_notice_MF: >- Let's start the discussion! - There {currentTopics, plural, one {is # topic} other {are # topics}} and - {currentPosts, plural, one {# post} other {# posts}}. Visitors need more to - read and reply to – we recommend at least {requiredTopics, plural, one {# topic} other {# topics}} - and {requiredPosts, plural, one {# post} other {# posts}}. Only staff can see this message. + There + { currentTopics, plural, + one {is # topic} + other {are # topics} + } and + { currentPosts, plural, + one {# post} + other {# posts} + }. Visitors need more to read and reply to – we recommend at least + { requiredTopics, plural, + one {# topic} + other {# topics} + } and + { requiredPosts, plural, + one {# post} + other {# posts} + }. Only staff can see this message. # This string uses the ICU Message Format. See https://meta.discourse.org/t/7035 for translation guidelines. too_few_topics_notice_MF: >- Let's start the discussion! - There {currentTopics, plural, one {is # topic} other {are # topics}}. Visitors need more to - read and reply to – we recommend at least {requiredTopics, plural, one {# topic} other {# topics}}. - Only staff can see this message. + There + { currentTopics, plural, + one {is # topic} + other {are # topics} + }. Visitors need more to read and reply to – we recommend at least + { requiredTopics, plural, + one {# topic} + other {# topics} + }. Only staff can see this message. # This string uses the ICU Message Format. See https://meta.discourse.org/t/7035 for translation guidelines. too_few_posts_notice_MF: >- Let's start the discussion! - There {currentPosts, plural, one {is # post} other {are # posts}}. Visitors need more to - read and reply to – we recommend at least {requiredPosts, plural, one {# post} other {# posts}}. - Only staff can see this message. + There + { currentPosts, plural, + one {is # post} + other {are # posts} + }. Visitors need more to read and reply to – we recommend at least + { requiredPosts, plural, + one {# post} + other {# posts} + }. Only staff can see this message. + logs_error_rate_notice: # This string uses the ICU Message Format. See https://meta.discourse.org/t/7035 for translation guidelines. - reached_hour_MF: "{relativeAge}{rate, plural, one {# error/hour} other {# errors/hour}} reached site setting limit of {limit, plural, one {# error/hour} other {# errors/hour}}." + reached_hour_MF: >- + {relativeAge} + { rate, plural, + one {# error/hour} + other {# errors/hour} + } reached site setting limit of + { limit, plural, + one {# error/hour} + other {# errors/hour} + }. + # This string uses the ICU Message Format. See https://meta.discourse.org/t/7035 for translation guidelines. - reached_minute_MF: "{relativeAge}{rate, plural, one {# error/minute} other {# errors/minute}} reached site setting limit of {limit, plural, one {# error/minute} other {# errors/minute}}." + reached_minute_MF: >- + {relativeAge} + { rate, plural, + one {# error/minute} + other {# errors/minute} + } reached site setting limit of + { limit, plural, + one {# error/minute} + other {# errors/minute} + }. + # This string uses the ICU Message Format. See https://meta.discourse.org/t/7035 for translation guidelines. - exceeded_hour_MF: "{relativeAge}{rate, plural, one {# error/hour} other {# errors/hour}} exceeded site setting limit of {limit, plural, one {# error/hour} other {# errors/hour}}." + exceeded_hour_MF: >- + {relativeAge} + { rate, plural, + one {# error/hour} + other {# errors/hour} + } exceeded site setting limit of + { limit, plural, + one {# error/hour} + other {# errors/hour} + }. + # This string uses the ICU Message Format. See https://meta.discourse.org/t/7035 for translation guidelines. - exceeded_minute_MF: "{relativeAge}{rate, plural, one {# error/minute} other {# errors/minute}} exceeded site setting limit of {limit, plural, one {# error/minute} other {# errors/minute}}." + exceeded_minute_MF: >- + {relativeAge} + { rate, plural, + one {# error/minute} + other {# errors/minute} + } exceeded site setting limit of + { limit, plural, + one {# error/minute} + other {# errors/minute} + }. learn_more: "learn more..." @@ -1988,8 +2053,19 @@ en: description: one: "There is %{count} reply." other: "There are %{count} replies." + # This string uses the ICU Message Format. See https://meta.discourse.org/t/7035 for translation guidelines. - description_time_MF: "There {replyCount, plural, one {is # reply} other {are # replies}} with an estimated read time of {readingTime, plural, one {# minute} other {# minutes}}." + description_time_MF: >- + There + { replyCount, plural, + one {is # reply} + other {are # replies} + } with an estimated read time of + { readingTime, plural, + one {# minute} + other {# minutes} + }. + enable: "Summarize This Topic" disable: "Show All Posts" short_label: "Summarize" @@ -3722,7 +3798,17 @@ en: flag_for_review: "Queue For Review" # This string uses the ICU Message Format. See https://meta.discourse.org/t/7035 for translation guidelines. - delete_confirm_MF: "You are about to delete {POSTS, plural, one {# post} other {# posts}} and {TOPICS, plural, one {# topic} other {# topics}} from this user, remove their account, block signups from their IP address {ip_address}, and add their email address {email} to a permanent block list. Are you sure this user is really a spammer?" + delete_confirm_MF: >- + You are about to delete + { POSTS, plural, + one {# post} + other {# posts} + } and + { TOPICS, plural, + one {# topic} + other {# topics} + } from this user, remove their account, block signups from their IP address {ip_address}, and add their email address {email} to a permanent block list. Are you sure this user is really a spammer? + yes_delete_spammer: "Yes, Delete Spammer" ip_address_missing: "(N/A)" hidden_email_address: "(hidden)" @@ -3797,12 +3883,19 @@ en: label_with_count: "Pending (%{count})" # This string uses the ICU Message Format. See https://meta.discourse.org/t/7035 for translation guidelines. - posts_likes_MF: | - This topic has {count, plural, one {# reply} other {# replies}} {ratio, select, - low {with a high like to post ratio} - med {with a very high like to post ratio} - high {with an extremely high like to post ratio} - other {}} + posts_likes_MF: >- + This topic has + { count, plural, + one {# reply} + other {# replies} + } + { ratio, select, + low {with a high like to post ratio} + med {with a very high like to post ratio} + high {with an extremely high like to post ratio} + other {} + } + original_post: "Original Post" views: "Views" sr_views: "Sort by views" @@ -5488,7 +5581,17 @@ en: description: "users with penalties cannot reach TL3" # This string uses the ICU Message Format. See https://meta.discourse.org/t/7035 for translation guidelines. - delete_all_posts_confirm_MF: "You are about to delete {POSTS, plural, one {# post} other {# posts}} and {TOPICS, plural, one {# topic} other {# topics}}. Are you sure?" + delete_all_posts_confirm_MF: >- + You are about to delete + { POSTS, plural, + one {# post} + other {# posts} + } and + { TOPICS, plural, + one {# topic} + other {# topics} + }. Are you sure? + silence: "Silence" unsilence: "Unsilence" silenced: "Silenced?"