X-Git-Url: https://code.delx.au/comingnext/blobdiff_plain/b19c3492f1e0d8689b3e09cbc6a0cef0832fa514..49b3192bd87d80c776f06b92123c70be34bc2fac:/comingNext/index.html diff --git a/comingNext/index.html b/comingNext/index.html index 761cf5c..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.35"; +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 = '
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.