Summary: | Inconsistent mapping of Norwegian locales for date formats | ||
---|---|---|---|
Product: | POI | Reporter: | JDM <demurcia> |
Component: | SS Common | Assignee: | POI Developers List <dev> |
Status: | NEEDINFO --- | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All |
Description
JDM
2019-11-15 07:55:58 UTC
So according https://www.science.co.il/language/Locale-codes.php, the assumption about the mapping seems correct. What puzzles me is, that ISO 639-1 language code for Bokmål is "nb", which is not in the list. And according https://www.oracle.com/technetwork/java/javase/java8locales-2095355.html, this should be "nb-NO". Also have look at the notes. So I would ignore the no-NO-x-lvariant-NY variant and change it to the following: "no","no_no","nb","nb_no" -> 0414 "nn","nn_no" -> 0814 Correct? As a side note, we are using a hashmap here ... and add/overwrite multiple entries with the same key - this is anyway wrong :( I found a better reference for the locale -> windows code translation: https://ss64.com/locale.html ... and the offical MS spec is [MS_LCID]: https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-lcid/70feba9f-294e-491e-b6eb-56532684c37f |