diff --git a/apps/locale/ChangeLog b/apps/locale/ChangeLog index 39d40c8d4..d21cb1a56 100644 --- a/apps/locale/ChangeLog +++ b/apps/locale/ChangeLog @@ -19,4 +19,3 @@ 0.16: Remove global variables that used RAM Add second 'dp' argument for decimal places in distance/speed/temp (fix #1523) 0.17: Fix regression where long month names were 'undefined' (fix #1641) -0.18: Add function dowAll(), update function dow() diff --git a/apps/locale/locale.html b/apps/locale/locale.html index 41e882dfa..6eb0d94ea 100644 --- a/apps/locale/locale.html +++ b/apps/locale/locale.html @@ -198,8 +198,7 @@ function getHours(d) { exports = { name: ${js(locale.lang)}, currencySym: ${js(locale.currency_symbol)}, - dow: (d,short) => ${js(locale.day + ',' + locale.abday + ',' + locale.abday.split(',').map(e => e.charAt(0).toUpperCase()).join(','))}.split(',')[d.getDay() + ((short || 0) * 7)], - dowAll: (short) => ${js(locale.day + ',' + locale.abday + ',' + locale.abday.split(',').map(e => e.charAt(0).toUpperCase()).join(','))}.split(',').slice((short || 0) * 7, ((short || 0) + 1) * 7), + dow: (d,short) => ${js(locale.day + ',' + locale.abday)}.split(',')[d.getDay() + (short ? 7 : 0)], month: (d,short) => ${js(locale.month + ',' + locale.abmonth)}.split(',')[d.getMonth() + (short ? 12 : 0)], number: (n, dec) => { if (dec == null) dec = 2; diff --git a/apps/locale/metadata.json b/apps/locale/metadata.json index cb45f0622..54ad64e80 100644 --- a/apps/locale/metadata.json +++ b/apps/locale/metadata.json @@ -1,7 +1,7 @@ { "id": "locale", "name": "Languages", - "version": "0.18", + "version": "0.17", "description": "Translations for different countries", "icon": "locale.png", "type": "locale",