Skip to content

Commit d1e38ff

Browse files
sm-sayedignprice
authored andcommitted
profile: Add button for setting/showing user status in self-user profile
In self-user profile page, this also removes the user status information where shown in regular (non-self-user) profile page, as the newly-added button already shows the same information.
1 parent 3c4a65c commit d1e38ff

15 files changed

+199
-27
lines changed

assets/l10n/app_en.arb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -809,6 +809,18 @@
809809
"@userRoleUnknown": {
810810
"description": "Label for UserRole.unknown"
811811
},
812+
"statusButtonLabelStatusSet": "Status",
813+
"@statusButtonLabelStatusSet": {
814+
"description": "The status button label in self-user profile page when status is set."
815+
},
816+
"statusButtonLabelStatusUnset": "Set status",
817+
"@statusButtonLabelStatusUnset": {
818+
"description": "The status button label in self-user profile page when status is not set."
819+
},
820+
"noStatusText": "No status text",
821+
"@noStatusText": {
822+
"description": "The text part of the status button sub-label in self-user profile page when status text is not set."
823+
},
812824
"searchMessagesPageTitle": "Search",
813825
"@searchMessagesPageTitle": {
814826
"description": "Page title for the 'Search' message view."

lib/generated/l10n/zulip_localizations.dart

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,6 +1227,24 @@ abstract class ZulipLocalizations {
12271227
/// **'Unknown'**
12281228
String get userRoleUnknown;
12291229

1230+
/// The status button label in self-user profile page when status is set.
1231+
///
1232+
/// In en, this message translates to:
1233+
/// **'Status'**
1234+
String get statusButtonLabelStatusSet;
1235+
1236+
/// The status button label in self-user profile page when status is not set.
1237+
///
1238+
/// In en, this message translates to:
1239+
/// **'Set status'**
1240+
String get statusButtonLabelStatusUnset;
1241+
1242+
/// The text part of the status button sub-label in self-user profile page when status text is not set.
1243+
///
1244+
/// In en, this message translates to:
1245+
/// **'No status text'**
1246+
String get noStatusText;
1247+
12301248
/// Page title for the 'Search' message view.
12311249
///
12321250
/// In en, this message translates to:

lib/generated/l10n/zulip_localizations_ar.dart

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,15 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
664664
@override
665665
String get userRoleUnknown => 'Unknown';
666666

667+
@override
668+
String get statusButtonLabelStatusSet => 'Status';
669+
670+
@override
671+
String get statusButtonLabelStatusUnset => 'Set status';
672+
673+
@override
674+
String get noStatusText => 'No status text';
675+
667676
@override
668677
String get searchMessagesPageTitle => 'Search';
669678

lib/generated/l10n/zulip_localizations_de.dart

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -685,6 +685,15 @@ class ZulipLocalizationsDe extends ZulipLocalizations {
685685
@override
686686
String get userRoleUnknown => 'Unbekannt';
687687

688+
@override
689+
String get statusButtonLabelStatusSet => 'Status';
690+
691+
@override
692+
String get statusButtonLabelStatusUnset => 'Set status';
693+
694+
@override
695+
String get noStatusText => 'No status text';
696+
688697
@override
689698
String get searchMessagesPageTitle => 'Search';
690699

lib/generated/l10n/zulip_localizations_en.dart

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,15 @@ class ZulipLocalizationsEn extends ZulipLocalizations {
664664
@override
665665
String get userRoleUnknown => 'Unknown';
666666

667+
@override
668+
String get statusButtonLabelStatusSet => 'Status';
669+
670+
@override
671+
String get statusButtonLabelStatusUnset => 'Set status';
672+
673+
@override
674+
String get noStatusText => 'No status text';
675+
667676
@override
668677
String get searchMessagesPageTitle => 'Search';
669678

lib/generated/l10n/zulip_localizations_it.dart

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,15 @@ class ZulipLocalizationsIt extends ZulipLocalizations {
679679
@override
680680
String get userRoleUnknown => 'Sconosciuto';
681681

682+
@override
683+
String get statusButtonLabelStatusSet => 'Status';
684+
685+
@override
686+
String get statusButtonLabelStatusUnset => 'Set status';
687+
688+
@override
689+
String get noStatusText => 'No status text';
690+
682691
@override
683692
String get searchMessagesPageTitle => 'Search';
684693

lib/generated/l10n/zulip_localizations_ja.dart

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,15 @@ class ZulipLocalizationsJa extends ZulipLocalizations {
661661
@override
662662
String get userRoleUnknown => '不明';
663663

664+
@override
665+
String get statusButtonLabelStatusSet => 'Status';
666+
667+
@override
668+
String get statusButtonLabelStatusUnset => 'Set status';
669+
670+
@override
671+
String get noStatusText => 'No status text';
672+
664673
@override
665674
String get searchMessagesPageTitle => 'Search';
666675

lib/generated/l10n/zulip_localizations_nb.dart

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,15 @@ class ZulipLocalizationsNb extends ZulipLocalizations {
664664
@override
665665
String get userRoleUnknown => 'Unknown';
666666

667+
@override
668+
String get statusButtonLabelStatusSet => 'Status';
669+
670+
@override
671+
String get statusButtonLabelStatusUnset => 'Set status';
672+
673+
@override
674+
String get noStatusText => 'No status text';
675+
667676
@override
668677
String get searchMessagesPageTitle => 'Search';
669678

lib/generated/l10n/zulip_localizations_pl.dart

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,15 @@ class ZulipLocalizationsPl extends ZulipLocalizations {
675675
@override
676676
String get userRoleUnknown => 'Nieznany';
677677

678+
@override
679+
String get statusButtonLabelStatusSet => 'Status';
680+
681+
@override
682+
String get statusButtonLabelStatusUnset => 'Set status';
683+
684+
@override
685+
String get noStatusText => 'No status text';
686+
678687
@override
679688
String get searchMessagesPageTitle => 'Szukaj';
680689

lib/generated/l10n/zulip_localizations_ru.dart

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,15 @@ class ZulipLocalizationsRu extends ZulipLocalizations {
678678
@override
679679
String get userRoleUnknown => 'Неизвестно';
680680

681+
@override
682+
String get statusButtonLabelStatusSet => 'Status';
683+
684+
@override
685+
String get statusButtonLabelStatusUnset => 'Set status';
686+
687+
@override
688+
String get noStatusText => 'No status text';
689+
681690
@override
682691
String get searchMessagesPageTitle => 'Поиск';
683692

0 commit comments

Comments
 (0)