Use t() for all dynamic UI text (heute, morgen, weekdays)
This commit is contained in:
1 parent
d546124359
commit
1dc9b8a0ad
1 file changed
+1
-6
+1
-6
@@ -1042,7 +1042,7 @@ var effect = (VANTA.CLOUDS2 || VANTA.CLOUDS)({
|
||||
|
||||
// Sun zenith (solar noon) - find next occurrence
|
||||
var sunZenith = sunTimes.solarNoon;
|
||||
var sunZenithWhen = sunZenith > now ? 'heute' : 'morgen';
|
||||
var sunZenithWhen = sunZenith > now ? t('heute') : t('morgen');
|
||||
if (sunZenith <= now) {
|
||||
var tomorrow = new Date(now);
|
||||
tomorrow.setDate(tomorrow.getDate() + 1);
|
||||
@@ -1350,10 +1350,6 @@ window.weatherThemes = {
|
||||
window.CONFIG.units = units;
|
||||
}
|
||||
|
||||
function setDebugLanguage(lang) {
|
||||
window.CONFIG.language = lang;
|
||||
}
|
||||
|
||||
function updateDebug(t, palette, vantaColors, themeName, realDayProgress) {
|
||||
var now = new Date();
|
||||
var hh = now.getHours(), mm = now.getMinutes(), ss = now.getSeconds();
|
||||
@@ -1596,7 +1592,6 @@ window.weatherThemes = {
|
||||
|
||||
// Forecast
|
||||
var forecastHtml = '';
|
||||
var dayNames = ['Heute', 'Morgen'];
|
||||
for (var d = 0; d < 4; d++) {
|
||||
var dayDate = new Date(daily.time[d]);
|
||||
var dayLabel = d === 0 ? t('heute') : t('morgen');
|
||||
|
||||
Reference in new issue
Block a user