Repository: darkskyapp/forecast-io-translations
Pull request #162 (2017-12-11 19:59:00)

Fixed // FIX ME and some fixes of 'night'

ironwallaby: Thanks for the patch! Could you also fix the tests that this change broke, as a sanity check?

The failing tests can be seen at the Travis CI link above, or here: https://travis-ci.org/darkskyapp/forecast-io-translations/builds/314975537
AndyTempel: Tests should be fine now :)
ironwallaby: Looks good, thanks! I'll get this merged in and it'll go live on the API during our next deploy.

Patch:
diff --git a/lib/lang/sl.js b/lib/lang/sl.js
index 077f000..3ee2d68 100644
--- a/lib/lang/sl.js
+++ b/lib/lang/sl.js
@@ -61,10 +61,10 @@ module.exports = require("../template")({
   "later-today-morning": "kasneje to jutro",
   "today-afternoon": "danes popoldan",
   "later-today-afternoon": "kasneje popoldan",
-  "today-evening": "zvečer",
+  "today-evening": "danes zvečer",
   "later-today-evening": "drevi",
-  "today-night": "danes zvečer",
-  "later-today-night": "danes zvečer",
+  "today-night": "danes ponoči",
+  "later-today-night": "danes čez noč",
   "tomorrow-morning": "jutri zjutraj",
   "tomorrow-afternoon": "jutri popoldne",
   "tomorrow-evening": "jutri zvečer",
@@ -82,13 +82,13 @@ module.exports = require("../template")({
   "thursday": "v četrtek",
   "friday": "v petek",
   "saturday": "v soboto",
-  "next-sunday": "v nedeljo", // FIXME
-  "next-monday": "v ponedeljek", // FIXME
-  "next-tuesday": "v torek", // FIXME
-  "next-wednesday": "v sredo", // FIXME
-  "next-thursday": "v četrtek", // FIXME
-  "next-friday": "v petek", // FIXME
-  "next-saturday": "v soboto", // FIXME
+  "next-sunday": "naslednjo nedeljo",
+  "next-monday": "naslednji ponedeljek",
+  "next-tuesday": "naslednji torek", 
+  "next-wednesday": "naslednjo sredo", 
+  "next-thursday": "naslednji četrtek", 
+  "next-friday": "naslednji petek", 
+  "next-saturday": "naslednjo soboto",
   "minutes": "$1 min.",
   "fahrenheit": "$1\u00B0F",
   "celsius": "$1\u00B0C",
@@ -147,4 +147,4 @@ module.exports = require("../template")({
 
     return str;
   }
-});
+});
\ No newline at end of file


Test patch:
diff --git a/test_cases/sl.json b/test_cases/sl.json
index 46768cf..3838b2d 100644
--- a/test_cases/sl.json
+++ b/test_cases/sl.json
@@ -138,7 +138,7 @@
       "medium-snow",
       ["and", "later-today-evening", "tomorrow-morning"]]],
 
-  "Močan dež do kasneje to jutro, začelo bo zopet zvečer.":
+  "Močan dež do kasneje to jutro, začelo bo zopet danes zvečer.":
     ["sentence", ["until-starting-again",
       "heavy-rain",
       "later-today-morning",
@@ -163,12 +163,12 @@
         "today-afternoon"],
       ["during", "medium-sleet", "tomorrow-morning"]]],
 
-  "Oblačno od danes zvečer in močno sneženje jutri popoldne.":
+  "Oblačno od danes čez noč in močno sneženje jutri popoldne.":
     ["sentence", ["and",
       ["starting", "heavy-clouds", "later-today-night"],
       ["during", "heavy-snow", "tomorrow-afternoon"]]],
 
-  "Suho danes zvečer in rahle padavine začel jutri zvečer, do jutri zvečer.":
+  "Suho danes ponoči in rahle padavine začel jutri zvečer, do jutri zvečer.":
     ["sentence", ["and",
       ["during", "low-humidity", "today-night"],
       ["starting-continuing-until",