From 19a91003295c8bd5382b6843e12353a01daa88af Mon Sep 17 00:00:00 2001 From: Helge Berland <34238056+hberland@users.noreply.github.com> Date: Tue, 5 Apr 2022 22:10:17 +0200 Subject: [PATCH] Added norwegian locale MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added norwegian locale to the list, and also listed our three special characters æ, ø and å in the fallback list. They are all in the codebook, but I'm unsure if they will be rendered correctly with the current code (the two last days of the weeks contains the ø). --- apps/locale/locales.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/apps/locale/locales.js b/apps/locale/locales.js index 073f4903f..282c808f3 100644 --- a/apps/locale/locales.js +++ b/apps/locale/locales.js @@ -39,11 +39,13 @@ these conversions */ const charFallbacks = { "ą":"a", "ā":"a", + "å":"a", "č":"c", "ć":"c", "ě":"e", "ę":"e", "ē":"e", + "æ":"e", "ģ":"g", "i":"ī", "ķ":"k", @@ -53,6 +55,7 @@ const charFallbacks = { "ņ":"n", "ő":"o", "ó":"o", + "ø":"o", "ř":"r", "ś":"s", "š":"s", @@ -681,6 +684,24 @@ var locales = { day: "Pirmdiena,Otrdiena,Trešdiena,Ceturtdiena,Piektdiena,Sestdiena,Svētdiena", trans: { yes: "jā", Yes: "Jā", no: "nē", No: "Nē", ok: "labi", on: "Ieslēgt", off: "Izslēgt", "< Back": "< Atpakaļ" } }, + "no_NB": { // Using charfallbacks + lang: "no_NB", + decimal_point: ",", + thousands_sep: " ", + currency_symbol: "kr", + int_curr_symbol: "NOK", + speed: "kmh", + distance: { 0: "m", 1: "km" }, + temperature: "°C", + ampm: { 0: "", 1: "" }, + timePattern: { 0: "%HH:%MM:%SS", 1: "%HH:%MM" }, + datePattern: { 0: "%d. %b %Y", "1": "%d.%m.%Y" }, // 1. Mar 2020 // 01.03.20 + abmonth: "Jan,Feb,Mar,Apr,Mai,Jun,Jul,Aug,Sep,Okt,Nov,Des", + month: "Januar,Februar,Mars,April,Mai,Juni,Juli,August,September,Oktober,November,Desember", + abday: "Ma,Ti,On,To,Fr,Lø,Sø", + day: "Mandag,Tirsdag,Onsdag,Torsdag,Fredag,Lørdag,Søndag", + trans: { yes: "ja", Yes: "Ja", no: "nei", No: "Nei", ok: "ok", on: "på", off: "av", "< Back": "< Tilbake", "Delete": "Slett", "Mark Unread": "Merk som ulest" } + }, /*, "he_IL": { // This won't work until we get a font - see https://github.com/espruino/BangleApps/issues/399 codePage : "ISO8859-8",