mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-13 18:58:53 +01:00
Tweak messaging
This commit is contained in:
parent
9bc4e7c97d
commit
daee7dfb49
3 changed files with 36 additions and 16 deletions
|
@ -1500,6 +1500,7 @@
|
|||
"mapBrowserDateRangeCustom": "Custom",
|
||||
"homeTabMapBrowser": "Map",
|
||||
"mapBrowserSetDefaultDateRangeButton": "Set as default",
|
||||
"todayText": "Today",
|
||||
|
||||
"errorUnauthenticated": "Unauthenticated access. Please sign-in again if the problem continues",
|
||||
"@errorUnauthenticated": {
|
||||
|
|
|
@ -259,6 +259,7 @@
|
|||
"mapBrowserDateRangeCustom",
|
||||
"homeTabMapBrowser",
|
||||
"mapBrowserSetDefaultDateRangeButton",
|
||||
"todayText",
|
||||
"errorUnauthenticated",
|
||||
"errorDisconnected",
|
||||
"errorLocked",
|
||||
|
@ -304,7 +305,8 @@
|
|||
"mapBrowserDateRangeThisYear",
|
||||
"mapBrowserDateRangeCustom",
|
||||
"homeTabMapBrowser",
|
||||
"mapBrowserSetDefaultDateRangeButton"
|
||||
"mapBrowserSetDefaultDateRangeButton",
|
||||
"todayText"
|
||||
],
|
||||
|
||||
"de": [
|
||||
|
@ -348,7 +350,8 @@
|
|||
"mapBrowserDateRangeThisYear",
|
||||
"mapBrowserDateRangeCustom",
|
||||
"homeTabMapBrowser",
|
||||
"mapBrowserSetDefaultDateRangeButton"
|
||||
"mapBrowserSetDefaultDateRangeButton",
|
||||
"todayText"
|
||||
],
|
||||
|
||||
"el": [
|
||||
|
@ -495,7 +498,8 @@
|
|||
"mapBrowserDateRangeThisYear",
|
||||
"mapBrowserDateRangeCustom",
|
||||
"homeTabMapBrowser",
|
||||
"mapBrowserSetDefaultDateRangeButton"
|
||||
"mapBrowserSetDefaultDateRangeButton",
|
||||
"todayText"
|
||||
],
|
||||
|
||||
"es": [
|
||||
|
@ -533,7 +537,8 @@
|
|||
"mapBrowserDateRangeThisYear",
|
||||
"mapBrowserDateRangeCustom",
|
||||
"homeTabMapBrowser",
|
||||
"mapBrowserSetDefaultDateRangeButton"
|
||||
"mapBrowserSetDefaultDateRangeButton",
|
||||
"todayText"
|
||||
],
|
||||
|
||||
"fi": [
|
||||
|
@ -571,7 +576,8 @@
|
|||
"mapBrowserDateRangeThisYear",
|
||||
"mapBrowserDateRangeCustom",
|
||||
"homeTabMapBrowser",
|
||||
"mapBrowserSetDefaultDateRangeButton"
|
||||
"mapBrowserSetDefaultDateRangeButton",
|
||||
"todayText"
|
||||
],
|
||||
|
||||
"fr": [
|
||||
|
@ -609,7 +615,8 @@
|
|||
"mapBrowserDateRangeThisYear",
|
||||
"mapBrowserDateRangeCustom",
|
||||
"homeTabMapBrowser",
|
||||
"mapBrowserSetDefaultDateRangeButton"
|
||||
"mapBrowserSetDefaultDateRangeButton",
|
||||
"todayText"
|
||||
],
|
||||
|
||||
"it": [
|
||||
|
@ -652,7 +659,8 @@
|
|||
"mapBrowserDateRangeThisYear",
|
||||
"mapBrowserDateRangeCustom",
|
||||
"homeTabMapBrowser",
|
||||
"mapBrowserSetDefaultDateRangeButton"
|
||||
"mapBrowserSetDefaultDateRangeButton",
|
||||
"todayText"
|
||||
],
|
||||
|
||||
"nl": [
|
||||
|
@ -1032,6 +1040,7 @@
|
|||
"mapBrowserDateRangeCustom",
|
||||
"homeTabMapBrowser",
|
||||
"mapBrowserSetDefaultDateRangeButton",
|
||||
"todayText",
|
||||
"errorUnauthenticated",
|
||||
"errorDisconnected",
|
||||
"errorLocked",
|
||||
|
@ -1081,7 +1090,8 @@
|
|||
"mapBrowserDateRangeThisYear",
|
||||
"mapBrowserDateRangeCustom",
|
||||
"homeTabMapBrowser",
|
||||
"mapBrowserSetDefaultDateRangeButton"
|
||||
"mapBrowserSetDefaultDateRangeButton",
|
||||
"todayText"
|
||||
],
|
||||
|
||||
"pt": [
|
||||
|
@ -1139,7 +1149,8 @@
|
|||
"mapBrowserDateRangeThisYear",
|
||||
"mapBrowserDateRangeCustom",
|
||||
"homeTabMapBrowser",
|
||||
"mapBrowserSetDefaultDateRangeButton"
|
||||
"mapBrowserSetDefaultDateRangeButton",
|
||||
"todayText"
|
||||
],
|
||||
|
||||
"ru": [
|
||||
|
@ -1177,11 +1188,13 @@
|
|||
"mapBrowserDateRangeThisYear",
|
||||
"mapBrowserDateRangeCustom",
|
||||
"homeTabMapBrowser",
|
||||
"mapBrowserSetDefaultDateRangeButton"
|
||||
"mapBrowserSetDefaultDateRangeButton",
|
||||
"todayText"
|
||||
],
|
||||
|
||||
"tr": [
|
||||
"mapBrowserSetDefaultDateRangeButton"
|
||||
"mapBrowserSetDefaultDateRangeButton",
|
||||
"todayText"
|
||||
],
|
||||
|
||||
"zh": [
|
||||
|
@ -1250,7 +1263,8 @@
|
|||
"mapBrowserDateRangeThisYear",
|
||||
"mapBrowserDateRangeCustom",
|
||||
"homeTabMapBrowser",
|
||||
"mapBrowserSetDefaultDateRangeButton"
|
||||
"mapBrowserSetDefaultDateRangeButton",
|
||||
"todayText"
|
||||
],
|
||||
|
||||
"zh_Hant": [
|
||||
|
@ -1413,6 +1427,7 @@
|
|||
"mapBrowserDateRangeThisYear",
|
||||
"mapBrowserDateRangeCustom",
|
||||
"homeTabMapBrowser",
|
||||
"mapBrowserSetDefaultDateRangeButton"
|
||||
"mapBrowserSetDefaultDateRangeButton",
|
||||
"todayText"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -385,9 +385,13 @@ class _DateFieldState extends State<_DateField> {
|
|||
}
|
||||
|
||||
String _stringify(Date date) {
|
||||
return intl.DateFormat(intl.DateFormat.YEAR_ABBR_MONTH_DAY,
|
||||
Localizations.localeOf(context).languageCode)
|
||||
.format(date.toLocalDateTime());
|
||||
if (date == clock.now().toDate()) {
|
||||
return L10n.global().todayText;
|
||||
} else {
|
||||
return intl.DateFormat(intl.DateFormat.YEAR_ABBR_MONTH_DAY,
|
||||
Localizations.localeOf(context).languageCode)
|
||||
.format(date.toLocalDateTime());
|
||||
}
|
||||
}
|
||||
|
||||
late final _controller = TextEditingController(text: _stringify(widget.date));
|
||||
|
|
Loading…
Reference in a new issue