Skip to content

Commit 7ccb8d3

Browse files
committed
emoji: Translate "You" string for reactions added by self
Signed-off-by: Zixuan James Li <[email protected]>
1 parent f104dc8 commit 7ccb8d3

10 files changed

+32
-1
lines changed

assets/l10n/app_en.arb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,10 @@
672672
"@notifSelfUser": {
673673
"description": "Display name for the user themself, to show after replying in an Android notification"
674674
},
675+
"reactedEmojiSelfUser": "You",
676+
"@reactedEmojiSelfUser": {
677+
"description": "Display name for the user themself, to show on an emoji reaction added by the user."
678+
},
675679
"onePersonTyping": "{typist} is typing…",
676680
"@onePersonTyping": {
677681
"description": "Text to display when there is one user typing.",

lib/generated/l10n/zulip_localizations.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,6 +1005,12 @@ abstract class ZulipLocalizations {
10051005
/// **'You'**
10061006
String get notifSelfUser;
10071007

1008+
/// Display name for the user themself, to show on an emoji reaction added by the user.
1009+
///
1010+
/// In en, this message translates to:
1011+
/// **'You'**
1012+
String get reactedEmojiSelfUser;
1013+
10081014
/// Text to display when there is one user typing.
10091015
///
10101016
/// In en, this message translates to:

lib/generated/l10n/zulip_localizations_ar.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,9 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
532532
@override
533533
String get notifSelfUser => 'You';
534534

535+
@override
536+
String get reactedEmojiSelfUser => 'You';
537+
535538
@override
536539
String onePersonTyping(String typist) {
537540
return '$typist is typing…';

lib/generated/l10n/zulip_localizations_en.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,9 @@ class ZulipLocalizationsEn extends ZulipLocalizations {
532532
@override
533533
String get notifSelfUser => 'You';
534534

535+
@override
536+
String get reactedEmojiSelfUser => 'You';
537+
535538
@override
536539
String onePersonTyping(String typist) {
537540
return '$typist is typing…';

lib/generated/l10n/zulip_localizations_ja.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,9 @@ class ZulipLocalizationsJa extends ZulipLocalizations {
532532
@override
533533
String get notifSelfUser => 'You';
534534

535+
@override
536+
String get reactedEmojiSelfUser => 'You';
537+
535538
@override
536539
String onePersonTyping(String typist) {
537540
return '$typist is typing…';

lib/generated/l10n/zulip_localizations_nb.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,9 @@ class ZulipLocalizationsNb extends ZulipLocalizations {
532532
@override
533533
String get notifSelfUser => 'You';
534534

535+
@override
536+
String get reactedEmojiSelfUser => 'You';
537+
535538
@override
536539
String onePersonTyping(String typist) {
537540
return '$typist is typing…';

lib/generated/l10n/zulip_localizations_pl.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,9 @@ class ZulipLocalizationsPl extends ZulipLocalizations {
532532
@override
533533
String get notifSelfUser => 'Ty';
534534

535+
@override
536+
String get reactedEmojiSelfUser => 'You';
537+
535538
@override
536539
String onePersonTyping(String typist) {
537540
return '$typist coś pisze…';

lib/generated/l10n/zulip_localizations_ru.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,9 @@ class ZulipLocalizationsRu extends ZulipLocalizations {
532532
@override
533533
String get notifSelfUser => 'Вы';
534534

535+
@override
536+
String get reactedEmojiSelfUser => 'You';
537+
535538
@override
536539
String onePersonTyping(String typist) {
537540
return '$typist набирает сообщение…';

lib/generated/l10n/zulip_localizations_sk.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,9 @@ class ZulipLocalizationsSk extends ZulipLocalizations {
532532
@override
533533
String get notifSelfUser => 'Ty';
534534

535+
@override
536+
String get reactedEmojiSelfUser => 'You';
537+
535538
@override
536539
String onePersonTyping(String typist) {
537540
return '$typist píše…';

lib/widgets/emoji_reaction.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class ReactionChip extends StatelessWidget {
161161
// // 'Chris、Greg、Alya、Shu'
162162
? userIds.map((id) {
163163
return id == store.selfUserId
164-
? 'You'
164+
? zulipLocalizations.reactedEmojiSelfUser
165165
: store.users[id]?.fullName ?? zulipLocalizations.unknownUserName;
166166
}).join(', ')
167167
: userIds.length.toString();

0 commit comments

Comments
 (0)