Commit 538f76e5 authored by Philipp's avatar Philipp

Added forecast rules in current.json.tmpl to gettext l10n process

parent f3f6ed14
......@@ -274,7 +274,7 @@ module.exports = function (grunt) {
{src: 'src/fullscreen2.en.min.html.tmpl', dest: 'dist/fullscreen2.html.tmpl'},
{src: 'src/assets/js/complete.en.min.js', dest: 'dist/assets/js/complete.min.js'},
{src: 'src/assets/js/incomplete.en.min.js', dest: 'dist/assets/js/incomplete.min.js'},
{src: 'src/locales/en/current.json.tmpl', dest: 'dist/archive/current.json.tmpl'},
{src: 'src/i18n/en/archive/current.json.tmpl', dest: 'dist/archive/current.json.tmpl'},
{src: 'src/index.en.min.html.tmpl', dest: 'dist/i18n/en/index.html.tmpl'},
{src: 'src/archive.en.min.html.tmpl', dest: 'dist/i18n/en/archive.html.tmpl'},
......@@ -286,7 +286,7 @@ module.exports = function (grunt) {
{src: 'src/fullscreen2.en.min.html.tmpl', dest: 'dist/i18n/en/fullscreen2.html.tmpl'},
{src: 'src/assets/js/complete.en.min.js', dest: 'dist/i18n/en/assets/js/complete.min.js'},
{src: 'src/assets/js/incomplete.en.min.js', dest: 'dist/i18n/en/assets/js/incomplete.min.js'},
{src: 'src/locales/en/current.json.tmpl', dest: 'dist/i18n/en/archive/current.json.tmpl'},
{src: 'src/i18n/en/archive/current.json.tmpl', dest: 'dist/i18n/en/archive/current.json.tmpl'},
{src: 'src/index.de.min.html.tmpl', dest: 'dist/i18n/de/index.html.tmpl'},
{src: 'src/archive.de.min.html.tmpl', dest: 'dist/i18n/de/archive.html.tmpl'},
......@@ -298,7 +298,7 @@ module.exports = function (grunt) {
{src: 'src/fullscreen2.de.min.html.tmpl', dest: 'dist/i18n/de/fullscreen2.html.tmpl'},
{src: 'src/assets/js/complete.de.min.js', dest: 'dist/i18n/de/assets/js/complete.min.js'},
{src: 'src/assets/js/incomplete.de.min.js', dest: 'dist/i18n/de/assets/js/incomplete.min.js'},
{src: 'src/locales/de/current.json.tmpl', dest: 'dist/i18n/de/archive/current.json.tmpl'},
{src: 'src/i18n/de/archive/current.json.tmpl', dest: 'dist/i18n/de/archive/current.json.tmpl'},
{src: 'src/index.no.min.html.tmpl', dest: 'dist/i18n/no/index.html.tmpl'},
{src: 'src/archive.no.min.html.tmpl', dest: 'dist/i18n/no/archive.html.tmpl'},
......@@ -310,7 +310,7 @@ module.exports = function (grunt) {
{src: 'src/fullscreen2.no.min.html.tmpl', dest: 'dist/i18n/no/fullscreen2.html.tmpl'},
{src: 'src/assets/js/complete.no.min.js', dest: 'dist/i18n/no/assets/js/complete.min.js'},
{src: 'src/assets/js/incomplete.no.min.js', dest: 'dist/i18n/no/assets/js/incomplete.min.js'},
{src: 'src/locales/no/current.json.tmpl', dest: 'dist/i18n/no/archive/current.json.tmpl'},
{src: 'src/i18n/no/archive/current.json.tmpl', dest: 'dist/i18n/no/archive/current.json.tmpl'},
{src: 'src/index.fr.min.html.tmpl', dest: 'dist/i18n/fr/index.html.tmpl'},
{src: 'src/archive.fr.min.html.tmpl', dest: 'dist/i18n/fr/archive.html.tmpl'},
......@@ -322,7 +322,7 @@ module.exports = function (grunt) {
{src: 'src/fullscreen2.fr.min.html.tmpl', dest: 'dist/i18n/fr/fullscreen2.html.tmpl'},
{src: 'src/assets/js/complete.fr.min.js', dest: 'dist/i18n/fr/assets/js/complete.min.js'},
{src: 'src/assets/js/incomplete.fr.min.js', dest: 'dist/i18n/fr/assets/js/incomplete.min.js'},
{src: 'src/locales/fr/current.json.tmpl', dest: 'dist/i18n/fr/archive/current.json.tmpl'},
{src: 'src/i18n/fr/archive/current.json.tmpl', dest: 'dist/i18n/fr/archive/current.json.tmpl'},
{src: 'src/index.nl.min.html.tmpl', dest: 'dist/i18n/nl/index.html.tmpl'},
{src: 'src/archive.nl.min.html.tmpl', dest: 'dist/i18n/nl/archive.html.tmpl'},
......@@ -334,7 +334,7 @@ module.exports = function (grunt) {
{src: 'src/fullscreen2.nl.min.html.tmpl', dest: 'dist/i18n/nl/fullscreen2.html.tmpl'},
{src: 'src/assets/js/complete.nl.min.js', dest: 'dist/i18n/nl/assets/js/complete.min.js'},
{src: 'src/assets/js/incomplete.nl.min.js', dest: 'dist/i18n/nl/assets/js/incomplete.min.js'},
{src: 'src/locales/nl/current.json.tmpl', dest: 'dist/i18n/nl/archive/current.json.tmpl'},
{src: 'src/i18n/nl/archive/current.json.tmpl', dest: 'dist/i18n/nl/archive/current.json.tmpl'},
{src: 'src/skin.conf', dest: 'dist/skin.conf'},
{src: 'src/assets/js/iecompat.min.js', dest: 'dist/assets/js/iecompat.min.js'},
......@@ -389,7 +389,8 @@ module.exports = function (grunt) {
pathToRemove: 'src/',
regex: {
html: /\btr\(['"](.+?)['"]\)/g,
javascript: /\btr\((['"].+?['"])\)/g
javascript: /\btr\((['"].+?['"])\)/g,
assets: /\btr\((['"].+?['"])\)/g
}
},
files: {
......@@ -398,8 +399,12 @@ module.exports = function (grunt) {
],
javascript: [
'src/assets/js/main.js'
],
assets: [
'src/archive/current.json.tmpl'
]
}
}
},
clean: ["src/*.tmpl", "src/i18n", "src/fullscreen*.min.html", "src/assets/js/complete*.min.js", "src/assets/js/incomplete*.min.js", "src/assets/js/iecompat.min.js", "src/assets/css/complete.min.css", "src/assets/css/incomplete.min.css", "src/i18n/de", "src/i18n/no", "src/i18n/fr" ]
......
This diff is collapsed.
......@@ -446,4 +446,4 @@
#else:
"foo": ""
#end if
}
\ No newline at end of file
}
......@@ -49,7 +49,7 @@
#if $current.forecastRule.raw == 0:
"Ueberwiegend klar und kaelter."
#else if $current.forecastRule.raw == 1:
"Ueberwiegend klar mit kleinen Temperaturaenderungen."
"Ueberwiegend klar mit wenig Temperaturaenderungen."
#else if $current.forecastRule.raw == 2:
"Ueberwiegend klar fuer 12 Stunden mit wenig Temperaturaenderungen."
#else if $current.forecastRule.raw == 3:
......@@ -75,21 +75,21 @@
#else if $current.forecastRule.raw == 13:
"Teils bewoelkt mit wenig Temperaturaenderungen."
#else if $current.forecastRule.raw == 14:
"Teils bewoelkt mit wenig Temperaturaenderungen."
"Ueberwiegend klar mit wenig Temperaturaenderungen."
#else if $current.forecastRule.raw == 15:
"Bewoelkter mit wenig Temperaturaenderungen. Niederschlag moeglich in den naechsten 24 Stunden."
#else if $current.forecastRule.raw == 16:
"Ueberwiegend klar mit wenig Temperaturaenderungen."
#else if $current.forecastRule.raw == 17:
"Teils wolking mit wenig Temperaturaenderungen."
"Teils bewoelkt mit wenig Temperaturaenderungen."
#else if $current.forecastRule.raw == 18:
"Ueberwiegend klar mit wenig Temperaturaenderungen."
#else if $current.forecastRule.raw == 19:
"Bewoelkter mit wenig Temperaturaenderungen. Niederschlag moeglich in den naechsten 12 Stunden."
#else if $current.forecastRule.raw == 20:
"Teils wolking mit wenig Temperaturaenderungen."
"Ueberwiegend klar mit wenig Temperaturaenderungen."
#else if $current.forecastRule.raw == 21:
"Teils wolking mit wenig Temperaturaenderungen."
"Teils bewoelkt mit wenig Temperaturaenderungen."
#else if $current.forecastRule.raw == 22:
"Ueberwiegend klar mit wenig Temperaturaenderungen."
#else if $current.forecastRule.raw == 23:
......@@ -131,7 +131,7 @@
#else if $current.forecastRule.raw == 41:
"Ueberwiegend klar und waermer."
#else if $current.forecastRule.raw == 42:
"Teils bewoelkt und wenig Temperaturaenderungen."
"Teils bewoelkt mit wenig Temperaturaenderungen."
#else if $current.forecastRule.raw == 43:
"Ueberwiegend klar mit wenig Temperaturaenderungen."
#else if $current.forecastRule.raw == 44:
......
This diff is collapsed.
This diff is collapsed.
......@@ -446,4 +446,4 @@
#else:
"foo": ""
#end if
}
\ No newline at end of file
}
......@@ -15,7 +15,7 @@
#if $varExists('Extras.news')
<div class="whitebg container-news"><h3>News</h3>$Extras.news</div>
#end if
<div class="whitebg jshide"><p class="alert alert-danger"><strong>You need javascript to see the live instruments. (e.g. disable NoScript addon.)</strong></p></div><div class="whitebg container-gauges jshidden"><h3>Weather</h3><div class="container-fluid">
<div class="whitebg jshide"><p class="alert alert-danger"><strong>CurrentYou need javascript to see the live instruments. (e.g. disable NoScript addon.)</strong></p></div><div class="whitebg container-gauges jshidden"><h3>Weather</h3><div class="container-fluid">
#if $current.forecastRule.has_data
<div class="col-md-12"><div class="gauge_container"><h4>Forecast</h4><p id="we_forecast">&nbsp;</p></div></div>
#end if
......
This diff is collapsed.
......@@ -77,7 +77,7 @@
#else if $current.forecastRule.raw == 14:
"Principalement clair avec peu de changement de temperature."
#else if $current.forecastRule.raw == 15:
"Plus de nuages avec peu de changement de temperature. Pluie possible dans les 24 heures."
"Plus de nuages avec peu de changement de temperature. Pluie possible dans 24 heures."
#else if $current.forecastRule.raw == 16:
"Principalement clair avec peu de changement de temperature."
#else if $current.forecastRule.raw == 17:
......@@ -446,4 +446,4 @@
#else:
"foo": ""
#end if
}
\ No newline at end of file
}
This diff is collapsed.
......@@ -446,4 +446,4 @@
#else:
"foo": ""
#end if
}
\ No newline at end of file
}
This diff is collapsed.
......@@ -446,4 +446,4 @@
#else:
"foo": ""
#end if
}
\ No newline at end of file
}
This diff is collapsed.
......@@ -15,7 +15,7 @@
#if $varExists('Extras.news')
<div class="whitebg container-news"><h3>News</h3>$Extras.news</div>
#end if
<div class="whitebg jshide"><p class="alert alert-danger"><strong>You need javascript to see the live instruments. (e.g. disable NoScript addon.)</strong></p></div><div class="whitebg container-gauges jshidden"><h3>Weather</h3><div class="container-fluid">
<div class="whitebg jshide"><p class="alert alert-danger"><strong>CurrentYou need javascript to see the live instruments. (e.g. disable NoScript addon.)</strong></p></div><div class="whitebg container-gauges jshidden"><h3>Weather</h3><div class="container-fluid">
#if $current.forecastRule.has_data
<div class="col-md-12"><div class="gauge_container"><h4>Forecast</h4><p id="we_forecast">&nbsp;</p></div></div>
#end if
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -141,7 +141,7 @@
<h5>Template:</h5>
<p>Das verwendete Template habe ich selbst gestaltet und man kann es hier herunterladen:</p>
<pre><a href="https://gitlab.ambhost.net/stimpy/template_rabenwetter" target="_blank">https://gitlab.ambhost.net/stimpy/template_rabenwetter</a></pre>
<p>Eine Installationsanleitung findest Du im in der beigefügten Datei <a href="https://gitlab.ambhost.net/stimpy/template_rabenwetter/blob/master/README.md" target="_blank">README.md</a></p>
<p>Eine Installationsanleitung findest Du in der beigefügten Datei <a href="https://gitlab.ambhost.net/stimpy/template_rabenwetter/blob/master/README.md" target="_blank">README.md</a></p>
<p>Ich arbeite derzeit zwar noch aktiv am Quellcode, es sollte aber mittlerweile relativ einfach zu installieren und auch aktuell zu halten sein.</p>
<p><br /></p>
<p><a href="https://www.stimpyrama.org/blog/weather" target="_blank">Weitere Informationen zu WebCam und Wetterstation finden Sie in meinem privaten Blog.</a></p>
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment