Skip to content

Commit b239894

Browse files
committed
user-status: Add page for setting own user status
Fixes: #198
1 parent ab0eba9 commit b239894

18 files changed

+1410
-0
lines changed

assets/l10n/app_en.arb

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -829,6 +829,54 @@
829829
"@noStatusText": {
830830
"description": "The text part of the status button sub-label in self-user profile page when status text is not set."
831831
},
832+
"setStatusPageTitle": "Set status",
833+
"@setStatusPageTitle": {
834+
"description": "Title for the 'Set status' page."
835+
},
836+
"statusClearButtonLabel": "Clear",
837+
"@statusClearButtonLabel": {
838+
"description": "Label for the button that clears the user status, in 'Set status' page."
839+
},
840+
"statusSaveButtonLabel": "Save",
841+
"@statusSaveButtonLabel": {
842+
"description": "Label for the button that saves the user status, in 'Set status' page."
843+
},
844+
"statusTextHint": "Your status",
845+
"@statusTextHint": {
846+
"description": "Hint text for the status text input field in 'Set status' page."
847+
},
848+
"userStatusBusy": "Busy",
849+
"@userStatusBusy": {
850+
"description": "A suggested user status text, 'Busy'."
851+
},
852+
"userStatusInAMeeting": "In a meeting",
853+
"@userStatusInAMeeting": {
854+
"description": "A suggested user status text, 'In a meeting'."
855+
},
856+
"userStatusCommuting": "Commuting",
857+
"@userStatusCommuting": {
858+
"description": "A suggested user status text, 'Commuting'."
859+
},
860+
"userStatusOutSick": "Out sick",
861+
"@userStatusOutSick": {
862+
"description": "A suggested user status text, 'Out sick'."
863+
},
864+
"userStatusVacationing": "Vacationing",
865+
"@userStatusVacationing": {
866+
"description": "A suggested user status text, 'Vacationing'."
867+
},
868+
"userStatusWorkingRemotely": "Working remotely",
869+
"@userStatusWorkingRemotely": {
870+
"description": "A suggested user status text, 'Working remotely'."
871+
},
872+
"userStatusAtTheOffice": "At the office",
873+
"@userStatusAtTheOffice": {
874+
"description": "A suggested user status text, 'At the office'."
875+
},
876+
"updateStatusErrorTitle": "Error updating user status. Please try again.",
877+
"@updateStatusErrorTitle": {
878+
"description": "Error title when updating user status failed."
879+
},
832880
"searchMessagesPageTitle": "Search",
833881
"@searchMessagesPageTitle": {
834882
"description": "Page title for the 'Search' message view."

lib/generated/l10n/zulip_localizations.dart

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,6 +1259,78 @@ abstract class ZulipLocalizations {
12591259
/// **'No status text'**
12601260
String get noStatusText;
12611261

1262+
/// Title for the 'Set status' page.
1263+
///
1264+
/// In en, this message translates to:
1265+
/// **'Set status'**
1266+
String get setStatusPageTitle;
1267+
1268+
/// Label for the button that clears the user status, in 'Set status' page.
1269+
///
1270+
/// In en, this message translates to:
1271+
/// **'Clear'**
1272+
String get statusClearButtonLabel;
1273+
1274+
/// Label for the button that saves the user status, in 'Set status' page.
1275+
///
1276+
/// In en, this message translates to:
1277+
/// **'Save'**
1278+
String get statusSaveButtonLabel;
1279+
1280+
/// Hint text for the status text input field in 'Set status' page.
1281+
///
1282+
/// In en, this message translates to:
1283+
/// **'Your status'**
1284+
String get statusTextHint;
1285+
1286+
/// A suggested user status text, 'Busy'.
1287+
///
1288+
/// In en, this message translates to:
1289+
/// **'Busy'**
1290+
String get userStatusBusy;
1291+
1292+
/// A suggested user status text, 'In a meeting'.
1293+
///
1294+
/// In en, this message translates to:
1295+
/// **'In a meeting'**
1296+
String get userStatusInAMeeting;
1297+
1298+
/// A suggested user status text, 'Commuting'.
1299+
///
1300+
/// In en, this message translates to:
1301+
/// **'Commuting'**
1302+
String get userStatusCommuting;
1303+
1304+
/// A suggested user status text, 'Out sick'.
1305+
///
1306+
/// In en, this message translates to:
1307+
/// **'Out sick'**
1308+
String get userStatusOutSick;
1309+
1310+
/// A suggested user status text, 'Vacationing'.
1311+
///
1312+
/// In en, this message translates to:
1313+
/// **'Vacationing'**
1314+
String get userStatusVacationing;
1315+
1316+
/// A suggested user status text, 'Working remotely'.
1317+
///
1318+
/// In en, this message translates to:
1319+
/// **'Working remotely'**
1320+
String get userStatusWorkingRemotely;
1321+
1322+
/// A suggested user status text, 'At the office'.
1323+
///
1324+
/// In en, this message translates to:
1325+
/// **'At the office'**
1326+
String get userStatusAtTheOffice;
1327+
1328+
/// Error title when updating user status failed.
1329+
///
1330+
/// In en, this message translates to:
1331+
/// **'Error updating user status. Please try again.'**
1332+
String get updateStatusErrorTitle;
1333+
12621334
/// Page title for the 'Search' message view.
12631335
///
12641336
/// In en, this message translates to:

lib/generated/l10n/zulip_localizations_ar.dart

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,43 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
679679
@override
680680
String get noStatusText => 'No status text';
681681

682+
@override
683+
String get setStatusPageTitle => 'Set status';
684+
685+
@override
686+
String get statusClearButtonLabel => 'Clear';
687+
688+
@override
689+
String get statusSaveButtonLabel => 'Save';
690+
691+
@override
692+
String get statusTextHint => 'Your status';
693+
694+
@override
695+
String get userStatusBusy => 'Busy';
696+
697+
@override
698+
String get userStatusInAMeeting => 'In a meeting';
699+
700+
@override
701+
String get userStatusCommuting => 'Commuting';
702+
703+
@override
704+
String get userStatusOutSick => 'Out sick';
705+
706+
@override
707+
String get userStatusVacationing => 'Vacationing';
708+
709+
@override
710+
String get userStatusWorkingRemotely => 'Working remotely';
711+
712+
@override
713+
String get userStatusAtTheOffice => 'At the office';
714+
715+
@override
716+
String get updateStatusErrorTitle =>
717+
'Error updating user status. Please try again.';
718+
682719
@override
683720
String get searchMessagesPageTitle => 'Search';
684721

lib/generated/l10n/zulip_localizations_de.dart

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,43 @@ class ZulipLocalizationsDe extends ZulipLocalizations {
700700
@override
701701
String get noStatusText => 'No status text';
702702

703+
@override
704+
String get setStatusPageTitle => 'Set status';
705+
706+
@override
707+
String get statusClearButtonLabel => 'Clear';
708+
709+
@override
710+
String get statusSaveButtonLabel => 'Save';
711+
712+
@override
713+
String get statusTextHint => 'Your status';
714+
715+
@override
716+
String get userStatusBusy => 'Busy';
717+
718+
@override
719+
String get userStatusInAMeeting => 'In a meeting';
720+
721+
@override
722+
String get userStatusCommuting => 'Commuting';
723+
724+
@override
725+
String get userStatusOutSick => 'Out sick';
726+
727+
@override
728+
String get userStatusVacationing => 'Vacationing';
729+
730+
@override
731+
String get userStatusWorkingRemotely => 'Working remotely';
732+
733+
@override
734+
String get userStatusAtTheOffice => 'At the office';
735+
736+
@override
737+
String get updateStatusErrorTitle =>
738+
'Error updating user status. Please try again.';
739+
703740
@override
704741
String get searchMessagesPageTitle => 'Search';
705742

lib/generated/l10n/zulip_localizations_en.dart

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,43 @@ class ZulipLocalizationsEn extends ZulipLocalizations {
679679
@override
680680
String get noStatusText => 'No status text';
681681

682+
@override
683+
String get setStatusPageTitle => 'Set status';
684+
685+
@override
686+
String get statusClearButtonLabel => 'Clear';
687+
688+
@override
689+
String get statusSaveButtonLabel => 'Save';
690+
691+
@override
692+
String get statusTextHint => 'Your status';
693+
694+
@override
695+
String get userStatusBusy => 'Busy';
696+
697+
@override
698+
String get userStatusInAMeeting => 'In a meeting';
699+
700+
@override
701+
String get userStatusCommuting => 'Commuting';
702+
703+
@override
704+
String get userStatusOutSick => 'Out sick';
705+
706+
@override
707+
String get userStatusVacationing => 'Vacationing';
708+
709+
@override
710+
String get userStatusWorkingRemotely => 'Working remotely';
711+
712+
@override
713+
String get userStatusAtTheOffice => 'At the office';
714+
715+
@override
716+
String get updateStatusErrorTitle =>
717+
'Error updating user status. Please try again.';
718+
682719
@override
683720
String get searchMessagesPageTitle => 'Search';
684721

lib/generated/l10n/zulip_localizations_fr.dart

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,43 @@ class ZulipLocalizationsFr extends ZulipLocalizations {
679679
@override
680680
String get noStatusText => 'No status text';
681681

682+
@override
683+
String get setStatusPageTitle => 'Set status';
684+
685+
@override
686+
String get statusClearButtonLabel => 'Clear';
687+
688+
@override
689+
String get statusSaveButtonLabel => 'Save';
690+
691+
@override
692+
String get statusTextHint => 'Your status';
693+
694+
@override
695+
String get userStatusBusy => 'Busy';
696+
697+
@override
698+
String get userStatusInAMeeting => 'In a meeting';
699+
700+
@override
701+
String get userStatusCommuting => 'Commuting';
702+
703+
@override
704+
String get userStatusOutSick => 'Out sick';
705+
706+
@override
707+
String get userStatusVacationing => 'Vacationing';
708+
709+
@override
710+
String get userStatusWorkingRemotely => 'Working remotely';
711+
712+
@override
713+
String get userStatusAtTheOffice => 'At the office';
714+
715+
@override
716+
String get updateStatusErrorTitle =>
717+
'Error updating user status. Please try again.';
718+
682719
@override
683720
String get searchMessagesPageTitle => 'Search';
684721

lib/generated/l10n/zulip_localizations_it.dart

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,43 @@ class ZulipLocalizationsIt extends ZulipLocalizations {
694694
@override
695695
String get noStatusText => 'No status text';
696696

697+
@override
698+
String get setStatusPageTitle => 'Set status';
699+
700+
@override
701+
String get statusClearButtonLabel => 'Clear';
702+
703+
@override
704+
String get statusSaveButtonLabel => 'Save';
705+
706+
@override
707+
String get statusTextHint => 'Your status';
708+
709+
@override
710+
String get userStatusBusy => 'Busy';
711+
712+
@override
713+
String get userStatusInAMeeting => 'In a meeting';
714+
715+
@override
716+
String get userStatusCommuting => 'Commuting';
717+
718+
@override
719+
String get userStatusOutSick => 'Out sick';
720+
721+
@override
722+
String get userStatusVacationing => 'Vacationing';
723+
724+
@override
725+
String get userStatusWorkingRemotely => 'Working remotely';
726+
727+
@override
728+
String get userStatusAtTheOffice => 'At the office';
729+
730+
@override
731+
String get updateStatusErrorTitle =>
732+
'Error updating user status. Please try again.';
733+
697734
@override
698735
String get searchMessagesPageTitle => 'Search';
699736

lib/generated/l10n/zulip_localizations_ja.dart

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,43 @@ class ZulipLocalizationsJa extends ZulipLocalizations {
676676
@override
677677
String get noStatusText => 'No status text';
678678

679+
@override
680+
String get setStatusPageTitle => 'Set status';
681+
682+
@override
683+
String get statusClearButtonLabel => 'Clear';
684+
685+
@override
686+
String get statusSaveButtonLabel => 'Save';
687+
688+
@override
689+
String get statusTextHint => 'Your status';
690+
691+
@override
692+
String get userStatusBusy => 'Busy';
693+
694+
@override
695+
String get userStatusInAMeeting => 'In a meeting';
696+
697+
@override
698+
String get userStatusCommuting => 'Commuting';
699+
700+
@override
701+
String get userStatusOutSick => 'Out sick';
702+
703+
@override
704+
String get userStatusVacationing => 'Vacationing';
705+
706+
@override
707+
String get userStatusWorkingRemotely => 'Working remotely';
708+
709+
@override
710+
String get userStatusAtTheOffice => 'At the office';
711+
712+
@override
713+
String get updateStatusErrorTitle =>
714+
'Error updating user status. Please try again.';
715+
679716
@override
680717
String get searchMessagesPageTitle => 'Search';
681718

0 commit comments

Comments
 (0)