X-Git-Url: https://code.delx.au/comingnext/blobdiff_plain/9725d6fde493ea229b1785da5976b611fe3d2279..49b3192bd87d80c776f06b92123c70be34bc2fac:/comingNext/index.html diff --git a/comingNext/index.html b/comingNext/index.html index 9502668..eaecb85 100644 --- a/comingNext/index.html +++ b/comingNext/index.html @@ -83,7 +83,7 @@ var config = { // Nothing of interest from here on... //------------------------------------------------------- var panelNum = 0; // use 1 for second panel -var version = "1.34"; +var version = "1.37"; var versionURL = "http://comingnext.sourceforge.net/version.xml"; var calendarService = null; var cacheEntriesHtml = []; @@ -375,11 +375,16 @@ function collectLocales() } } +function stringEndsWith(str, suffix) +{ + return str.indexOf(suffix, str.length - suffix.length) !== -1; +} + // detects the system's current time format by parsing a native calendar timestamp (this is the only reliable formating across all devices and firmwares) function detectTimeFormat(localeTimeString) { localeTimeString = localeTimeString.toLowerCase(); - use12hoursTimeFormat = localeTimeString.indexOf("am") != -1 || localeTimeString.indexOf("pm") != -1 ? true : false; + use12hoursTimeFormat = stringEndsWith(localeTimeString, "am") || stringEndsWith(localeTimeString, "pm"); timeFormatSeparator = localeTimeString.indexOf(":") != -1 ? ":" : "."; } @@ -936,6 +941,7 @@ function updateData() var text = config['nothingText'].Value.replace(/%d/, config['monthRange'].Value); entriesHtml = '
' + text + '
'; } + log("output: " + entriesHtml); if (cacheEntriesHtml != entriesHtml) { if (mode == 0) document.getElementById('calendarList').innerHTML = entriesHtml; @@ -1294,7 +1300,7 @@ function loadSettings() log('Warning: unknown or invalid setting: ' + stringlist[i]); continue; } - log('stringlist: ' + key + '=\'' + value + '\''); + log('stringlist[' + i + ']: ' + key + '=\'' + value + '\''); if (config[key].Type == 'Int') { config[key].Value = Number(value); if (isNaN(config[key].Value)) @@ -1766,11 +1772,14 @@ hr { color:#ffffff; background-color:#ffffff; height:1px; text-align:left; borde

Contributions:

Paul Moore (bug fixes, new features and code cleanup)

Manfred Hanselmann (DST support)

-

Christophe Milsent (translation support & french translation)

-

Flavio Nathan (portuguese-brazilian translation)

-

Tokeda (russian translation)

-

Marcella Ferrari (italian translation)

-

Venos (italian translation)

+

Christophe Milsent (translation support & French translation)

+

Flavio Nathan (Portuguese-Brazilian translation)

+

Tokeda (Russian translation)

+

Marcella Ferrari (Italian translation)

+

Venos (Italian translation)

+

Francisco Rodero (Catalan translation)

+

zbigzbig20 (Polish translation)

+

Streamkeskus (Finish translation)

This software is open source and licensed under the GPLv3.

Visit comingnext.sf.net for free updates.