Skip to content

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

I18N: Improve Rewind translations by removing difficult pronouns (#37042)

Régis Hanol02893c7cf2ef
diff --git a/plugins/discourse-rewind/assets/javascripts/discourse/components/reports/chat-usage.gjs b/plugins/discourse-rewind/assets/javascripts/discourse/components/reports/chat-usage.gjs
index 6456c9031e8..6fd9cd0a656 100644
--- a/plugins/discourse-rewind/assets/javascripts/discourse/components/reports/chat-usage.gjs
+++ b/plugins/discourse-rewind/assets/javascripts/discourse/components/reports/chat-usage.gjs
@@ -61,56 +61,32 @@ export default class ChatUsage extends Component {
}
get message1Text() {
- return i18nForOwner(
- "discourse_rewind.reports.chat_usage.message_1",
- this.args.isOwnRewind,
- {
- count: this.args.report.data.total_messages,
- username: this.args.user?.username,
- }
- );
+ return i18n("discourse_rewind.reports.chat_usage.message_1", {
+ count: this.args.report.data.total_messages,
+ });
}
get message2Text() {
- return i18nForOwner(
- "discourse_rewind.reports.chat_usage.message_2",
- this.args.isOwnRewind,
- {
- dm_count: this.args.report.data.dm_message_count,
- channel_count: this.args.report.data.unique_dm_channels,
- username: this.args.user?.username,
- }
- );
+ return i18n("discourse_rewind.reports.chat_usage.message_2", {
+ dm_count: this.args.report.data.dm_message_count,
+ channel_count: this.args.report.data.unique_dm_channels,
+ });
}
get message3Text() {
- return i18nForOwner(
- "discourse_rewind.reports.chat_usage.message_3",
- this.args.isOwnRewind,
- {
- count: this.args.report.data.total_reactions_received,
- username: this.args.user?.username,
- }
- );
+ return i18n("discourse_rewind.reports.chat_usage.message_3", {
+ count: this.args.report.data.total_reactions_received,
+ });
}
get message4Text() {
- return i18nForOwner(
- "discourse_rewind.reports.chat_usage.message_4",
- this.args.isOwnRewind,
- {
- length: this.args.report.data.avg_message_length,
- username: this.args.user?.username,
- }
- );
+ return i18n("discourse_rewind.reports.chat_usage.message_4", {
+ length: this.args.report.data.avg_message_length,
+ });
}
get message5Text() {
- return i18nForOwner(
- "discourse_rewind.reports.chat_usage.message_5",
- this.args.isOwnRewind,
- { username: this.args.user?.username }
- );
+ return i18n("discourse_rewind.reports.chat_usage.message_5");
}
<template>
diff --git a/plugins/discourse-rewind/config/locales/client.en.yml b/plugins/discourse-rewind/config/locales/client.en.yml
index 8a0ab0a051b..b7724a223df 100644
--- a/plugins/discourse-rewind/config/locales/client.en.yml
+++ b/plugins/discourse-rewind/config/locales/client.en.yml
@@ -110,7 +110,7 @@ en:
assignments:
title: Assignments
total_assigned: Assigned to me
- total_assigned_others: Assigned to them
+ total_assigned_others: "Assigned to %{username}"
completed: Assignments completed
pending: Assignments pending
assigned_by_user: Assignments given
@@ -130,18 +130,13 @@ en:
channel_title: "#chat-activity"
status_online: "● online"
message_1: "You sent <strong>%{count}</strong> messages this year!"
- message_1_others: "%{username} sent <strong>%{count}</strong> messages this year!"
reply_1: "lol awesome B-)"
message_2: "You had <strong>%{dm_count}</strong> DM conversations with <strong>%{channel_count}</strong> different people or groups"
- message_2_others: "%{username} had <strong>%{dm_count}</strong> DM conversations with <strong>%{channel_count}</strong> different people or groups"
reply_2: "cOo0oL :D"
message_3: "People loved your messages! You got <strong>%{count}</strong> reactions ❤️"
- message_3_others: "People loved their messages! They got <strong>%{count}</strong> reactions ❤️"
reply_3: "r0fl rAwr 8-)"
message_4: "Your average message length was <strong>%{length}</strong> characters"
- message_4_others: "Their average message length was <strong>%{length}</strong> characters"
message_5: "Your favorite channels:"
- message_5_others: "Their favorite channels:"
dancing_baby_alt: "Dancing baby"
favorite_gifs:
title:
@@ -160,7 +155,7 @@ en:
redemption_rate: Acceptance Rate
avg_trust_level: Avg Trust Level
invitee_impact: Impact of Your Invitees
- invitee_impact_others: Impact of Their Invitees
+ invitee_impact_others: "Impact of %{username}'s Invitees"
invitee_posts: Posts Created
invitee_topics: Topics Started
invitee_likes: Likes Given
@@ -194,11 +189,11 @@ en:
mentions: Mentions
topics_with_new_users: Topics with New Users
contributions_helped: your contributions helped
- contributions_helped_others: their contributions helped
+ contributions_helped_others: "%{username}'s contributions helped"
time_of_day_activity:
title: Daily Activity Rhythm
play_button: Play your activity as sound
- play_button_others: Play their activity as sound
+ play_button_others: "Play %{username}'s activity as sound"
stop_button: Stop audio playback
writing_analysis:
title: Writing Analysis