chore: rewrite UI strings for time format hints

This commit is contained in:
Richard Shiue 2022-09-17 17:40:21 +08:00
parent 3e75b1ac92
commit 2e60459878
8 changed files with 17 additions and 17 deletions

View File

@ -222,8 +222,8 @@
"document": { "document": {
"menuName": "Doc", "menuName": "Doc",
"date": { "date": {
"timeHintTextInTwelveHour": "12:00 AM", "timeHintTextInTwelveHour": "01:00 PM",
"timeHintTextInTwentyFourHour": "12:00" "timeHintTextInTwentyFourHour": "13:00"
} }
}, },
"board": { "board": {

View File

@ -210,8 +210,8 @@
"document": { "document": {
"menuName": "Doc", "menuName": "Doc",
"date": { "date": {
"timeHintTextInTwelveHour": "12:00 AM", "timeHintTextInTwelveHour": "01:00 PM",
"timeHintTextInTwentyFourHour": "12:00" "timeHintTextInTwentyFourHour": "13:00"
} }
}, },
"sideBar": { "sideBar": {

View File

@ -208,8 +208,8 @@
"document": { "document": {
"menuName": "Doc", "menuName": "Doc",
"date": { "date": {
"timeHintTextInTwelveHour": "12:00 AM", "timeHintTextInTwelveHour": "01:00 PM",
"timeHintTextInTwentyFourHour": "12:00" "timeHintTextInTwentyFourHour": "13:00"
} }
} }
} }

View File

@ -211,8 +211,8 @@
"document": { "document": {
"menuName": "Doc", "menuName": "Doc",
"date": { "date": {
"timeHintTextInTwelveHour": "12:00 AM", "timeHintTextInTwelveHour": "01:00 PM",
"timeHintTextInTwentyFourHour": "12:00" "timeHintTextInTwentyFourHour": "13:00"
} }
}, },
"sideBar": { "sideBar": {

View File

@ -200,8 +200,8 @@
"searchOption": "Поиск" "searchOption": "Поиск"
}, },
"date": { "date": {
"timeHintTextInTwelveHour": "12:00 AM", "timeHintTextInTwelveHour": "01:00 PM",
"timeHintTextInTwentyFourHour": "12:00" "timeHintTextInTwentyFourHour": "13:00"
} }
}, },
"sideBar": { "sideBar": {

View File

@ -215,8 +215,8 @@
"document": { "document": {
"menuName": "文档", "menuName": "文档",
"date": { "date": {
"timeHintTextInTwelveHour": "12:00 AM", "timeHintTextInTwelveHour": "01:00 PM",
"timeHintTextInTwentyFourHour": "12:00" "timeHintTextInTwentyFourHour": "13:00"
} }
} }
} }

View File

@ -211,8 +211,8 @@
"document": { "document": {
"menuName": "檔案", "menuName": "檔案",
"date": { "date": {
"timeHintTextInTwelveHour": "12:00 AM", "timeHintTextInTwelveHour": "01:00 PM",
"timeHintTextInTwentyFourHour": "12:00" "timeHintTextInTwentyFourHour": "13:00"
} }
}, },
"sideBar": { "sideBar": {

View File

@ -119,13 +119,13 @@ class DateCalBloc extends Bloc<DateCalEvent, DateCalState> {
} }
String timeFormatPrompt(FlowyError error) { String timeFormatPrompt(FlowyError error) {
String msg = "${LocaleKeys.grid_field_invalidTimeFormat.tr()}. "; String msg = "${LocaleKeys.grid_field_invalidTimeFormat.tr()}.";
switch (state.dateTypeOptionPB.timeFormat) { switch (state.dateTypeOptionPB.timeFormat) {
case TimeFormat.TwelveHour: case TimeFormat.TwelveHour:
msg = "${msg}e.g. 01: 00 AM"; msg = "$msg e.g. 01:00 PM";
break; break;
case TimeFormat.TwentyFourHour: case TimeFormat.TwentyFourHour:
msg = "${msg}e.g. 13: 00"; msg = "$msg e.g. 13:00";
break; break;
default: default:
break; break;