From 2b82c8fdc9bc9737cfd89ac4746e4f4d7b9cf878 Mon Sep 17 00:00:00 2001 From: RemiHansen Date: Thu, 19 May 2016 23:26:56 +0200 Subject: [PATCH 01/17] Norwegian translation for MM2 --- translations/no.json | 27 +++++++++++++++++++++++++++ translations/translations.js | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 translations/no.json diff --git a/translations/no.json b/translations/no.json new file mode 100644 index 00000000..bc12f3c6 --- /dev/null +++ b/translations/no.json @@ -0,0 +1,27 @@ +{ + /* GENERAL */ + "LOADING": "Laster …", + + /* CALENDAR */ + "TODAY": "Idag", + "TOMORROW": "I morgen", + "RUNNING": "Slutter om", + "EMPTY": "Ingen kommende arrangementer.", + + /* WEATHER */ + "N": "N", + "NNE": "NNØ", + "ENE": "ØNØ", + "E": "Ø", + "ESE": "ØSØ", + "SE": "SØ", + "SSE": "SSØ", + "S": "S", + "SSW": "SSV", + "SW": "SV", + "WSW": "VSV", + "W": "V", + "WNW": "VNV", + "NW": "NV", + "NNW": "NNV" +} diff --git a/translations/translations.js b/translations/translations.js index 25ad77d5..e5ee28af 100644 --- a/translations/translations.js +++ b/translations/translations.js @@ -12,5 +12,5 @@ var translations = { "fr" : "translations/fr.json", "fy" : "translations/fy.json", "es" : "translations/es.json", - "it" : "translations/it.json", + "no" : "translations/no.json", }; From 02bbbe668b9bb44c45d0aa6fceaa118085785c9b Mon Sep 17 00:00:00 2001 From: RemiHansen Date: Thu, 19 May 2016 23:37:32 +0200 Subject: [PATCH 02/17] Changelog updated --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 311f2356..c2d7adcd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +## [2.0.1] - 2016-05-19 +### Added +- Norwegian Translation + ## [2.0.1] - 2016-05-18 ### Added - Changelog From 3df4062a5505f124eb05f574c871174f51962b03 Mon Sep 17 00:00:00 2001 From: RemiHansen Date: Fri, 20 May 2016 01:22:45 +0200 Subject: [PATCH 03/17] Norwegian translation (nb and nn) --- CHANGELOG.md | 4 ++-- translations/{no.json => nb.json} | 2 +- translations/nn.json | 27 +++++++++++++++++++++++++++ translations/translations.js | 3 ++- 4 files changed, 32 insertions(+), 4 deletions(-) rename translations/{no.json => nb.json} (95%) create mode 100644 translations/nn.json diff --git a/CHANGELOG.md b/CHANGELOG.md index c2d7adcd..3a302fda 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,9 +2,9 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). -## [2.0.1] - 2016-05-19 +## [2.0.2] - 2016-05-20 ### Added -- Norwegian Translation +- Norwegian Translations (nb and nn) ## [2.0.1] - 2016-05-18 ### Added diff --git a/translations/no.json b/translations/nb.json similarity index 95% rename from translations/no.json rename to translations/nb.json index bc12f3c6..f551ff97 100644 --- a/translations/no.json +++ b/translations/nb.json @@ -3,7 +3,7 @@ "LOADING": "Laster …", /* CALENDAR */ - "TODAY": "Idag", + "TODAY": "I dag", "TOMORROW": "I morgen", "RUNNING": "Slutter om", "EMPTY": "Ingen kommende arrangementer.", diff --git a/translations/nn.json b/translations/nn.json new file mode 100644 index 00000000..7b8fb2ab --- /dev/null +++ b/translations/nn.json @@ -0,0 +1,27 @@ +{ + /* GENERAL */ + "LOADING": "Lastar …", + + /* CALENDAR */ + "TODAY": "I dag", + "TOMORROW": "I morgon", + "RUNNING": "Sluttar om", + "EMPTY": "Ingen komande hendingar.", + + /* WEATHER */ + "N": "N", + "NNE": "NNA", + "ENE": "ANA", + "E": "A", + "ESE": "ASA", + "SE": "SA", + "SSE": "SSA", + "S": "S", + "SSW": "SSV", + "SW": "SV", + "WSW": "VSV", + "W": "V", + "WNW": "VNV", + "NW": "NV", + "NNW": "NNV" +} diff --git a/translations/translations.js b/translations/translations.js index e5ee28af..bc6e6aa2 100644 --- a/translations/translations.js +++ b/translations/translations.js @@ -12,5 +12,6 @@ var translations = { "fr" : "translations/fr.json", "fy" : "translations/fy.json", "es" : "translations/es.json", - "no" : "translations/no.json", + "nb" : "translations/nb.json", + "nn" : "translations/nn.json", }; From f035627f4233a7d0d6c87c4cde19c8ca1efeca63 Mon Sep 17 00:00:00 2001 From: Michael Teeuw Date: Fri, 20 May 2016 12:32:14 +0200 Subject: [PATCH 04/17] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a302fda..2c0a9fcc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). -## [2.0.2] - 2016-05-20 +## [Unreleased] ### Added - Norwegian Translations (nb and nn) From 7048c550b75a267820d41cce58f7dcda0c0f02b9 Mon Sep 17 00:00:00 2001 From: EdgardosReis Date: Sat, 21 May 2016 15:33:04 +0100 Subject: [PATCH 05/17] Create pt.json portuguese translation --- translations/pt.json | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 translations/pt.json diff --git a/translations/pt.json b/translations/pt.json new file mode 100644 index 00000000..51043607 --- /dev/null +++ b/translations/pt.json @@ -0,0 +1,27 @@ +{ + /* GENERAL */ + "LOADING": "A carregar …", + + /* CALENDAR */ + "TODAY": "Hoje", + "TOMORROW": "Amanhã", + "RUNNING": "Termina em", + "EMPTY": "Sem eventos a chegar.", + + /* WEATHER */ + "N": "N", + "NNE": "NNE", + "ENE": "ENE", + "E": "E", + "ESE": "ESE", + "SE": "SE", + "SSE": "SSE", + "S": "S", + "SSW": "SSO", + "SW": "SO", + "WSW": "OSO", + "W": "O", + "WNW": "ONO", + "NW": "NO", + "NNW": "NNO" +} From 9af7451a6107e2ec4fe467b7da3157298aca2410 Mon Sep 17 00:00:00 2001 From: EdgardosReis Date: Sat, 21 May 2016 15:33:47 +0100 Subject: [PATCH 06/17] Update translations.js portuguese translation --- translations/translations.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/translations/translations.js b/translations/translations.js index bc6e6aa2..5ce5f268 100644 --- a/translations/translations.js +++ b/translations/translations.js @@ -13,5 +13,6 @@ var translations = { "fy" : "translations/fy.json", "es" : "translations/es.json", "nb" : "translations/nb.json", - "nn" : "translations/nn.json", + "nn" : "translations/nn.json", + "pt" : "translations/pt.json", }; From ef5df5f01be479ca277f7a81c8c54b7622b6bff8 Mon Sep 17 00:00:00 2001 From: EdgardosReis Date: Sat, 21 May 2016 15:37:00 +0100 Subject: [PATCH 07/17] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c0a9fcc..241a9b03 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] ### Added - Norwegian Translations (nb and nn) +- Portuguese Translation ## [2.0.1] - 2016-05-18 ### Added From b45899bf904bcb6b1ac2aa2a2219084eee8853b2 Mon Sep 17 00:00:00 2001 From: mochman Date: Wed, 25 May 2016 15:23:29 -0500 Subject: [PATCH 08/17] Updated weather to get a locationID --- config/config.js.sample | 2 ++ modules/default/currentweather/currentweather.js | 7 ++++++- modules/default/weatherforecast/weatherforecast.js | 7 ++++++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/config/config.js.sample b/config/config.js.sample index 0b5f45d4..1afc0255 100644 --- a/config/config.js.sample +++ b/config/config.js.sample @@ -41,6 +41,7 @@ var config = { position: 'top_right', config: { location: 'New York', + locationID: '5128581', //ID from bulk.openweather.org/sample/ appid: 'YOUR_OPENWEATHER_API_KEY' } }, @@ -50,6 +51,7 @@ var config = { header: 'Weather Forecast', config: { location: 'New York', + locationID: '5128581', //ID from bulk.openweather.org/sample/ appid: 'YOUR_OPENWEATHER_API_KEY' } }, diff --git a/modules/default/currentweather/currentweather.js b/modules/default/currentweather/currentweather.js index 6c4983de..e00e738d 100644 --- a/modules/default/currentweather/currentweather.js +++ b/modules/default/currentweather/currentweather.js @@ -12,6 +12,7 @@ Module.register("currentweather",{ // Default module config. defaults: { location: "", + locationID: "", appid: "", units: config.units, updateInterval: 10 * 60 * 1000, // every 10 minutes @@ -198,7 +199,11 @@ Module.register("currentweather",{ */ getParams: function() { var params = "?"; - params += "q=" + this.config.location; + if(this.config.locationID !== "") { + params += "id=" + this.config.locationID; + } else { + params += "q=" + this.config.location; + } params += "&units=" + this.config.units; params += "&lang=" + this.config.lang; params += "&APPID=" + this.config.appid; diff --git a/modules/default/weatherforecast/weatherforecast.js b/modules/default/weatherforecast/weatherforecast.js index 98298489..dd8e0a46 100644 --- a/modules/default/weatherforecast/weatherforecast.js +++ b/modules/default/weatherforecast/weatherforecast.js @@ -12,6 +12,7 @@ Module.register("weatherforecast",{ // Default module config. defaults: { location: "", + locationID: "", appid: "", units: config.units, maxNumberOfDays: 7, @@ -195,7 +196,11 @@ Module.register("weatherforecast",{ */ getParams: function() { var params = "?"; - params += "q=" + this.config.location; + if(this.config.locationID !== "") { + params += "id=" + this.config.locationID; + } else { + params += "q=" + this.config.location; + } params += "&units=" + this.config.units; params += "&lang=" + this.config.lang; /* From 4a309c49e5c5ee210b3136d3187201533ce91ca1 Mon Sep 17 00:00:00 2001 From: mochman Date: Wed, 25 May 2016 15:47:22 -0500 Subject: [PATCH 09/17] Updated README.md --- config/config.js.sample | 2 +- modules/default/currentweather/README.md | 10 +++++++++- modules/default/weatherforecast/README.md | 8 ++++++++ 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/config/config.js.sample b/config/config.js.sample index 1afc0255..aedc2b75 100644 --- a/config/config.js.sample +++ b/config/config.js.sample @@ -41,7 +41,7 @@ var config = { position: 'top_right', config: { location: 'New York', - locationID: '5128581', //ID from bulk.openweather.org/sample/ + locationID: '', //ID from bulk.openweather.org/sample/ appid: 'YOUR_OPENWEATHER_API_KEY' } }, diff --git a/modules/default/currentweather/README.md b/modules/default/currentweather/README.md index 7e7d9fb4..2a6f7844 100644 --- a/modules/default/currentweather/README.md +++ b/modules/default/currentweather/README.md @@ -14,6 +14,7 @@ modules: [ config: { // See 'Configuration options' for more information. location: 'Amsterdam,Netherlands', + locationID: '', //Location ID from http://bulk.openweather.org/sample/ appid: 'abcde12345abcde12345abcde12345ab' //openweathermap.org API key. } } @@ -34,7 +35,7 @@ The following properties can be configured: - + location The location used for weather information.
@@ -42,6 +43,13 @@ The following properties can be configured:
Default value: New York + + locationID + Location ID from OpenWeather This will override anything you put in location.
Leave blank if you want to use location. +
Example: 1234567 +
Default value: + + appid The OpenWeatherMap API key, which can be obtained by creating an OpenWeatherMap account.
diff --git a/modules/default/weatherforecast/README.md b/modules/default/weatherforecast/README.md index 9e93bd14..aba03a41 100644 --- a/modules/default/weatherforecast/README.md +++ b/modules/default/weatherforecast/README.md @@ -14,6 +14,7 @@ modules: [ config: { // See 'Configuration options' for more information. location: 'Amsterdam,Netherlands', + locationID: '', //Location ID from http://bulk.openweather.org/sample/ appid: 'abcde12345abcde12345abcde12345ab' //openweathermap.org API key. } } @@ -42,6 +43,13 @@ The following properties can be configured:
Default value: New York + + locationID + Location ID from OpenWeather This will override anything you put in location.
Leave blank if you want to use location. +
Example: 1234567 +
Default value: + + appid The OpenWeatherMap API key, which can be obtained by creating an OpenWeatherMap account.
From 4b5625e0b4597d606aadc2c6f19f562c72cbf230 Mon Sep 17 00:00:00 2001 From: Michael Teeuw Date: Thu, 26 May 2016 12:03:29 +0200 Subject: [PATCH 10/17] Update CHANGELOG.md --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 241a9b03..aa8d3a6d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ This project adheres to [Semantic Versioning](http://semver.org/). - Norwegian Translations (nb and nn) - Portuguese Translation +### Chagned +- Add option to use locationID in weather modules. + ## [2.0.1] - 2016-05-18 ### Added - Changelog From 70c697f094e699ecfc0c7296f3238efa34405434 Mon Sep 17 00:00:00 2001 From: OskarKlintrot Date: Fri, 27 May 2016 19:04:53 +0200 Subject: [PATCH 11/17] Added Swedish translation --- CHANGELOG.md | 1 + translations/sv.json | 27 +++++++++++++++++++++++++++ translations/translations.js | 1 + 3 files changed, 29 insertions(+) create mode 100644 translations/sv.json diff --git a/CHANGELOG.md b/CHANGELOG.md index aa8d3a6d..04a386ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). ### Added - Norwegian Translations (nb and nn) - Portuguese Translation +- Swedish Translation ### Chagned - Add option to use locationID in weather modules. diff --git a/translations/sv.json b/translations/sv.json new file mode 100644 index 00000000..7d3a3092 --- /dev/null +++ b/translations/sv.json @@ -0,0 +1,27 @@ +{ + /* GENERAL */ + "LOADING": "Laddar …", + + /* CALENDAR */ + "TODAY": "Idag", + "TOMORROW": "Imorgon", + "RUNNING": "Slutar", + "EMPTY": "Inga kommande händelser.", + + /* WEATHER */ + "N": "N", + "NNE": "NNO", + "ENE": "ONO", + "E": "Ö", + "ESE": "OSO", + "SE": "SO", + "SSE": "SSO", + "S": "S", + "SSW": "SSV", + "SW": "SV", + "WSW": "VSV", + "W": "V", + "WNW": "VNV", + "NW": "NV", + "NNW": "NNV" +} diff --git a/translations/translations.js b/translations/translations.js index 5ce5f268..5e40b9c0 100644 --- a/translations/translations.js +++ b/translations/translations.js @@ -15,4 +15,5 @@ var translations = { "nb" : "translations/nb.json", "nn" : "translations/nn.json", "pt" : "translations/pt.json", + "sv" : "translations/sv.json", }; From 58f88075c8fff7621f93a0d560cddcd5c9d1928a Mon Sep 17 00:00:00 2001 From: Oskar Klintrot Date: Sun, 29 May 2016 13:15:04 +0200 Subject: [PATCH 12/17] Adding reference to the Italian language file --- translations/translations.js | 1 + 1 file changed, 1 insertion(+) diff --git a/translations/translations.js b/translations/translations.js index 5e40b9c0..bcfb6eec 100644 --- a/translations/translations.js +++ b/translations/translations.js @@ -16,4 +16,5 @@ var translations = { "nn" : "translations/nn.json", "pt" : "translations/pt.json", "sv" : "translations/sv.json", + "it" : "translations/it.json", }; From 611627ca97a9828fdf39e5889eb3ac54359330de Mon Sep 17 00:00:00 2001 From: Michael Teeuw Date: Sat, 4 Jun 2016 21:36:03 +0200 Subject: [PATCH 13/17] Fix NE translations for all languages. --- translations/de.json | 47 ++++++++++++++++++------------------ translations/en.json | 47 ++++++++++++++++++------------------ translations/es.json | 1 + translations/fr.json | 47 ++++++++++++++++++------------------ translations/fy.json | 1 + translations/it.json | 47 ++++++++++++++++++------------------ translations/nb.json | 47 ++++++++++++++++++------------------ translations/nl.json | 1 + translations/nn.json | 47 ++++++++++++++++++------------------ translations/pt.json | 47 ++++++++++++++++++------------------ translations/sv.json | 47 ++++++++++++++++++------------------ translations/translations.js | 22 ++++++++--------- 12 files changed, 206 insertions(+), 195 deletions(-) diff --git a/translations/de.json b/translations/de.json index 74cb3808..d4c20d10 100644 --- a/translations/de.json +++ b/translations/de.json @@ -1,27 +1,28 @@ { - /* GENERAL */ - "LOADING": "Lade …", + /* GENERAL */ + "LOADING": "Lade …", - /* CALENDAR */ - "TODAY": "Heute", - "TOMORROW": "Morgen", - "RUNNING": "noch", - "EMPTY": "Keine Termine.", + /* CALENDAR */ + "TODAY": "Heute", + "TOMORROW": "Morgen", + "RUNNING": "noch", + "EMPTY": "Keine Termine.", - /* WEATHER */ - "N": "N", - "NNE": "NNO", - "ENE": "ONO", - "E": "O", - "ESE": "OSO", - "SE": "SO", - "SSE": "SSO", - "S": "S", - "SSW": "SSW", - "SW": "SW", - "WSW": "WSW", - "W": "W", - "WNW": "WNW", - "NW": "NW", - "NNW": "NNW" + /* WEATHER */ + "N": "N", + "NNE": "NNO", + "NE": "NO", + "ENE": "ONO", + "E": "O", + "ESE": "OSO", + "SE": "SO", + "SSE": "SSO", + "S": "S", + "SSW": "SSW", + "SW": "SW", + "WSW": "WSW", + "W": "W", + "WNW": "WNW", + "NW": "NW", + "NNW": "NNW" } diff --git a/translations/en.json b/translations/en.json index b26d3ef9..a2d5933a 100644 --- a/translations/en.json +++ b/translations/en.json @@ -1,27 +1,28 @@ { - /* GENERAL */ - "LOADING": "Loading …", + /* GENERAL */ + "LOADING": "Loading …", - /* CALENDAR */ - "TODAY": "Today", - "TOMORROW": "Tomorrow", - "RUNNING": "Ends in", - "EMPTY": "No upcoming events.", + /* CALENDAR */ + "TODAY": "Today", + "TOMORROW": "Tomorrow", + "RUNNING": "Ends in", + "EMPTY": "No upcoming events.", - /* WEATHER */ - "N": "N", - "NNE": "NNE", - "ENE": "ENE", - "E": "E", - "ESE": "ESE", - "SE": "SE", - "SSE": "SSE", - "S": "S", - "SSW": "SSW", - "SW": "SW", - "WSW": "WSW", - "W": "W", - "WNW": "WNW", - "NW": "NW", - "NNW": "NNW" + /* WEATHER */ + "N": "N", + "NNE": "NNE", + "NE": "NE", + "ENE": "ENE", + "E": "E", + "ESE": "ESE", + "SE": "SE", + "SSE": "SSE", + "S": "S", + "SSW": "SSW", + "SW": "SW", + "WSW": "WSW", + "W": "W", + "WNW": "WNW", + "NW": "NW", + "NNW": "NNW" } diff --git a/translations/es.json b/translations/es.json index 598bc731..6de069c7 100644 --- a/translations/es.json +++ b/translations/es.json @@ -11,6 +11,7 @@ /* WEATHER */ "N": "N", "NNE": "NNE", + "NE": "NE", "ENE": "ENE", "E": "E", "ESE": "ESE", diff --git a/translations/fr.json b/translations/fr.json index 9e1758a4..7cea0700 100644 --- a/translations/fr.json +++ b/translations/fr.json @@ -1,27 +1,28 @@ { - /* GENERAL */ - "LOADING": "Chargement …", + /* GENERAL */ + "LOADING": "Chargement …", - /* CALENDAR */ - "TODAY": "Aujourd'hui", - "TOMORROW": "Demain", - "RUNNING": "Se termine dans", - "EMPTY": "Aucun RDV.", + /* CALENDAR */ + "TODAY": "Aujourd'hui", + "TOMORROW": "Demain", + "RUNNING": "Se termine dans", + "EMPTY": "Aucun RDV.", - /* WEATHER */ - "N": "N", - "NNE": "NNE", - "ENE": "ENE", - "E": "E", - "ESE": "ESE", - "SE": "SE", - "SSE": "SSE", - "S": "S", - "SSW": "SSO", - "SW": "SO", - "WSW": "OSO", - "W": "O", - "WNW": "ONO", - "NW": "NO", - "NNW": "NNO" + /* WEATHER */ + "N": "N", + "NNE": "NNE", + "NE": "NE", + "ENE": "ENE", + "E": "E", + "ESE": "ESE", + "SE": "SE", + "SSE": "SSE", + "S": "S", + "SSW": "SSO", + "SW": "SO", + "WSW": "OSO", + "W": "O", + "WNW": "ONO", + "NW": "NO", + "NNW": "NNO" } diff --git a/translations/fy.json b/translations/fy.json index 849cd9b1..af6bcde8 100644 --- a/translations/fy.json +++ b/translations/fy.json @@ -11,6 +11,7 @@ /* WEATHER */ "N": "N", "NNE": "NNE", + "NE": "NE", "ENE": "ENE", "E": "E", "ESE": "ESE", diff --git a/translations/it.json b/translations/it.json index 828d0f95..74048a8b 100644 --- a/translations/it.json +++ b/translations/it.json @@ -1,27 +1,28 @@ { - /* GENERAL */ - "LOADING": "Caricamento in corso …", + /* GENERAL */ + "LOADING": "Caricamento in corso …", - /* CALENDAR */ - "TODAY": "Oggi", - "TOMORROW": "Domani", - "RUNNING": "Termina entro", - "EMPTY": "Nessun evento in arrivo.", + /* CALENDAR */ + "TODAY": "Oggi", + "TOMORROW": "Domani", + "RUNNING": "Termina entro", + "EMPTY": "Nessun evento in arrivo.", - /* WEATHER */ - "N": "N", - "NNE": "NNE", - "ENE": "ENE", - "E": "E", - "ESE": "ESE", - "SE": "SE", - "SSE": "SSE", - "S": "S", - "SSW": "SSW", - "SW": "SW", - "WSW": "WSW", - "W": "W", - "WNW": "WNW", - "NW": "NW", - "NNW": "NNW" + /* WEATHER */ + "N": "N", + "NNE": "NNE", + "NE": "NE", + "ENE": "ENE", + "E": "E", + "ESE": "ESE", + "SE": "SE", + "SSE": "SSE", + "S": "S", + "SSW": "SSW", + "SW": "SW", + "WSW": "WSW", + "W": "W", + "WNW": "WNW", + "NW": "NW", + "NNW": "NNW" } diff --git a/translations/nb.json b/translations/nb.json index f551ff97..737d0e26 100644 --- a/translations/nb.json +++ b/translations/nb.json @@ -1,27 +1,28 @@ { - /* GENERAL */ - "LOADING": "Laster …", + /* GENERAL */ + "LOADING": "Laster …", - /* CALENDAR */ - "TODAY": "I dag", - "TOMORROW": "I morgen", - "RUNNING": "Slutter om", - "EMPTY": "Ingen kommende arrangementer.", + /* CALENDAR */ + "TODAY": "I dag", + "TOMORROW": "I morgen", + "RUNNING": "Slutter om", + "EMPTY": "Ingen kommende arrangementer.", - /* WEATHER */ - "N": "N", - "NNE": "NNØ", - "ENE": "ØNØ", - "E": "Ø", - "ESE": "ØSØ", - "SE": "SØ", - "SSE": "SSØ", - "S": "S", - "SSW": "SSV", - "SW": "SV", - "WSW": "VSV", - "W": "V", - "WNW": "VNV", - "NW": "NV", - "NNW": "NNV" + /* WEATHER */ + "N": "N", + "NNE": "NNØ", + "NE": "NØ", + "ENE": "ØNØ", + "E": "Ø", + "ESE": "ØSØ", + "SE": "SØ", + "SSE": "SSØ", + "S": "S", + "SSW": "SSV", + "SW": "SV", + "WSW": "VSV", + "W": "V", + "WNW": "VNV", + "NW": "NV", + "NNW": "NNV" } diff --git a/translations/nl.json b/translations/nl.json index 5c41de00..ab84807b 100644 --- a/translations/nl.json +++ b/translations/nl.json @@ -11,6 +11,7 @@ /* WEATHER */ "N": "N", "NNE": "NNO", + "NE": "NO", "ENE": "ONO", "E": "O", "ESE": "OZO", diff --git a/translations/nn.json b/translations/nn.json index 7b8fb2ab..2eb072ea 100644 --- a/translations/nn.json +++ b/translations/nn.json @@ -1,27 +1,28 @@ { - /* GENERAL */ - "LOADING": "Lastar …", + /* GENERAL */ + "LOADING": "Lastar …", - /* CALENDAR */ - "TODAY": "I dag", - "TOMORROW": "I morgon", - "RUNNING": "Sluttar om", - "EMPTY": "Ingen komande hendingar.", + /* CALENDAR */ + "TODAY": "I dag", + "TOMORROW": "I morgon", + "RUNNING": "Sluttar om", + "EMPTY": "Ingen komande hendingar.", - /* WEATHER */ - "N": "N", - "NNE": "NNA", - "ENE": "ANA", - "E": "A", - "ESE": "ASA", - "SE": "SA", - "SSE": "SSA", - "S": "S", - "SSW": "SSV", - "SW": "SV", - "WSW": "VSV", - "W": "V", - "WNW": "VNV", - "NW": "NV", - "NNW": "NNV" + /* WEATHER */ + "N": "N", + "NNE": "NNA", + "NE": "NA", + "ENE": "ANA", + "E": "A", + "ESE": "ASA", + "SE": "SA", + "SSE": "SSA", + "S": "S", + "SSW": "SSV", + "SW": "SV", + "WSW": "VSV", + "W": "V", + "WNW": "VNV", + "NW": "NV", + "NNW": "NNV" } diff --git a/translations/pt.json b/translations/pt.json index 51043607..e7269ac1 100644 --- a/translations/pt.json +++ b/translations/pt.json @@ -1,27 +1,28 @@ { - /* GENERAL */ - "LOADING": "A carregar …", + /* GENERAL */ + "LOADING": "A carregar …", - /* CALENDAR */ - "TODAY": "Hoje", - "TOMORROW": "Amanhã", - "RUNNING": "Termina em", - "EMPTY": "Sem eventos a chegar.", + /* CALENDAR */ + "TODAY": "Hoje", + "TOMORROW": "Amanhã", + "RUNNING": "Termina em", + "EMPTY": "Sem eventos a chegar.", - /* WEATHER */ - "N": "N", - "NNE": "NNE", - "ENE": "ENE", - "E": "E", - "ESE": "ESE", - "SE": "SE", - "SSE": "SSE", - "S": "S", - "SSW": "SSO", - "SW": "SO", - "WSW": "OSO", - "W": "O", - "WNW": "ONO", - "NW": "NO", - "NNW": "NNO" + /* WEATHER */ + "N": "N", + "NNE": "NNE", + "NE": "NE", + "ENE": "ENE", + "E": "E", + "ESE": "ESE", + "SE": "SE", + "SSE": "SSE", + "S": "S", + "SSW": "SSO", + "SW": "SO", + "WSW": "OSO", + "W": "O", + "WNW": "ONO", + "NW": "NO", + "NNW": "NNO" } diff --git a/translations/sv.json b/translations/sv.json index 7d3a3092..6badd3bc 100644 --- a/translations/sv.json +++ b/translations/sv.json @@ -1,27 +1,28 @@ { - /* GENERAL */ - "LOADING": "Laddar …", + /* GENERAL */ + "LOADING": "Laddar …", - /* CALENDAR */ - "TODAY": "Idag", - "TOMORROW": "Imorgon", - "RUNNING": "Slutar", - "EMPTY": "Inga kommande händelser.", + /* CALENDAR */ + "TODAY": "Idag", + "TOMORROW": "Imorgon", + "RUNNING": "Slutar", + "EMPTY": "Inga kommande händelser.", - /* WEATHER */ - "N": "N", - "NNE": "NNO", - "ENE": "ONO", - "E": "Ö", - "ESE": "OSO", - "SE": "SO", - "SSE": "SSO", - "S": "S", - "SSW": "SSV", - "SW": "SV", - "WSW": "VSV", - "W": "V", - "WNW": "VNV", - "NW": "NV", - "NNW": "NNV" + /* WEATHER */ + "N": "N", + "NNE": "NNO", + "NE": "NO", + "ENE": "ONO", + "E": "Ö", + "ESE": "OSO", + "SE": "SO", + "SSE": "SSO", + "S": "S", + "SSW": "SSV", + "SW": "SV", + "WSW": "VSV", + "W": "V", + "WNW": "VNV", + "NW": "NV", + "NNW": "NNV" } diff --git a/translations/translations.js b/translations/translations.js index bcfb6eec..ac80702e 100644 --- a/translations/translations.js +++ b/translations/translations.js @@ -6,15 +6,15 @@ */ var translations = { - "en" : "translations/en.json", - "nl" : "translations/nl.json", - "de" : "translations/de.json", - "fr" : "translations/fr.json", - "fy" : "translations/fy.json", - "es" : "translations/es.json", - "nb" : "translations/nb.json", - "nn" : "translations/nn.json", - "pt" : "translations/pt.json", - "sv" : "translations/sv.json", - "it" : "translations/it.json", + "en" : "translations/en.json", // English + "nl" : "translations/nl.json", // Dutch + "de" : "translations/de.json", // German + "fr" : "translations/fr.json", // French + "fy" : "translations/fy.json", // Frysk + "es" : "translations/es.json", // Spanish + "nb" : "translations/nb.json", // Norsk bokmål + "nn" : "translations/nn.json", // Norsk nynorsk + "pt" : "translations/pt.json", // Português + "sv" : "translations/sv.json", // Svenska + "it" : "translations/it.json", // Italian }; From 8d1ef5291fc66a5d2f6ae85dc95e7b24b47d1c32 Mon Sep 17 00:00:00 2001 From: Michael Teeuw Date: Sat, 4 Jun 2016 21:42:05 +0200 Subject: [PATCH 14/17] Add Fix info and. --- CHANGELOG.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 04a386ef..5d196dac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,11 @@ This project adheres to [Semantic Versioning](http://semver.org/). - Portuguese Translation - Swedish Translation -### Chagned +### Fixed +- Added reference to Italian Translation. +- Added the missing NE translation to all languages. [#334](https://github.com/MichMich/MagicMirror/issues/344) + +### Changed - Add option to use locationID in weather modules. ## [2.0.1] - 2016-05-18 From 486956b762c5a030d8d60fe21ee5e9842e365336 Mon Sep 17 00:00:00 2001 From: "Ashley M. Kirchner" Date: Sat, 4 Jun 2016 20:32:55 -0600 Subject: [PATCH 15/17] Added proper User-Agent string to Facebook calendar call, and various fixed spelling of 'exist'. --- js/module.js | 2 +- modules/README.md | 2 +- modules/default/calendar/calendar.js | 2 +- modules/default/calendar/calendarfetcher.js | 9 +++++++-- modules/default/calendar/node_helper.js | 6 +++--- modules/default/newsfeed/fetcher.js | 2 +- modules/default/newsfeed/node_helper.js | 6 +++--- 7 files changed, 17 insertions(+), 12 deletions(-) diff --git a/js/module.js b/js/module.js index 44c50099..9ee13e4c 100644 --- a/js/module.js +++ b/js/module.js @@ -152,7 +152,7 @@ var Module = Class.extend({ }, /* socket() - * Returns a socket object. If it doesn"t exsist, it"s created. + * Returns a socket object. If it doesn"t exist, it"s created. * It also registers the notification callback. */ socket: function() { diff --git a/modules/README.md b/modules/README.md index 54207399..39072db5 100644 --- a/modules/README.md +++ b/modules/README.md @@ -298,7 +298,7 @@ If no translation is found, a fallback will be used. The fallback sequence is as - 4. Translation as defined in core translation file of the fallback language (the first defined core translation file). - 5. The key (identifier) of the translation. -When adding translations to your module, it's a good idea to see if an apropriate translation is already available in the [core translation files](https://github.com/MichMich/MagicMirror/tree/master/translations). This way, your module can benefit from the exsisting translations. +When adding translations to your module, it's a good idea to see if an apropriate translation is already available in the [core translation files](https://github.com/MichMich/MagicMirror/tree/master/translations). This way, your module can benefit from the existing translations. **Example:** ````javascript diff --git a/modules/default/calendar/calendar.js b/modules/default/calendar/calendar.js index a6a7d082..213f1024 100644 --- a/modules/default/calendar/calendar.js +++ b/modules/default/calendar/calendar.js @@ -49,7 +49,7 @@ Module.register("calendar",{ getTranslations: function() { // The translations for the defaut modules are defined in the core translation files. // Therefor we can just return false. Otherwise we should have returned a dictionairy. - // If you're trying to build yiur own module including translations, check out the documentation. + // If you're trying to build your own module including translations, check out the documentation. return false; }, diff --git a/modules/default/calendar/calendarfetcher.js b/modules/default/calendar/calendarfetcher.js index 15c2e60a..f7f68b7e 100644 --- a/modules/default/calendar/calendarfetcher.js +++ b/modules/default/calendar/calendarfetcher.js @@ -25,7 +25,12 @@ var CalendarFetcher = function(url, reloadInterval, maximumEntries, maximumNumbe clearTimeout(reloadTimer); reloadTimer = null; - ical.fromURL(url, {}, function(err, data) { + var opts = { + headers: { + 'User-Agent': 'Mozilla/5.0 (Node.js 6.0.0) MagicMirror/v2 (https://github.com/MichMich/MagicMirror/)' + } + } + ical.fromURL(url, opts, function(err, data) { if (err) { fetchFailedCallback(self, err); scheduleTimer(); @@ -188,7 +193,7 @@ var CalendarFetcher = function(url, reloadInterval, maximumEntries, maximumNumbe }; /* broadcastItems() - * Broadcast the exsisting events. + * Broadcast the existing events. */ this.broadcastEvents = function() { //console.log('Broadcasting ' + events.length + ' events.'); diff --git a/modules/default/calendar/node_helper.js b/modules/default/calendar/node_helper.js index 1d558d29..47a0231b 100644 --- a/modules/default/calendar/node_helper.js +++ b/modules/default/calendar/node_helper.js @@ -30,8 +30,8 @@ module.exports = NodeHelper.create({ }, /* createFetcher(url, reloadInterval) - * Creates a fetcher for a new url if it doesn't exsist yet. - * Otherwise it reuses the exsisting one. + * Creates a fetcher for a new url if it doesn't exist yet. + * Otherwise it reuses the existing one. * * attribute url string - URL of the news feed. * attribute reloadInterval number - Reload interval in milliseconds. @@ -69,7 +69,7 @@ module.exports = NodeHelper.create({ self.fetchers[url] = fetcher; } else { - //console.log('Use exsisting news fetcher for url: ' + url); + //console.log('Use existing news fetcher for url: ' + url); fetcher = self.fetchers[url]; fetcher.broadcastEvents(); } diff --git a/modules/default/newsfeed/fetcher.js b/modules/default/newsfeed/fetcher.js index 3840bea6..ff0a9980 100644 --- a/modules/default/newsfeed/fetcher.js +++ b/modules/default/newsfeed/fetcher.js @@ -117,7 +117,7 @@ var Fetcher = function(url, reloadInterval, encoding) { }; /* broadcastItems() - * Broadcast the exsisting items. + * Broadcast the existing items. */ this.broadcastItems = function() { if (items.length <= 0) { diff --git a/modules/default/newsfeed/node_helper.js b/modules/default/newsfeed/node_helper.js index 82f1c19e..6ebf78df 100644 --- a/modules/default/newsfeed/node_helper.js +++ b/modules/default/newsfeed/node_helper.js @@ -25,8 +25,8 @@ module.exports = NodeHelper.create({ }, /* createFetcher(url, reloadInterval) - * Creates a fetcher for a new url if it doesn't exsist yet. - * Otherwise it reoses the exsisting one. + * Creates a fetcher for a new url if it doesn't exist yet. + * Otherwise it reoses the existing one. * * attribute url string - URL of the news feed. * attribute reloadInterval number - Reload interval in milliseconds. @@ -62,7 +62,7 @@ module.exports = NodeHelper.create({ self.fetchers[url] = fetcher; } else { - console.log("Use exsisting news fetcher for url: " + url); + console.log("Use existing news fetcher for url: " + url); fetcher = self.fetchers[url]; fetcher.setReloadInterval(reloadInterval); fetcher.broadcastItems(); From 0bcbf999fb829b688a4ff78fcfd765de2ed21509 Mon Sep 17 00:00:00 2001 From: Michael Teeuw Date: Sun, 5 Jun 2016 09:25:36 +0200 Subject: [PATCH 16/17] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d196dac..efa7c0cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). ### Fixed - Added reference to Italian Translation. - Added the missing NE translation to all languages. [#334](https://github.com/MichMich/MagicMirror/issues/344) +- Added proper User-Agent string to calendar call. ### Changed - Add option to use locationID in weather modules. From bc17ef896ea91fd446d66b27e2be39924eeb2313 Mon Sep 17 00:00:00 2001 From: Michael Teeuw Date: Sun, 5 Jun 2016 12:03:00 +0200 Subject: [PATCH 17/17] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index efa7c0cd..1fdf2c65 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). -## [Unreleased] +## [2.0.2] - 2016-06-05 ### Added - Norwegian Translations (nb and nn) - Portuguese Translation