From f42be58c85722e813588e829eb49e6326a9d1bde Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 5 Feb 2020 19:43:41 +0000 Subject: [PATCH] --- devdocs/specs/core-internationalization.txt | 5 ++++- .../specs/core-locale-currency-numbers-time-and-dates.txt | 4 +++- server/AyaNova/models/Locale.cs | 6 ++++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/devdocs/specs/core-internationalization.txt b/devdocs/specs/core-internationalization.txt index 12808bd3..d20539b6 100644 --- a/devdocs/specs/core-internationalization.txt +++ b/devdocs/specs/core-internationalization.txt @@ -6,4 +6,7 @@ REQUIREMENTS - Client does *ALL* internationalization display locally, only exception is the server ops logs - This saves bandwidth and hassle and leaves presentation to the client where it belongs (was a source of trouble in v7) - User options contain the date, timezone and currency format for presentation purposes - - API data is in as neutral a format as possible, i.e. ISO whatever it is for dates and times, currency is just a number? (not going multicurrency?) \ No newline at end of file + - API data is in as neutral a format as possible, i.e. ISO whatever it is for dates and times, currency is just a number? (not going multicurrency?) + + CALENDARS + - Only the Gregorian calendar is supported \ No newline at end of file diff --git a/devdocs/specs/core-locale-currency-numbers-time-and-dates.txt b/devdocs/specs/core-locale-currency-numbers-time-and-dates.txt index 368e1f36..c827feb9 100644 --- a/devdocs/specs/core-locale-currency-numbers-time-and-dates.txt +++ b/devdocs/specs/core-locale-currency-numbers-time-and-dates.txt @@ -24,10 +24,12 @@ The issue comes into play when you write your .NET Core code specifically using */ +LOCALE has defaults for currency, date, time handling CLIENT RESPONSIBILITIES FOR DATES AND TIME ZONES - Send all datetime fields on records to the server in UTC - Displayed dates and times are adjusted to user timezoneoffset + - Month, day of week name and am / pm designators come from localized text CURRENCY @@ -35,6 +37,6 @@ CURRENCY - Displayed and accepted based on UserOption currency symbol NUMBER - - Displayed and accepted based on userOptions numeric format (needs work) + - Displayed and accepted based on userOptions numeric format https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat diff --git a/server/AyaNova/models/Locale.cs b/server/AyaNova/models/Locale.cs index 742b15de..14dc74de 100644 --- a/server/AyaNova/models/Locale.cs +++ b/server/AyaNova/models/Locale.cs @@ -18,6 +18,12 @@ namespace AyaNova.Models public bool? Stock { get; set; } public bool CjkIndex { get; set; } + //TODO: Defaults for user options locale settings: + // short date, short time formats + // currency symbol + //digit grouping separator symbol + //decimal symbol + //Relationship //was this but..