From 78836e34921b273fdf66f1967fef7c0326e65bb7 Mon Sep 17 00:00:00 2001 From: Adrian Cochrane Date: Wed, 30 Dec 2020 07:07:29 +1300 Subject: [PATCH] =?UTF-8?q?Localize=20into=20Norwegian=20Bokm=C3=A5l,=20th?= =?UTF-8?q?anks=20@harald@hub.volse.no?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previous localizations: Italian: @Madmonkey@mastodon.uno Swedish: @e8johan@mastodon.technology --- src/Links.hs | 8 ++++++-- useragent.css | 3 ++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/Links.hs b/src/Links.hs index c6e7a32..069a00a 100644 --- a/src/Links.hs +++ b/src/Links.hs @@ -81,17 +81,21 @@ linksFromPage Page { link' "reload" title' url' : link' "aggiorna" title' url' : -- Italian link' "ladda om" title' url' : -- Swedish (Svenska) + link' "last på nytt" title' url' : -- Norwegian Bokmål link' "reload without cache" "Fetch again from server without checking for a local copy" uncached : link' "aggiorna senza cache" "" uncached : -- Italian link' "ladda om utan cache" "hämta från servern igen utan att kolla efter en lokal kopia" uncached : -- Swedish (Svenska) + link' "last på nytt uten mellomlager" "Last siden på nytt uten å bruke lokal kopi" uncached : -- Norwegian Bokmål [link' l t u | (t, u) <- head' back', l <- backLabels] ++ [link' l t u | (t, u) <- head' forward', l <- forwardLabels] ++ [link' n desc $ URI "app:" Nothing id "" "" | Application n _ desc id <- apps'] ++ extractLinks html' where uncached = url' { uriScheme = "nocache+" ++ uriScheme url' } - backLabels = ["back", {- Italian -} "indietro", {- Swedish -} "tillbaka"] - forwardLabels = ["forward", {- Italian -} "avanti", {- Swedish -} "framåt"] + backLabels = ["back", {- Italian -} "indietro", {- Swedish -} "tillbaka", + {- Norwegian Bokmål -}"tilbake"] + forwardLabels = ["forward", {- Italian -} "avanti", {- Swedish -} "framåt", + {- Norwegian Bokmål -} "forover", "videre"] head' (a:_) = [a] head' [] = [] diff --git a/useragent.css b/useragent.css index 6dc0ac1..8c9c599 100644 --- a/useragent.css +++ b/useragent.css @@ -21,7 +21,7 @@ table:lang(hu)::before {content: "táblázat"} table:lang(nl)::before {content: "tabel"} table:lang(es)::before {content: "tabla"} table:lang(it)::before {content: "tabella"} -table:lang(sv)::before {content: "tabell"} +table:lang(sv)::before, table:lang(nb-NO)::before {content: "tabell"} table {counter-increment: -rhaps-table; counter-reset: -rhaps-tablerow} tr { cue-before: url(about:bulletpoint.wav); @@ -61,6 +61,7 @@ img:lang(nl):not([alt]) {content: "afbeelding " attr(src)} img:lang(es):not([alt]) {content: "imagen " attr(src)} img:lang(it):not([alt]) {content: "immagine " attr(src)} img:lang(sv):not([alt]) {content: "bild " attr(src)} +img:lang(nb-NO):not([alt]) {content: "bilde " attr(src)} img[alt] {content: attr(alt)} b, strong {voice-rate: slow} -- 2.30.2