Merge pull request #1046 from wbleek/master

moved weekNumber into field and adjusted language handling accordingly [issue #910]
This commit is contained in:
Michael Teeuw 2017-10-03 22:13:21 +02:00 committed by GitHub
commit 980b017fbe
13 changed files with 13 additions and 12 deletions

View File

@ -7,6 +7,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
**Note:** This update uses new dependencies. Please update using the following command: `git pull && npm install` **Note:** This update uses new dependencies. Please update using the following command: `git pull && npm install`
### Changed ### Changed
- calender week is now handled with a variable translation in order to move number language specific
### Added ### Added
- Add option to use [Nunjucks](https://mozilla.github.io/nunjucks/) templates in modules. (See `helloworld` module as an example.) - Add option to use [Nunjucks](https://mozilla.github.io/nunjucks/) templates in modules. (See `helloworld` module as an example.)

View File

@ -94,7 +94,7 @@ Module.register("clock",{
dateWrapper.innerHTML = now.format(this.config.dateFormat); dateWrapper.innerHTML = now.format(this.config.dateFormat);
} }
if (this.config.showWeek) { if (this.config.showWeek) {
weekWrapper.innerHTML = this.translate("WEEK") + " " + now.week(); weekWrapper.innerHTML = this.translate("WEEK", { weekNumber: now.week() });
} }
timeWrapper.innerHTML = timeString; timeWrapper.innerHTML = timeString;
secondsWrapper.innerHTML = now.format("ss"); secondsWrapper.innerHTML = now.format("ss");

View File

@ -7,7 +7,7 @@
"RUNNING": "Gorffen mewn", "RUNNING": "Gorffen mewn",
"EMPTY": "Dim digwyddiadau.", "EMPTY": "Dim digwyddiadau.",
"WEEK": "Wythnos", "WEEK": "Wythnos {weekNumber}",
"N": "Go", "N": "Go",
"NNE": "GoGoDw", "NNE": "GoGoDw",

View File

@ -7,7 +7,7 @@
"RUNNING": "noch", "RUNNING": "noch",
"EMPTY": "Keine Termine.", "EMPTY": "Keine Termine.",
"WEEK": "Woche", "WEEK": "{weekNumber}. Kalenderwoche",
"N": "N", "N": "N",
"NNE": "NNO", "NNE": "NNO",

View File

@ -7,7 +7,7 @@
"RUNNING": "Ends in", "RUNNING": "Ends in",
"EMPTY": "No upcoming events.", "EMPTY": "No upcoming events.",
"WEEK": "Week", "WEEK": "Week {weekNumber}",
"N": "N", "N": "N",
"NNE": "NNE", "NNE": "NNE",

View File

@ -7,7 +7,7 @@
"RUNNING": "Termina en", "RUNNING": "Termina en",
"EMPTY": "No hay eventos programados.", "EMPTY": "No hay eventos programados.",
"WEEK": "Semana", "WEEK": "Semana {weekNumber}",
"N": "N", "N": "N",
"NNE": "NNE", "NNE": "NNE",

View File

@ -7,7 +7,7 @@
"RUNNING": "Se termine dans", "RUNNING": "Se termine dans",
"EMPTY": "Aucun RDV à venir.", "EMPTY": "Aucun RDV à venir.",
"WEEK": "Semaine", "WEEK": "Semaine {weekNumber}",
"N": "N", "N": "N",
"NNE": "NNE", "NNE": "NNE",

View File

@ -7,7 +7,7 @@
"RUNNING": "Slutter om", "RUNNING": "Slutter om",
"EMPTY": "Ingen kommende arrangementer.", "EMPTY": "Ingen kommende arrangementer.",
"WEEK": "Uke", "WEEK": "Uke {weekNumber}",
"N": "N", "N": "N",
"NNE": "NNØ", "NNE": "NNØ",

View File

@ -7,7 +7,7 @@
"RUNNING": "Koniec za", "RUNNING": "Koniec za",
"EMPTY": "Brak wydarzeń.", "EMPTY": "Brak wydarzeń.",
"WEEK": "Tydzień", "WEEK": "Tydzień {weekNumber}",
"N": "N", "N": "N",
"NNE": "NNE", "NNE": "NNE",

View File

@ -6,7 +6,7 @@
"RUNNING": "Termina em", "RUNNING": "Termina em",
"EMPTY": "Sem eventos programados.", "EMPTY": "Sem eventos programados.",
"WEEK": "Semana", "WEEK": "Semana {weekNumber}",
"N": "N", "N": "N",
"NNE": "NNE", "NNE": "NNE",

View File

@ -7,7 +7,7 @@
"RUNNING": "Se termină în", "RUNNING": "Se termină în",
"EMPTY": "Nici un eveniment.", "EMPTY": "Nici un eveniment.",
"WEEK": "Săptămâna", "WEEK": "Săptămâna {weekNumber}",
"N": "N", "N": "N",
"NNE": "NNE", "NNE": "NNE",

View File

@ -7,7 +7,7 @@
"RUNNING": "Заканчивается через", "RUNNING": "Заканчивается через",
"EMPTY": "Нет предстоящих событий", "EMPTY": "Нет предстоящих событий",
"WEEK": "Неделя", "WEEK": "Неделя {weekNumber}",
"N": "С", "N": "С",
"NNE": "ССВ", "NNE": "ССВ",

View File

@ -7,7 +7,7 @@
"RUNNING": "Slutar", "RUNNING": "Slutar",
"EMPTY": "Inga kommande händelser.", "EMPTY": "Inga kommande händelser.",
"WEEK": "Vecka", "WEEK": "Vecka {weekNumber}",
"N": "N", "N": "N",
"NNE": "NNO", "NNE": "NNO",