From 2e60459878bd1b06aebb7d618e5e75048b6b8ddb Mon Sep 17 00:00:00 2001 From: Richard Shiue <71320345+richardshiue@users.noreply.github.com> Date: Sat, 17 Sep 2022 17:40:21 +0800 Subject: [PATCH] chore: rewrite UI strings for time format hints --- frontend/app_flowy/assets/translations/en.json | 4 ++-- frontend/app_flowy/assets/translations/es-VE.json | 4 ++-- frontend/app_flowy/assets/translations/fr-FR.json | 4 ++-- frontend/app_flowy/assets/translations/id-ID.json | 4 ++-- frontend/app_flowy/assets/translations/ru-RU.json | 4 ++-- frontend/app_flowy/assets/translations/zh-CN.json | 4 ++-- frontend/app_flowy/assets/translations/zh-TW.json | 4 ++-- .../lib/plugins/grid/application/cell/date_cal_bloc.dart | 6 +++--- 8 files changed, 17 insertions(+), 17 deletions(-) diff --git a/frontend/app_flowy/assets/translations/en.json b/frontend/app_flowy/assets/translations/en.json index 4248a36ba8..b607180f4f 100644 --- a/frontend/app_flowy/assets/translations/en.json +++ b/frontend/app_flowy/assets/translations/en.json @@ -222,8 +222,8 @@ "document": { "menuName": "Doc", "date": { - "timeHintTextInTwelveHour": "12:00 AM", - "timeHintTextInTwentyFourHour": "12:00" + "timeHintTextInTwelveHour": "01:00 PM", + "timeHintTextInTwentyFourHour": "13:00" } }, "board": { diff --git a/frontend/app_flowy/assets/translations/es-VE.json b/frontend/app_flowy/assets/translations/es-VE.json index fa43d7f21d..b07b0a6ef5 100644 --- a/frontend/app_flowy/assets/translations/es-VE.json +++ b/frontend/app_flowy/assets/translations/es-VE.json @@ -210,8 +210,8 @@ "document": { "menuName": "Doc", "date": { - "timeHintTextInTwelveHour": "12:00 AM", - "timeHintTextInTwentyFourHour": "12:00" + "timeHintTextInTwelveHour": "01:00 PM", + "timeHintTextInTwentyFourHour": "13:00" } }, "sideBar": { diff --git a/frontend/app_flowy/assets/translations/fr-FR.json b/frontend/app_flowy/assets/translations/fr-FR.json index f8fc8fa2e3..1408db0343 100644 --- a/frontend/app_flowy/assets/translations/fr-FR.json +++ b/frontend/app_flowy/assets/translations/fr-FR.json @@ -208,8 +208,8 @@ "document": { "menuName": "Doc", "date": { - "timeHintTextInTwelveHour": "12:00 AM", - "timeHintTextInTwentyFourHour": "12:00" + "timeHintTextInTwelveHour": "01:00 PM", + "timeHintTextInTwentyFourHour": "13:00" } } } \ No newline at end of file diff --git a/frontend/app_flowy/assets/translations/id-ID.json b/frontend/app_flowy/assets/translations/id-ID.json index 022cc29713..765865b012 100644 --- a/frontend/app_flowy/assets/translations/id-ID.json +++ b/frontend/app_flowy/assets/translations/id-ID.json @@ -211,8 +211,8 @@ "document": { "menuName": "Doc", "date": { - "timeHintTextInTwelveHour": "12:00 AM", - "timeHintTextInTwentyFourHour": "12:00" + "timeHintTextInTwelveHour": "01:00 PM", + "timeHintTextInTwentyFourHour": "13:00" } }, "sideBar": { diff --git a/frontend/app_flowy/assets/translations/ru-RU.json b/frontend/app_flowy/assets/translations/ru-RU.json index 96958be5a6..a785ccadc7 100644 --- a/frontend/app_flowy/assets/translations/ru-RU.json +++ b/frontend/app_flowy/assets/translations/ru-RU.json @@ -200,8 +200,8 @@ "searchOption": "Поиск" }, "date": { - "timeHintTextInTwelveHour": "12:00 AM", - "timeHintTextInTwentyFourHour": "12:00" + "timeHintTextInTwelveHour": "01:00 PM", + "timeHintTextInTwentyFourHour": "13:00" } }, "sideBar": { diff --git a/frontend/app_flowy/assets/translations/zh-CN.json b/frontend/app_flowy/assets/translations/zh-CN.json index e9133703a9..e5628c8bb8 100644 --- a/frontend/app_flowy/assets/translations/zh-CN.json +++ b/frontend/app_flowy/assets/translations/zh-CN.json @@ -215,8 +215,8 @@ "document": { "menuName": "文档", "date": { - "timeHintTextInTwelveHour": "12:00 AM", - "timeHintTextInTwentyFourHour": "12:00" + "timeHintTextInTwelveHour": "01:00 PM", + "timeHintTextInTwentyFourHour": "13:00" } } } \ No newline at end of file diff --git a/frontend/app_flowy/assets/translations/zh-TW.json b/frontend/app_flowy/assets/translations/zh-TW.json index c3285aa4b3..6990d1697b 100644 --- a/frontend/app_flowy/assets/translations/zh-TW.json +++ b/frontend/app_flowy/assets/translations/zh-TW.json @@ -211,8 +211,8 @@ "document": { "menuName": "檔案", "date": { - "timeHintTextInTwelveHour": "12:00 AM", - "timeHintTextInTwentyFourHour": "12:00" + "timeHintTextInTwelveHour": "01:00 PM", + "timeHintTextInTwentyFourHour": "13:00" } }, "sideBar": { diff --git a/frontend/app_flowy/lib/plugins/grid/application/cell/date_cal_bloc.dart b/frontend/app_flowy/lib/plugins/grid/application/cell/date_cal_bloc.dart index 6fb8e7e5b0..1dcc74f196 100644 --- a/frontend/app_flowy/lib/plugins/grid/application/cell/date_cal_bloc.dart +++ b/frontend/app_flowy/lib/plugins/grid/application/cell/date_cal_bloc.dart @@ -119,13 +119,13 @@ class DateCalBloc extends Bloc { } String timeFormatPrompt(FlowyError error) { - String msg = "${LocaleKeys.grid_field_invalidTimeFormat.tr()}. "; + String msg = "${LocaleKeys.grid_field_invalidTimeFormat.tr()}."; switch (state.dateTypeOptionPB.timeFormat) { case TimeFormat.TwelveHour: - msg = "${msg}e.g. 01: 00 AM"; + msg = "$msg e.g. 01:00 PM"; break; case TimeFormat.TwentyFourHour: - msg = "${msg}e.g. 13: 00"; + msg = "$msg e.g. 13:00"; break; default: break;