From bcdfaa42a865b0b3a465ec0cf39804fb4bf5af58 Mon Sep 17 00:00:00 2001 From: NANI Date: Mon, 23 Mar 2020 15:57:09 +0100 Subject: [PATCH] Slovenian lang updates (#300) * Update sl lang according to new spec * better wording * Test cases update to reflect new updates * typo --- lib/lang/sl.js | 8 +++++++- test_cases/sl.json | 12 ++++++++++-- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/lib/lang/sl.js b/lib/lang/sl.js index 4a35a4ed..b60ca48e 100644 --- a/lib/lang/sl.js +++ b/lib/lang/sl.js @@ -117,7 +117,7 @@ module.exports = { "over-weekend": "$1 v soboto in nedeljo", "temperatures-peaking": "temperaturami do $1 $2", "temperatures-rising": "temperaturami do $1 $2", - "temperatures-valleying": "najnižjimi temperaturamiokoli $1 $2", + "temperatures-valleying": "najnižjimi temperaturami okoli $1 $2", "temperatures-falling": "temperaturami do $1 $2", /* Capitalize the first letter of every word. */ "title": function(str) { @@ -134,4 +134,10 @@ module.exports = { return str; }, + "next-hour-forecast-status": "urne napovedi $1, ker $2", + "unavailable": "niso na voljo", + "temporarily-unavailable": "začasno niso na voljo", + "partially-unavailable": "delno niso na voljo", + "station-offline": "so vse bližnje radarske postaje brez povezave", + "station-incomplete": "imajo bližnje radarske postaje pomanjkljivo pokritost", }; diff --git a/test_cases/sl.json b/test_cases/sl.json index 3838b2d6..e98b98ad 100644 --- a/test_cases/sl.json +++ b/test_cases/sl.json @@ -210,7 +210,7 @@ ["celsius", 32], "thursday"]]], - "Rosenje v ponedeljek, s najnižjimi temperaturamiokoli 15\u00B0F v petek.": + "Rosenje v ponedeljek, s najnižjimi temperaturami okoli 15\u00B0F v petek.": ["sentence", ["with", ["during", "very-light-rain", "monday"], ["temperatures-valleying", @@ -242,7 +242,15 @@ ["title", ["parenthetical", "heavy-snow", ["inches", ["range", 1, 3]]]], "Močno sneženje (3\u20135 cm.)": - ["title", ["parenthetical", "heavy-snow", ["centimeters", ["range", 3, 5]]]] + ["title", ["parenthetical", "heavy-snow", ["centimeters", ["range", 3, 5]]]], + "Urne napovedi začasno niso na voljo, ker so vse bližnje radarske postaje brez povezave.": + ["sentence", ["next-hour-forecast-status", "temporarily-unavailable", "station-offline"]], + + "Urne napovedi delno niso na voljo, ker imajo bližnje radarske postaje pomanjkljivo pokritost.": + ["sentence", ["next-hour-forecast-status", "partially-unavailable", "station-incomplete"]], + + "Urne napovedi niso na voljo, ker so vse bližnje radarske postaje brez povezave.": + ["sentence", ["next-hour-forecast-status", "unavailable", "station-offline"]] }