Skip to content

Commit 3eb36ac

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

10 files changed

+32
-1
lines changed

assets/l10n/app_en.arb

+4
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,10 @@
676676
"@notifSelfUser": {
677677
"description": "Display name for the user themself, to show after replying in an Android notification"
678678
},
679+
"reactedEmojiSelfUser": "You",
680+
"@reactedEmojiSelfUser": {
681+
"description": "Display name for the user themself, to show on an emoji reaction added by the user."
682+
},
679683
"onePersonTyping": "{typist} is typing…",
680684
"@onePersonTyping": {
681685
"description": "Text to display when there is one user typing.",

lib/generated/l10n/zulip_localizations.dart

+6
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

+3
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,9 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
534534
@override
535535
String get notifSelfUser => 'You';
536536

537+
@override
538+
String get reactedEmojiSelfUser => 'You';
539+
537540
@override
538541
String onePersonTyping(String typist) {
539542
return '$typist is typing…';

lib/generated/l10n/zulip_localizations_en.dart

+3
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,9 @@ class ZulipLocalizationsEn extends ZulipLocalizations {
534534
@override
535535
String get notifSelfUser => 'You';
536536

537+
@override
538+
String get reactedEmojiSelfUser => 'You';
539+
537540
@override
538541
String onePersonTyping(String typist) {
539542
return '$typist is typing…';

lib/generated/l10n/zulip_localizations_ja.dart

+3
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,9 @@ class ZulipLocalizationsJa extends ZulipLocalizations {
534534
@override
535535
String get notifSelfUser => 'You';
536536

537+
@override
538+
String get reactedEmojiSelfUser => 'You';
539+
537540
@override
538541
String onePersonTyping(String typist) {
539542
return '$typist is typing…';

lib/generated/l10n/zulip_localizations_nb.dart

+3
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,9 @@ class ZulipLocalizationsNb extends ZulipLocalizations {
534534
@override
535535
String get notifSelfUser => 'You';
536536

537+
@override
538+
String get reactedEmojiSelfUser => 'You';
539+
537540
@override
538541
String onePersonTyping(String typist) {
539542
return '$typist is typing…';

lib/generated/l10n/zulip_localizations_pl.dart

+3
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,9 @@ class ZulipLocalizationsPl extends ZulipLocalizations {
534534
@override
535535
String get notifSelfUser => 'Ty';
536536

537+
@override
538+
String get reactedEmojiSelfUser => 'You';
539+
537540
@override
538541
String onePersonTyping(String typist) {
539542
return '$typist coś pisze…';

lib/generated/l10n/zulip_localizations_ru.dart

+3
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,9 @@ class ZulipLocalizationsRu extends ZulipLocalizations {
534534
@override
535535
String get notifSelfUser => 'Вы';
536536

537+
@override
538+
String get reactedEmojiSelfUser => 'You';
539+
537540
@override
538541
String onePersonTyping(String typist) {
539542
return '$typist набирает сообщение…';

lib/generated/l10n/zulip_localizations_sk.dart

+3
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,9 @@ class ZulipLocalizationsSk extends ZulipLocalizations {
534534
@override
535535
String get notifSelfUser => 'Ty';
536536

537+
@override
538+
String get reactedEmojiSelfUser => 'You';
539+
537540
@override
538541
String onePersonTyping(String typist) {
539542
return '$typist píše…';

lib/widgets/emoji_reaction.dart

+1-1
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)