Skip to content

Commit 37e44e0

Browse files
committed
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 da00324 commit 37e44e0

17 files changed

+270
-42
lines changed

assets/l10n/app_en.arb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -825,6 +825,18 @@
825825
"@userRoleUnknown": {
826826
"description": "Label for UserRole.unknown"
827827
},
828+
"statusButtonLabelStatusSet": "Status",
829+
"@statusButtonLabelStatusSet": {
830+
"description": "The status button label in self-user profile page when status is set."
831+
},
832+
"statusButtonLabelStatusUnset": "Set status",
833+
"@statusButtonLabelStatusUnset": {
834+
"description": "The status button label in self-user profile page when status is not set."
835+
},
836+
"noStatusText": "No status text",
837+
"@noStatusText": {
838+
"description": "The text part of the status button sub-label in self-user profile page when status text is not set."
839+
},
828840
"searchMessagesPageTitle": "Search",
829841
"@searchMessagesPageTitle": {
830842
"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
@@ -1253,6 +1253,24 @@ abstract class ZulipLocalizations {
12531253
/// **'Unknown'**
12541254
String get userRoleUnknown;
12551255

1256+
/// The status button label in self-user profile page when status is set.
1257+
///
1258+
/// In en, this message translates to:
1259+
/// **'Status'**
1260+
String get statusButtonLabelStatusSet;
1261+
1262+
/// The status button label in self-user profile page when status is not set.
1263+
///
1264+
/// In en, this message translates to:
1265+
/// **'Set status'**
1266+
String get statusButtonLabelStatusUnset;
1267+
1268+
/// The text part of the status button sub-label in self-user profile page when status text is not set.
1269+
///
1270+
/// In en, this message translates to:
1271+
/// **'No status text'**
1272+
String get noStatusText;
1273+
12561274
/// Page title for the 'Search' message view.
12571275
///
12581276
/// 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
@@ -676,6 +676,15 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
676676
@override
677677
String get userRoleUnknown => 'Unknown';
678678

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

lib/generated/l10n/zulip_localizations_de.dart

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

700+
@override
701+
String get statusButtonLabelStatusSet => 'Status';
702+
703+
@override
704+
String get statusButtonLabelStatusUnset => 'Set status';
705+
706+
@override
707+
String get noStatusText => 'No status text';
708+
700709
@override
701710
String get searchMessagesPageTitle => 'Search';
702711

lib/generated/l10n/zulip_localizations_en.dart

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

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

lib/generated/l10n/zulip_localizations_fr.dart

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

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

lib/generated/l10n/zulip_localizations_it.dart

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

694+
@override
695+
String get statusButtonLabelStatusSet => 'Status';
696+
697+
@override
698+
String get statusButtonLabelStatusUnset => 'Set status';
699+
700+
@override
701+
String get noStatusText => 'No status text';
702+
694703
@override
695704
String get searchMessagesPageTitle => 'Search';
696705

lib/generated/l10n/zulip_localizations_ja.dart

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

676+
@override
677+
String get statusButtonLabelStatusSet => 'Status';
678+
679+
@override
680+
String get statusButtonLabelStatusUnset => 'Set status';
681+
682+
@override
683+
String get noStatusText => 'No status text';
684+
676685
@override
677686
String get searchMessagesPageTitle => 'Search';
678687

lib/generated/l10n/zulip_localizations_nb.dart

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

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

lib/generated/l10n/zulip_localizations_pl.dart

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

690+
@override
691+
String get statusButtonLabelStatusSet => 'Status';
692+
693+
@override
694+
String get statusButtonLabelStatusUnset => 'Set status';
695+
696+
@override
697+
String get noStatusText => 'No status text';
698+
690699
@override
691700
String get searchMessagesPageTitle => 'Szukaj';
692701

0 commit comments

Comments
 (0)