Repository: darkskyapp/forecast-io-translations
Pull request #85 (2017-01-03 16:34:24)

NL fixes
* 'starting' should be translated as 'vanaf', 'trough' should be 'tot en met' and reworded 'no-precipitation'.
* Added missing words, and improved differences between light and very-light.


Patch:
diff --git a/lib/lang/nl.js b/lib/lang/nl.js
index c400fcd..32bdae0 100644
--- a/lib/lang/nl.js
+++ b/lib/lang/nl.js
@@ -22,22 +22,29 @@ function weekdays(scope, day){
 
 module.exports = require("../template")({
   "clear": "helder",
-  "no-precipitation": "geen neerslag van betekenis",
+  "no-precipitation": "geen neerslag",
   "mixed-precipitation": "wisselende neerslag",
+  "possible-very-light-precipitation": "mogelijk lichte neerslag",
   "very-light-precipitation": "lichte neerslag",
+  "possible-light-precipitation": "mogelijk lichte neerslag",
   "light-precipitation": "lichte neerslag",
   "medium-precipitation": "neerslag",
   "heavy-precipitation": "zware neerslag",
+  "possible-very-light-rain": "mogelijk lichte motregen",
   "very-light-rain": "motregen",
   "light-rain": "lichte regen",
   "medium-rain": "regen",
   "heavy-rain": "zware regenbuien",
-  "very-light-sleet": "lichte ijzel",
+  "possible-very-light-sleet": "mogelijk lichte ijzelvorming",
+  "very-light-sleet": "lichte ijzelvorming",
+  "possible-light-sleet": "mogelijk lichte ijzel",
   "light-sleet": "lichte ijzel",
   "medium-sleet": "ijzel",
   "heavy-sleet": "zware ijzel",
-  "very-light-snow": "lichte sneeuwbuien",
-  "light-snow": "lichte sneeuwbuien",
+  "possible-very-light-snow": "mogelijk lichte sneeuwval",
+  "very-light-snow": "lichte sneeuwval",
+  "possible-light-snow": "mogelijk sneeuwval",
+  "light-snow": "sneeuwval",
   "medium-snow": "sneeuw",
   "heavy-snow": "zware sneeuwbuien",
   "light-wind": "weinig wind",
@@ -82,7 +89,7 @@ module.exports = require("../template")({
   "thursday": function(){ return weekdays(this, "donderdag"); },
   "friday": function(){ return weekdays(this, "vrijdag"); },
   "saturday": function(){ return weekdays(this, "zaterdag"); },
-  "minutes": "$1 min.",
+  "minutes": "$1 minuten",
   "fahrenheit": "$1\u00B0F",
   "celsius": "$1\u00B0C",
   "inches": "$1 inch",
@@ -96,7 +103,7 @@ module.exports = require("../template")({
     );
   },
   "through": function(a, b) {
-    return join_with_shared_prefix(a, b, " t/m ");
+    return join_with_shared_prefix(a, b, " tot en met ");
   },
   "with": "$1 met $2",
   "range": "$1 tot $2",
@@ -109,7 +116,7 @@ module.exports = require("../template")({
   "for-day": "$1 gedurende de dag",
   "starting":  function(condition, time) {
     if(this[1] === "starting")
-      return "in " + time + " " + condition;
+      return "vanaf " + time + " " + condition;
 
     else if(this[1] === "and")
       return time + " " + condition;


Test patch:
diff --git a/test_cases/nl.json b/test_cases/nl.json
index cf31639..af9a710 100644
--- a/test_cases/nl.json
+++ b/test_cases/nl.json
@@ -38,10 +38,10 @@
   "Zware ijzel":
     ["title", "heavy-sleet"],
 
-  "Lichte sneeuwbuien":
+  "Lichte sneeuwval":
     ["title", "very-light-snow"],
 
-  "Lichte sneeuwbuien":
+  "Sneeuwval":
     ["title", "light-snow"],
 
   "Sneeuw":
@@ -65,6 +65,9 @@
   "Zwaar bewolkt":
     ["title", "heavy-clouds"],
 
+  "Mogelijk lichte ijzel":
+    ["title", "possible-light-sleet"],
+
   "Lage luchtvochtigheid en weinig wind":
     ["title", ["and", "low-humidity", "light-wind"]],
 
@@ -75,20 +78,20 @@
   "Het komende uur helder.":
     ["sentence", ["for-hour", "clear"]],
 
-  "Over 35 min. lichte sneeuwbuien.":
+  "Over 35 minuten lichte sneeuwval.":
     ["sentence", ["starting-in", "very-light-snow", ["minutes", 35]]],
 
-  "Lichte regen, stopt over 15 min.":
+  "Lichte regen, stopt over 15 minuten.":
     ["sentence", ["stopping-in", "light-rain", ["minutes", 15]]],
 
-  "Zware ijzel begint over 20 min. en stopt weer 30 min. later.":
+  "Zware ijzel begint over 20 minuten en stopt weer 30 minuten later.":
     ["sentence",
       ["starting-then-stopping-later",
         "heavy-sleet",
         ["minutes", 20],
         ["minutes", 30]]],
 
-  "Regen stopt over 25 min. maar begint 8 min. later opnieuw.":
+  "Regen stopt over 25 minuten maar begint 8 minuten later opnieuw.":
     ["sentence",
       ["stopping-then-starting-later",
         "medium-rain",
@@ -98,7 +101,7 @@
   "Overwegend bewolkt gedurende de dag.":
     ["sentence", ["for-day", "medium-clouds"]],
 
-  "In de ochtend lichte ijzel.":
+  "Vanaf de ochtend lichte ijzelvorming.":
     ["sentence", ["starting", "very-light-sleet", "morning"]],
 
   "Veel wind tot vannacht.":
@@ -160,8 +163,8 @@
       ["parenthetical", "medium-snow", ["inches", 5]],
       "night"]],
 
-  "Lichte sneeuwbuien (2 cm) gedurende later vanochtend.":
-    ["sentence", ["during",
+  "Vanaf later vanochtend sneeuwval (2 cm).":
+    ["sentence", ["starting",
       ["parenthetical", "light-snow", ["centimeters", 2]],
       "later-today-morning"]],
   
@@ -174,7 +177,7 @@
       ["parenthetical", "medium-snow", ["centimeters", ["less-than", 1]]],
       "afternoon"]],
 
-  "De hele week geen neerslag van betekenis met een maximum temperatuur van 85\u00B0F morgen.":
+  "De hele week geen neerslag met een maximum temperatuur van 85\u00B0F morgen.":
     ["sentence", ["with",
       ["for-week", "no-precipitation"],
       ["temperatures-peaking",
@@ -195,19 +198,23 @@
         ["fahrenheit", 15],
         "friday"]]],
 
-  "Lichte sneeuwbuien op maandag en dinsdag met temperaturen dalend tot 0\u00B0C op zondag.":
+  "Sneeuwval op maandag en dinsdag met temperaturen dalend tot 0\u00B0C op zondag.":
     ["sentence", ["with",
       ["during", "light-snow", ["and", "monday", "tuesday"]],
       ["temperatures-falling",
         ["celsius", 0],
         "sunday"]]],
 
-  "Neerslag donderdag t/m zaterdag met een maximum temperatuur van 100\u00B0F op maandag.":
+  "Neerslag donderdag tot en met zaterdag met een maximum temperatuur van 100\u00B0F op maandag.":
     ["sentence", ["with",
       ["during",
         "medium-precipitation",
         ["through", "thursday", "saturday"]],
       ["temperatures-peaking",
         ["fahrenheit", 100],
-        "monday"]]]
+        "monday"]]],
+
+  "Vanaf vannacht lichte regen.":
+    ["sentence", ["starting", "light-rain", "today-night"]]
+
 }