]> code.delx.au - comingnext/commitdiff
fixed mixed win/linux line endings
authorMichael Prager <michael@pragers.de>
Thu, 12 May 2011 16:25:27 +0000 (18:25 +0200)
committerMichael Prager <michael@pragers.de>
Thu, 12 May 2011 16:25:27 +0000 (18:25 +0200)
comingNext/Info.plist
comingNext/de.lproj/localizedTextStrings.js
comingNext/es.lproj/localizedTextStrings.js
comingNext/fr.lproj/localizedTextStrings.js
comingNext/index.html
comingNext/it.lproj/localizedTextStrings.js
comingNext/localizedTextStrings.js
comingNext/pt-BR.lproj/localizedTextStrings.js
comingNext/ru.lproj/localizedTextStrings.js

index ba63d888fe3a106194716474e2ab6682a887601d..1711c1682570b993c3579c80d6565633a244542e 100644 (file)
@@ -2,9 +2,9 @@
 <!DOCTYPE plist PUBLIC "-//Nokia//DTD PLIST 1.0//EN" "http://www.nokia.com/NOKIA_COM_1/DTDs/plist-1.0.dtd">\r
 <plist version="1.0">\r
 <dict>\r
-       <key>DisplayName</key>                  <string>ComingNext 1.32</string>
+       <key>DisplayName</key>                  <string>ComingNext 1.32</string>\r
        <key>Identifier</key>                   <string>ar.com.cochambre.symbian.wrt.comingnext</string>\r
-       <key>Version</key>                      <string>1.32</string>
+       <key>Version</key>                      <string>1.32</string>\r
        <key>MainHTML</key>                     <string>index.html</string>\r
        <key>AllowNetworkAccess</key>           <true/>\r
        <key>MiniViewEnabled</key>              <true/> \r
index cde5a251b4ae3f961cfe088d80654c750b18d701..21dd2b04705697ed213ad73a6e880c4a9b8f2c9c 100644 (file)
@@ -76,8 +76,8 @@ localizedText['settings.name.showCalendarIndicator'] = 'Zeige Farbindikator für
 localizedText['settings.info.showCalendarIndicator'] = 'falls mehrere Kalender benutzt werden, wird mit Hilfe eines Farbbalkens angezeigt, zu welchem Kalender ein Ereignis gehört';\r
 localizedText['settings.name.excludedCalendars'] = 'Anzuzeigende Kalender';\r
 localizedText['settings.info.excludedCalendars'] = 'falls du mehrere Kalender angelegt hast, kannst du hier festlegen, welche Kalender angezeigt werden sollen';\r
-localizedText['settings.name.enableLogging'] = 'Enable Logging';
-localizedText['settings.info.enableLogging'] = 'write debug information to C:\\Data\\jslog_widget.log. Note: Javascript error logging to file needs to be enabled in your browser settings for this.';
+localizedText['settings.name.enableLogging'] = 'Enable Logging';\r
+localizedText['settings.info.enableLogging'] = 'write debug information to C:\\Data\\jslog_widget.log. Note: Javascript error logging to file needs to be enabled in your browser settings for this.';\r
 localizedText['settings.name.cssStyle_background'] = '.background';\r
 localizedText['settings.info.cssStyle_background'] = 'Definiert den Hintergrund des Widgets. Falls Sie ein Hintergrundbild verwenden möchten, aktivieren Sie die Einstellung "Benutze Hintergrundbild". Für die Standardthemes des N97 ("schwarz", "grau" und "helles Blau") lauten die Farbcodes #292029, #e7dfe7 und #009aef.';\r
 localizedText['settings.name.cssStyle_backgroundFullscreen'] = '.backgroundFullscreen';\r
index 48b04100d914daaf0d9a30c08399c6f44ceccd0c..f42a3416f6fd784039e591627ae9b69a9ea8ccba 100644 (file)
-var localizedText = new Array();
-
-localizedText['menu.settings'] = 'Configuración';
-localizedText['menu.openCalendarApp'] = 'Abrir Calendario';
-localizedText['menu.about'] = 'Acerca de';
-localizedText['menu.update'] = 'Comprobar nueva versión';
-localizedText['menu.help'] = 'Ayuda';
-
-localizedText['softkey.back'] = 'Atrás';
-
-localizedText['settings.restoreDefaults'] = 'Ajustes por defecto';
-localizedText['settings.help'] = 'Ayuda';
-localizedText['settings.save'] = 'Guardar';
-localizedText['settings.cancel'] = 'Cancelar';
-
-localizedText['settings.name.monthRange'] = 'Rango del Mes';
-localizedText['settings.info.monthRange'] = 'Número de meses incluídos en lista de evento';
-localizedText['settings.name.includeTodos'] = 'Incluir ToDos';
-localizedText['settings.info.includeTodos'] = 'Desactiva para quitar "ToDos" de la lista de eventos';
-localizedText['settings.name.useBackgroundImage'] = 'Usar Imagen de Fondo';
-localizedText['settings.info.useBackgroundImage'] = 'Usar background_portrait.png y background_landscape.png para transparencia artificial. Desativa para usar un color de fondo sólido';
-localizedText['settings.name.backgroundImageLocation'] = 'Localización de la Imagen de Fondo';
-localizedText['settings.info.backgroundImageLocation'] = 'Define dónde está localizada la Imagen de Fondo. "Interna" usará la imagen por defecto,"Externa" usará la imagen en C:\\Data\\. Si has generado imágenes con "ComingNext Skin Fetcher", se deberá indicar "Externa".';
-localizedText['settings.validValues.backgroundImageLocation.internal'] = 'Interna';
-localizedText['settings.validValues.backgroundImageLocation.external'] = 'Externa';
-localizedText['settings.name.showCombinedDateTime'] = 'Mostrar combinación de hora y fecha';
-localizedText['settings.info.showCombinedDateTime'] = 'Mostrar hora sólo para eventos de hoy, en otro caso mostrar fecha';
-localizedText['settings.name.showLocation'] = 'Mostrar lugar';
-localizedText['settings.info.showLocation'] = 'Mostrar lugar para eventos de reunión';
-localizedText['settings.name.showTodayAsText'] = 'Mostrar Hoy como texto';
-localizedText['settings.info.showTodayAsText'] = 'Activar para mostrar la fecha actual como "Hoy" en lugar de "31.12"';
-localizedText['settings.name.todayText'] = 'Texto "Hoy"';
-localizedText['settings.info.todayText'] = 'Texto mostrado para "Hoy"';
-localizedText['settings.default.todayText'] = 'Hoy';
-localizedText['settings.name.tomorrowText'] = 'Texto "Mañana"';
-localizedText['settings.info.tomorrowText'] = 'Texto a mostrar para "Mañana"';
-localizedText['settings.default.tomorrowText'] = 'Mañana';
-localizedText['settings.name.showNowAsText'] = 'Mostrar "Ahora" como Texto';
-localizedText['settings.info.showNowAsText'] = 'Activar para mostrar la fecha actual como "Ahora" en lugar de "12:00"';
-localizedText['settings.name.nowText'] = 'Texto "Ahora"';
-localizedText['settings.info.nowText'] = 'Texto mostrado para "Ahora"';
-localizedText['settings.default.nowText'] = 'Ahora';
-localizedText['settings.name.markOverdueTodos'] = 'Marca ToDos ocurridos';
-localizedText['settings.info.markOverdueTodos'] = 'Marca ítems ToDo ya ocurridos de color diferente';
-localizedText['settings.name.overdueText'] = 'Texto "Ocurridos"';
-localizedText['settings.info.overdueText'] = 'Texto para mostrar "Ocurridos" ToDos';
-localizedText['settings.default.overdueText'] = 'Ocurridos';
-localizedText['settings.name.dateSeparator'] = 'Separador de Fecha';
-localizedText['settings.info.dateSeparator'] = 'Separador para fechas. Ej.: "31.12" o "31/12"';
-localizedText['settings.default.dateSeparator'] = '/';
-localizedText['settings.name.dateFormat'] = 'Formato de Fecha';
-localizedText['settings.info.dateFormat'] = 'Cómo se mostrará la fecha. \'auto\' detectará los ajustes de tu teléfono. \'MMDD\' escribirá primero el mes, \'DDMM\' escribirá primero el día ';
-localizedText['settings.validValues.dateFormat.auto'] = 'auto-detectar';
-localizedText['settings.validValues.dateFormat.DDMM'] = 'día/mes/año';
-localizedText['settings.validValues.dateFormat.MMDD'] = 'mes/día/ano';
-localizedText['settings.name.weekDayLength'] = 'Dia de la semana';
-localizedText['settings.info.weekDayLength'] = 'Define con cuántos caracteres será mostrado el día de la semana. Ej.: 3 mostrará las tres primeras letras: "Martes" a "Mar"';
-localizedText['settings.name.updateDataInterval'] = 'Intervalo de actualización de datos';
-localizedText['settings.info.updateDataInterval'] = 'Indica cada cuántos minutos se actualizarán los datos. Cuanto mayor el valor, menor el consumo de batería';
-localizedText['settings.name.calendarApp'] = 'Aplicación de calendario a ejecutar.';
-localizedText['settings.info.calendarApp'] = 'Especifica el UID de la aplicación de la que se cogerán los datos del calendario. 0x10005901 = Calendario interno, 0x20004ec1 = Calendario Epocware Handy';
-localizedText['settings.name.eventsPerWidget'] = 'Eventos por Widget';
-localizedText['settings.info.eventsPerWidget'] = 'Número de eventos mostrados por widget. Por defecto se muestran 4';
-localizedText['settings.name.showNothingText'] = 'Muestra "Nada" como texto';
-localizedText['settings.info.showNothingText'] = 'Si está activo, muestra un texto cuando no hay eventos listados';
-localizedText['settings.name.nothingText'] = 'Texto "No hay más eventos..."';
-localizedText['settings.info.nothingText'] = 'Texto a mostrar cuando no hay eventos listados';
-localizedText['settings.default.nothingText'] = 'Sin eventos en los próximos %d meses';
-localizedText['settings.name.enableDaylightSaving'] = 'Activa el horario de verano';
-localizedText['settings.info.enableDaylightSaving'] = 'Activar si está en una región donde se aplica calendario de verano';
-localizedText['settings.name.daylightSavingOffset'] = 'Horas desfasadas al aplicar el horario de verano';
-localizedText['settings.info.daylightSavingOffset'] = 'Número de horas que se desplaza el reloj al aplicar el horario de verano. Este ajuste sólo es aplicable si la opción Horario de verano está activada. El tiempo por defecto en Europa es de 1 hora.';
-localizedText['settings.name.hideWidgetOnCalendarOpen'] = 'Esconder el Widget cuando se abre el Calendario';
-localizedText['settings.info.hideWidgetOnCalendarOpen'] = 'Activar para esconder el widget después de clicar en él para abrir la aplicación de calendario';
-localizedText['settings.name.showCalendarIndicator'] = 'Mostrar indicador de calendario';
-localizedText['settings.info.showCalendarIndicator'] = 'Si se usan varios calendarios simultáneamente, se usará una pequeña barra de color para indicar a cuál de los calendarios pertenece un evento';
-localizedText['settings.name.excludedCalendars'] = 'Calendarios incluidos';
-localizedText['settings.info.excludedCalendars'] = 'Aquí se puede especificar qué calendarios se mostrarán si se han definido varios calendarios';
-localizedText['settings.name.enableLogging'] = 'Enable Logging';
-localizedText['settings.info.enableLogging'] = 'write debug information to C:\\Data\\jslog_widget.log. Note: Javascript error logging to file needs to be enabled in your browser settings for this.';
-localizedText['settings.name.cssStyle_background'] = '.background';
-localizedText['settings.info.cssStyle_background'] = 'Define el fondo de aplicación del widget. Para usar una imagen de fondo personalizada, ponga useBackgroundImage = true debajo. Para el temo por defecto, negro, gris, y azul claro, los códigos son #292029, #e7dfe7, #009aef';
-localizedText['settings.name.cssStyle_backgroundFullscreen'] = '.backgroundFullscreen';
-localizedText['settings.info.cssStyle_backgroundFullscreen'] = 'Lo mismo que .background pero cuando el widget está a pantalla completa';
-localizedText['settings.name.cssStyle_weekDay'] = '.weekDay';
-localizedText['settings.info.cssStyle_weekDay'] = 'Define la apariencia de los días de la semana';
-localizedText['settings.name.cssStyle_date'] = '.date';
-localizedText['settings.info.cssStyle_date'] = 'Define la apariencia de las fechas';
-localizedText['settings.name.cssStyle_today'] = '.today';
-localizedText['settings.info.cssStyle_today'] = 'Define la apariencia del día "Hoy"';
-localizedText['settings.name.cssStyle_tomorrow'] = '.tomorrow';
-localizedText['settings.info.cssStyle_tomorrow'] = 'Define la apariencia del día "Mañana"';
-localizedText['settings.name.cssStyle_time'] = '.time';
-localizedText['settings.info.cssStyle_time'] = 'Define la apariencia de todos los textos';
-localizedText['settings.name.cssStyle_now'] = '.now';
-localizedText['settings.info.cssStyle_now'] = 'Define la apariencia de los textos "Ahora"';
-localizedText['settings.name.cssStyle_description'] = '.description';
-localizedText['settings.info.cssStyle_description'] = 'Define la apariencia de los textos de descriptión de eventos';
-localizedText['settings.name.cssStyle_icon'] = '.icon';
-localizedText['settings.info.cssStyle_icon'] = 'Define el tamaño y apariencia de los iconos';
-localizedText['settings.name.cssStyle_overdue'] = '.overdue';
-localizedText['settings.info.cssStyle_overdue'] = 'Define la apariencia del texto "Ocurrido"';
-localizedText['settings.name.cssStyle_calendar1'] = '.calendar1';
-localizedText['settings.info.cssStyle_calendar1'] = 'Define el indicador de color para los eventos del calendario 1';
-localizedText['settings.name.cssStyle_calendar2'] = '.calendar2';
-localizedText['settings.info.cssStyle_calendar2'] = 'Define el indicador de color para los eventos del calendario 2';
-localizedText['settings.name.cssStyle_calendar3'] = '.calendar3';
-localizedText['settings.info.cssStyle_calendar3'] = 'Define el indicador de color para los eventos del calendario 3';
-localizedText['settings.name.cssStyle_calendar4'] = '.calendar4';
-localizedText['settings.info.cssStyle_calendar4'] = 'Define el indicador de color para los eventos del calendario 4';
-localizedText['settings.name.cssStyle_calendar5'] = '.calendar5';
-localizedText['settings.info.cssStyle_calendar5'] = 'Define el indicador de color para los eventos del calendario 5';
-localizedText['settings.name.cssStyle_calendar6'] = '.calendar6';
-localizedText['settings.info.cssStyle_calendar6'] = 'Define el indicador de color para los eventos del calendario 6';
-localizedText['settings.cssStyle_prefix'] = 'CSS Style for ';
-
-localizedText['update.current'] = 'Versión instalada: ';
-localizedText['update.checking'] = 'Comprobando actualización...';
-localizedText['update.download'] = 'Nueva versión: %1<br /><a href=\"%2\">descargar</a>';
-localizedText['update.nonewversion'] = 'Sin actualizaciones disponibles';
-localizedText['update.error'] = 'Error de conexión: ';
-localizedText['update.checknow'] = 'Comprobar ahora';
+var localizedText = new Array();\r
+\r
+localizedText['menu.settings'] = 'Configuración';\r
+localizedText['menu.openCalendarApp'] = 'Abrir Calendario';\r
+localizedText['menu.about'] = 'Acerca de';\r
+localizedText['menu.update'] = 'Comprobar nueva versión';\r
+localizedText['menu.help'] = 'Ayuda';\r
+\r
+localizedText['softkey.back'] = 'Atrás';\r
+\r
+localizedText['settings.restoreDefaults'] = 'Ajustes por defecto';\r
+localizedText['settings.help'] = 'Ayuda';\r
+localizedText['settings.save'] = 'Guardar';\r
+localizedText['settings.cancel'] = 'Cancelar';\r
+\r
+localizedText['settings.name.monthRange'] = 'Rango del Mes';\r
+localizedText['settings.info.monthRange'] = 'Número de meses incluídos en lista de evento';\r
+localizedText['settings.name.includeTodos'] = 'Incluir ToDos';\r
+localizedText['settings.info.includeTodos'] = 'Desactiva para quitar "ToDos" de la lista de eventos';\r
+localizedText['settings.name.useBackgroundImage'] = 'Usar Imagen de Fondo';\r
+localizedText['settings.info.useBackgroundImage'] = 'Usar background_portrait.png y background_landscape.png para transparencia artificial. Desativa para usar un color de fondo sólido';\r
+localizedText['settings.name.backgroundImageLocation'] = 'Localización de la Imagen de Fondo';\r
+localizedText['settings.info.backgroundImageLocation'] = 'Define dónde está localizada la Imagen de Fondo. "Interna" usará la imagen por defecto,"Externa" usará la imagen en C:\\Data\\. Si has generado imágenes con "ComingNext Skin Fetcher", se deberá indicar "Externa".';\r
+localizedText['settings.validValues.backgroundImageLocation.internal'] = 'Interna';\r
+localizedText['settings.validValues.backgroundImageLocation.external'] = 'Externa';\r
+localizedText['settings.name.showCombinedDateTime'] = 'Mostrar combinación de hora y fecha';\r
+localizedText['settings.info.showCombinedDateTime'] = 'Mostrar hora sólo para eventos de hoy, en otro caso mostrar fecha';\r
+localizedText['settings.name.showLocation'] = 'Mostrar lugar';\r
+localizedText['settings.info.showLocation'] = 'Mostrar lugar para eventos de reunión';\r
+localizedText['settings.name.showTodayAsText'] = 'Mostrar Hoy como texto';\r
+localizedText['settings.info.showTodayAsText'] = 'Activar para mostrar la fecha actual como "Hoy" en lugar de "31.12"';\r
+localizedText['settings.name.todayText'] = 'Texto "Hoy"';\r
+localizedText['settings.info.todayText'] = 'Texto mostrado para "Hoy"';\r
+localizedText['settings.default.todayText'] = 'Hoy';\r
+localizedText['settings.name.tomorrowText'] = 'Texto "Mañana"';\r
+localizedText['settings.info.tomorrowText'] = 'Texto a mostrar para "Mañana"';\r
+localizedText['settings.default.tomorrowText'] = 'Mañana';\r
+localizedText['settings.name.showNowAsText'] = 'Mostrar "Ahora" como Texto';\r
+localizedText['settings.info.showNowAsText'] = 'Activar para mostrar la fecha actual como "Ahora" en lugar de "12:00"';\r
+localizedText['settings.name.nowText'] = 'Texto "Ahora"';\r
+localizedText['settings.info.nowText'] = 'Texto mostrado para "Ahora"';\r
+localizedText['settings.default.nowText'] = 'Ahora';\r
+localizedText['settings.name.markOverdueTodos'] = 'Marca ToDos ocurridos';\r
+localizedText['settings.info.markOverdueTodos'] = 'Marca ítems ToDo ya ocurridos de color diferente';\r
+localizedText['settings.name.overdueText'] = 'Texto "Ocurridos"';\r
+localizedText['settings.info.overdueText'] = 'Texto para mostrar "Ocurridos" ToDos';\r
+localizedText['settings.default.overdueText'] = 'Ocurridos';\r
+localizedText['settings.name.dateSeparator'] = 'Separador de Fecha';\r
+localizedText['settings.info.dateSeparator'] = 'Separador para fechas. Ej.: "31.12" o "31/12"';\r
+localizedText['settings.default.dateSeparator'] = '/';\r
+localizedText['settings.name.dateFormat'] = 'Formato de Fecha';\r
+localizedText['settings.info.dateFormat'] = 'Cómo se mostrará la fecha. \'auto\' detectará los ajustes de tu teléfono. \'MMDD\' escribirá primero el mes, \'DDMM\' escribirá primero el día ';\r
+localizedText['settings.validValues.dateFormat.auto'] = 'auto-detectar';\r
+localizedText['settings.validValues.dateFormat.DDMM'] = 'día/mes/año';\r
+localizedText['settings.validValues.dateFormat.MMDD'] = 'mes/día/ano';\r
+localizedText['settings.name.weekDayLength'] = 'Dia de la semana';\r
+localizedText['settings.info.weekDayLength'] = 'Define con cuántos caracteres será mostrado el día de la semana. Ej.: 3 mostrará las tres primeras letras: "Martes" a "Mar"';\r
+localizedText['settings.name.updateDataInterval'] = 'Intervalo de actualización de datos';\r
+localizedText['settings.info.updateDataInterval'] = 'Indica cada cuántos minutos se actualizarán los datos. Cuanto mayor el valor, menor el consumo de batería';\r
+localizedText['settings.name.calendarApp'] = 'Aplicación de calendario a ejecutar.';\r
+localizedText['settings.info.calendarApp'] = 'Especifica el UID de la aplicación de la que se cogerán los datos del calendario. 0x10005901 = Calendario interno, 0x20004ec1 = Calendario Epocware Handy';\r
+localizedText['settings.name.eventsPerWidget'] = 'Eventos por Widget';\r
+localizedText['settings.info.eventsPerWidget'] = 'Número de eventos mostrados por widget. Por defecto se muestran 4';\r
+localizedText['settings.name.showNothingText'] = 'Muestra "Nada" como texto';\r
+localizedText['settings.info.showNothingText'] = 'Si está activo, muestra un texto cuando no hay eventos listados';\r
+localizedText['settings.name.nothingText'] = 'Texto "No hay más eventos..."';\r
+localizedText['settings.info.nothingText'] = 'Texto a mostrar cuando no hay eventos listados';\r
+localizedText['settings.default.nothingText'] = 'Sin eventos en los próximos %d meses';\r
+localizedText['settings.name.enableDaylightSaving'] = 'Activa el horario de verano';\r
+localizedText['settings.info.enableDaylightSaving'] = 'Activar si está en una región donde se aplica calendario de verano';\r
+localizedText['settings.name.daylightSavingOffset'] = 'Horas desfasadas al aplicar el horario de verano';\r
+localizedText['settings.info.daylightSavingOffset'] = 'Número de horas que se desplaza el reloj al aplicar el horario de verano. Este ajuste sólo es aplicable si la opción Horario de verano está activada. El tiempo por defecto en Europa es de 1 hora.';\r
+localizedText['settings.name.hideWidgetOnCalendarOpen'] = 'Esconder el Widget cuando se abre el Calendario';\r
+localizedText['settings.info.hideWidgetOnCalendarOpen'] = 'Activar para esconder el widget después de clicar en él para abrir la aplicación de calendario';\r
+localizedText['settings.name.showCalendarIndicator'] = 'Mostrar indicador de calendario';\r
+localizedText['settings.info.showCalendarIndicator'] = 'Si se usan varios calendarios simultáneamente, se usará una pequeña barra de color para indicar a cuál de los calendarios pertenece un evento';\r
+localizedText['settings.name.excludedCalendars'] = 'Calendarios incluidos';\r
+localizedText['settings.info.excludedCalendars'] = 'Aquí se puede especificar qué calendarios se mostrarán si se han definido varios calendarios';\r
+localizedText['settings.name.enableLogging'] = 'Enable Logging';\r
+localizedText['settings.info.enableLogging'] = 'write debug information to C:\\Data\\jslog_widget.log. Note: Javascript error logging to file needs to be enabled in your browser settings for this.';\r
+localizedText['settings.name.cssStyle_background'] = '.background';\r
+localizedText['settings.info.cssStyle_background'] = 'Define el fondo de aplicación del widget. Para usar una imagen de fondo personalizada, ponga useBackgroundImage = true debajo. Para el temo por defecto, negro, gris, y azul claro, los códigos son #292029, #e7dfe7, #009aef';\r
+localizedText['settings.name.cssStyle_backgroundFullscreen'] = '.backgroundFullscreen';\r
+localizedText['settings.info.cssStyle_backgroundFullscreen'] = 'Lo mismo que .background pero cuando el widget está a pantalla completa';\r
+localizedText['settings.name.cssStyle_weekDay'] = '.weekDay';\r
+localizedText['settings.info.cssStyle_weekDay'] = 'Define la apariencia de los días de la semana';\r
+localizedText['settings.name.cssStyle_date'] = '.date';\r
+localizedText['settings.info.cssStyle_date'] = 'Define la apariencia de las fechas';\r
+localizedText['settings.name.cssStyle_today'] = '.today';\r
+localizedText['settings.info.cssStyle_today'] = 'Define la apariencia del día "Hoy"';\r
+localizedText['settings.name.cssStyle_tomorrow'] = '.tomorrow';\r
+localizedText['settings.info.cssStyle_tomorrow'] = 'Define la apariencia del día "Mañana"';\r
+localizedText['settings.name.cssStyle_time'] = '.time';\r
+localizedText['settings.info.cssStyle_time'] = 'Define la apariencia de todos los textos';\r
+localizedText['settings.name.cssStyle_now'] = '.now';\r
+localizedText['settings.info.cssStyle_now'] = 'Define la apariencia de los textos "Ahora"';\r
+localizedText['settings.name.cssStyle_description'] = '.description';\r
+localizedText['settings.info.cssStyle_description'] = 'Define la apariencia de los textos de descriptión de eventos';\r
+localizedText['settings.name.cssStyle_icon'] = '.icon';\r
+localizedText['settings.info.cssStyle_icon'] = 'Define el tamaño y apariencia de los iconos';\r
+localizedText['settings.name.cssStyle_overdue'] = '.overdue';\r
+localizedText['settings.info.cssStyle_overdue'] = 'Define la apariencia del texto "Ocurrido"';\r
+localizedText['settings.name.cssStyle_calendar1'] = '.calendar1';\r
+localizedText['settings.info.cssStyle_calendar1'] = 'Define el indicador de color para los eventos del calendario 1';\r
+localizedText['settings.name.cssStyle_calendar2'] = '.calendar2';\r
+localizedText['settings.info.cssStyle_calendar2'] = 'Define el indicador de color para los eventos del calendario 2';\r
+localizedText['settings.name.cssStyle_calendar3'] = '.calendar3';\r
+localizedText['settings.info.cssStyle_calendar3'] = 'Define el indicador de color para los eventos del calendario 3';\r
+localizedText['settings.name.cssStyle_calendar4'] = '.calendar4';\r
+localizedText['settings.info.cssStyle_calendar4'] = 'Define el indicador de color para los eventos del calendario 4';\r
+localizedText['settings.name.cssStyle_calendar5'] = '.calendar5';\r
+localizedText['settings.info.cssStyle_calendar5'] = 'Define el indicador de color para los eventos del calendario 5';\r
+localizedText['settings.name.cssStyle_calendar6'] = '.calendar6';\r
+localizedText['settings.info.cssStyle_calendar6'] = 'Define el indicador de color para los eventos del calendario 6';\r
+localizedText['settings.cssStyle_prefix'] = 'CSS Style for ';\r
+\r
+localizedText['update.current'] = 'Versión instalada: ';\r
+localizedText['update.checking'] = 'Comprobando actualización...';\r
+localizedText['update.download'] = 'Nueva versión: %1<br /><a href=\"%2\">descargar</a>';\r
+localizedText['update.nonewversion'] = 'Sin actualizaciones disponibles';\r
+localizedText['update.error'] = 'Error de conexión: ';\r
+localizedText['update.checknow'] = 'Comprobar ahora';\r
index ab8d34e0bb8c93450caac6b4549442fda803d9d3..2255b1c524fb075b239675bb6de2cd69c4a17ff3 100644 (file)
@@ -76,8 +76,8 @@ localizedText['settings.name.showCalendarIndicator'] = 'Show Calendar Indicator'
 localizedText['settings.info.showCalendarIndicator'] = 'if multiple calendars are used, a small color bar will be shown to indicate to which calendar an event belongs';\r
 localizedText['settings.name.excludedCalendars'] = 'Included Calendars';\r
 localizedText['settings.info.excludedCalendars'] = 'here you can specify which calendars should be displayed if multiple calendars have been defined';\r
-localizedText['settings.name.enableLogging'] = 'Enable Logging';
-localizedText['settings.info.enableLogging'] = 'write debug information to C:\\Data\\jslog_widget.log. Note: Javascript error logging to file needs to be enabled in your browser settings for this.';
+localizedText['settings.name.enableLogging'] = 'Enable Logging';\r
+localizedText['settings.info.enableLogging'] = 'write debug information to C:\\Data\\jslog_widget.log. Note: Javascript error logging to file needs to be enabled in your browser settings for this.';\r
 localizedText['settings.name.cssStyle_background'] = '.background';\r
 localizedText['settings.info.cssStyle_background'] = 'Definit le style CSS du fond du widget. Si vous voulez mettre une image de fond, cocher "Utiliser Background Image". Pour le th&egrave;me par d&eacute;faut, noir, gris, and bleu, les codes sont #292029, #e7dfe7, #009aef';\r
 localizedText['settings.name.cssStyle_backgroundFullscreen'] = '.backgroundFullscreen';\r
index 3bc8f369ad7230488387562cd0a35b2978e40936..10e23093fe9bf031da13f6d5115dbd7c34d07a1a 100644 (file)
@@ -7,23 +7,23 @@
 \r
 <style type="text/css">\r
 /* The following classes can be modified by widget settings */\r
-.background { color:#ffffff; background-color:#000000 }
-.backgroundFullscreen { color:#ffffff; background-color:#000000 }
+.background { color:#ffffff; background-color:#000000 }\r
+.backgroundFullscreen { color:#ffffff; background-color:#000000 }\r
 .weekDay { }\r
 .date { }\r
-.today { color:#ff0000 }
-.tomorrow { color:#0000ff }
+.today { color:#ff0000 }\r
+.tomorrow { color:#0000ff }\r
 .time { }\r
-.now { color:#ff00ff }
+.now { color:#ff00ff }\r
 .description { }\r
-.icon { width:15px; height:15px }
-.overdue { color:#ffff00 }
-.calendar1 { background-color:#0757cf }
-.calendar2 { background-color:#579f37 }
-.calendar3 { background-color:#ff9f07 }
-.calendar4 { background-color:#af8fef }
-.calendar5 { background-color:#57afbf }
-.calendar6 { background-color:#9fdf57 }
+.icon { width:15px; height:15px }\r
+.overdue { color:#ffff00 }\r
+.calendar1 { background-color:#0757cf }\r
+.calendar2 { background-color:#579f37 }\r
+.calendar3 { background-color:#ff9f07 }\r
+.calendar4 { background-color:#af8fef }\r
+.calendar5 { background-color:#57afbf }\r
+.calendar6 { background-color:#9fdf57 }\r
 </style>\r
 \r
 <script type="text/javascript" src="localizedTextStrings.js" charset="utf-8" />\r
@@ -57,7 +57,7 @@ var config = {
        hideWidgetOnCalendarOpen: { Type: 'Bool', Default: false, Value: false,},\r
        showCalendarIndicator: { Type: 'Bool', Default: true, Value: true,},\r
        excludedCalendars: { Type: 'Array', Default: [], Value: [],},\r
-       enableLogging: { Type: 'Bool', Default: false, Value: false,},
+       enableLogging: { Type: 'Bool', Default: false, Value: false,},\r
        cssStyle_background: { Type: 'String', Default: 'color:#ffffff; background-color:#000000', Value: 'color:#ffffff; background-color:#000000',},\r
        cssStyle_backgroundFullscreen: { Type: 'String', Default: 'color:#ffffff; background-color:#000000', Value: 'color:#ffffff; background-color:#000000',},\r
        cssStyle_weekDay: { Type: 'String', Default: '', Value: '',},\r
@@ -83,7 +83,7 @@ var config = {
 // Nothing of interest from here on...\r
 //-------------------------------------------------------\r
 var panelNum = 0; // use 1 for second panel\r
-var version = "1.32";
+var version = "1.32";\r
 var versionURL = "http://comingnext.sourceforge.net/version.xml";\r
 var calendarService = null;\r
 var cacheEntriesHtml = [];\r
@@ -99,11 +99,11 @@ var calendarList = [];
 var calendarColors = [];\r
 var updateTimer = null;\r
 var screenRotationTimer = null;\r
-var lastUpdateTime = now; // last time we updated the display
-var lastReloadTime = null; // last time we fetched calendar data
-var reloadInterval = 6 * 60 * 60 * 1000; // = 6 hours; time interval for reloading calendar data
+var lastUpdateTime = now; // last time we updated the display\r
+var lastReloadTime = null; // last time we fetched calendar data\r
+var reloadInterval = 6 * 60 * 60 * 1000; // = 6 hours; time interval for reloading calendar data\r
 var errorOccured = false;\r
-var entryLists = null; // stores all fetched calendar entries until data is refreshed
+var entryLists = null; // stores all fetched calendar entries until data is refreshed\r
 \r
 // vars for daylight saving time\r
 var summertime = false; // true, if current date is in summer, false if in winter\r
@@ -129,7 +129,7 @@ function isLeapYear( year ) {
        else\r
                return false;\r
 }\r
-
+\r
 function calcLeapYear(year, days)\r
 {\r
        if (isLeapYear(year))\r
@@ -290,7 +290,7 @@ function collectLocales()
                                month = tmp;\r
                        }\r
 \r
-                       log(entry.StartTime + ' -> ' + month + ' ' + counter);
+                       log(entry.StartTime + ' -> ' + month + ' ' + counter);\r
                        ids[counter] = entry.id;\r
                        months_translated[month] = counter + 1;\r
                        counter++;\r
@@ -299,7 +299,7 @@ function collectLocales()
                error(e + ', line ' + e.line);\r
                return;\r
        }\r
-       log(ids);
+       log(ids);\r
        try {\r
                var criteria = new Object();\r
                criteria.Type = "CalendarEntry";\r
@@ -363,14 +363,14 @@ function cancelNotification()
 \r
 function callback(transId, eventCode, result)\r
 {\r
-       log("callback(): panelNum: " + panelNum + "  transId: " + transId + "  eventCode: " + eventCode + " result.ErrorCode: " + result.ErrorCode);
-       lastReloadTime = null; // force calendar data reload on next update
+       log("callback(): panelNum: " + panelNum + "  transId: " + transId + "  eventCode: " + eventCode + " result.ErrorCode: " + result.ErrorCode);\r
+       lastReloadTime = null; // force calendar data reload on next update\r
        updateData();\r
 }\r
 \r
 function settingsCallback(transId, eventCode, result)\r
 {\r
-       log("settingsCallback(): panelNum: " + panelNum + "  transId: " + transId + "  eventCode: " + eventCode + " result.ErrorCode: " + result.ErrorCode);
+       log("settingsCallback(): panelNum: " + panelNum + "  transId: " + transId + "  eventCode: " + eventCode + " result.ErrorCode: " + result.ErrorCode);\r
        loadSettings();\r
 }\r
 \r
@@ -438,11 +438,11 @@ function parseDate(dateString)
                // work around bug in Nokias calendar api resulting in dates within a different DST to be off by 1 hour\r
                if (summertime && !dateSummerTime) {\r
                        result = new Date(result.getTime() - 1000 * 60 * 60 * config['daylightSavingOffset'].Value); // -1 hour\r
-                       log('parseDate(): fixing time -1h: ' + result);
+                       log('parseDate(): fixing time -1h: ' + result);\r
                }\r
                else if (!summertime && dateSummerTime) {\r
                        result = new Date(result.getTime() + 1000 * 60 * 60 * config['daylightSavingOffset'].Value); // +1 hour\r
-                       log('parseDate(): fixing time +1h: ' + result);
+                       log('parseDate(): fixing time +1h: ' + result);\r
                }\r
        }\r
 \r
@@ -519,7 +519,7 @@ function formatTime(date)
 \r
 function updateData()\r
 {\r
-       log('updateData()');
+       log('updateData()');\r
        if (errorOccured) {\r
                return;\r
        }\r
@@ -531,71 +531,71 @@ function updateData()
                updateCalendarColors();\r
                cancelNotification();\r
                requestNotification();\r
-               lastReloadTime = null; // force calendar data reload on this update
+               lastReloadTime = null; // force calendar data reload on this update\r
        }\r
 \r
-       now = new Date();
-       
-       // only reload calendar data every 6 hours, visual updates occure more often
-       if (!lastReloadTime || now.getTime() - lastReloadTime.getTime() > reloadInterval) {
-               log('updateData(): reloading calendar data');
-               try {
-                       // meetings have time
-                       // note: anniveraries have a start time of 12:00am. So since we want to include them, we have to query the whole day and check if events have passed later
-                       summertime = isSummertime(now); // cache summer time info for today
-                       var meetingList = [];
+       now = new Date();\r
+       \r
+       // only reload calendar data every 6 hours, visual updates occure more often\r
+       if (!lastReloadTime || now.getTime() - lastReloadTime.getTime() > reloadInterval) {\r
+               log('updateData(): reloading calendar data');\r
+               try {\r
+                       // meetings have time\r
+                       // note: anniveraries have a start time of 12:00am. So since we want to include them, we have to query the whole day and check if events have passed later\r
+                       summertime = isSummertime(now); // cache summer time info for today\r
+                       var meetingList = [];\r
                        for(var i=0; i < calendarList.length; i++) {\r
                                // ignore excluded calendars\r
                                if (config['excludedCalendars'].Value.indexOf(calendarList[i]) != -1)\r
                                        continue;\r
-                               var meetingListFiltering = {
+                               var meetingListFiltering = {\r
                                        Type:'CalendarEntry',\r
                                        Filter:{\r
                                                CalendarName: calendarList[i],\r
-                                               StartRange: (new Date(now.getFullYear(), now.getMonth(), now.getDate(), 0, 0, 0)),
-                                               EndRange: (new Date(now.getFullYear(), now.getMonth() + config['monthRange'].Value, now.getDate(), 0, 0, 0))
-                                       }
-                               }
-                               var meetingResult = calendarService.IDataSource.GetList(meetingListFiltering);
-                               if (meetingResult.ErrorCode != 0)
-                                       throw("Error fetching calendar data: " + meetingResult.ErrorCode + ': ' + meetingResult.ErrorMessage);
-                               var list = meetingResult.ReturnValue;
-                               meetingList = meetingList.concat(listToArray(list, calendarList[i]));
-                       }
-                       log("updateData(): meetingList.sort()");
-                       meetingList.sort(sortCalendarEntries);
-
-                       // todos don't, they start on 00:00 hrs., but should be visible anyway
-                       // this will generate a list of passed todos. We have to check if they have been marked as "done" yet
-                       if (config['includeTodos'].Value) {
-                               var todayTodoList = [];
-                               for(var i=0; i < calendarList.length; i++) {
-                                       // ignore excluded calendars
-                                       if (config['excludedCalendars'].Value.indexOf(calendarList[i]) != -1)
-                                               continue;
-                                       var todayTodoListFiltering = {
-                                               Type:'CalendarEntry',
-                                               Filter:{
-                                                       CalendarName: calendarList[i],
-                                                       Type: 'ToDo',
-                                                       StartRange: (new Date(now.getFullYear() - 1, now.getMonth(), now.getDate(), 0, 0, 0)),
-                                                       EndRange: (new Date(now.getFullYear(), now.getMonth(), now.getDate(), 0, 0, 1))
-                                               }
+                                               StartRange: (new Date(now.getFullYear(), now.getMonth(), now.getDate(), 0, 0, 0)),\r
+                                               EndRange: (new Date(now.getFullYear(), now.getMonth() + config['monthRange'].Value, now.getDate(), 0, 0, 0))\r
+                                       }\r
+                               }\r
+                               var meetingResult = calendarService.IDataSource.GetList(meetingListFiltering);\r
+                               if (meetingResult.ErrorCode != 0)\r
+                                       throw("Error fetching calendar data: " + meetingResult.ErrorCode + ': ' + meetingResult.ErrorMessage);\r
+                               var list = meetingResult.ReturnValue;\r
+                               meetingList = meetingList.concat(listToArray(list, calendarList[i]));\r
+                       }\r
+                       log("updateData(): meetingList.sort()");\r
+                       meetingList.sort(sortCalendarEntries);\r
+\r
+                       // todos don't, they start on 00:00 hrs., but should be visible anyway\r
+                       // this will generate a list of passed todos. We have to check if they have been marked as "done" yet\r
+                       if (config['includeTodos'].Value) {\r
+                               var todayTodoList = [];\r
+                               for(var i=0; i < calendarList.length; i++) {\r
+                                       // ignore excluded calendars\r
+                                       if (config['excludedCalendars'].Value.indexOf(calendarList[i]) != -1)\r
+                                               continue;\r
+                                       var todayTodoListFiltering = {\r
+                                               Type:'CalendarEntry',\r
+                                               Filter:{\r
+                                                       CalendarName: calendarList[i],\r
+                                                       Type: 'ToDo',\r
+                                                       StartRange: (new Date(now.getFullYear() - 1, now.getMonth(), now.getDate(), 0, 0, 0)),\r
+                                                       EndRange: (new Date(now.getFullYear(), now.getMonth(), now.getDate(), 0, 0, 1))\r
+                                               }\r
                                        }\r
-                                       var todayTodoResult = calendarService.IDataSource.GetList(todayTodoListFiltering);
-                                       var list = todayTodoResult.ReturnValue;
-                                       todayTodoList = todayTodoList.concat(listToArray(list, calendarList[i]));
+                                       var todayTodoResult = calendarService.IDataSource.GetList(todayTodoListFiltering);\r
+                                       var list = todayTodoResult.ReturnValue;\r
+                                       todayTodoList = todayTodoList.concat(listToArray(list, calendarList[i]));\r
                                }\r
-                               log("updateData(): todayTodoList.sort()");
-                               todayTodoList.sort(sortCalendarEntries);
-                               entryLists = [todayTodoList, meetingList];
-                       } else {
-                               entryLists = [meetingList];
+                               log("updateData(): todayTodoList.sort()");\r
+                               todayTodoList.sort(sortCalendarEntries);\r
+                               entryLists = [todayTodoList, meetingList];\r
+                       } else {\r
+                               entryLists = [meetingList];\r
                        }\r
-                       lastReloadTime = new Date();
-               } catch(e) {
-                       error('loading Calendar items list:' + e + ', line ' + e.line);
-                       return;
+                       lastReloadTime = new Date();\r
+               } catch(e) {\r
+                       error('loading Calendar items list:' + e + ', line ' + e.line);\r
+                       return;\r
                }\r
        }\r
 \r
@@ -629,17 +629,17 @@ function updateData()
                else\r
                        max = 30; // we can display a lot more events in fullscreen mode\r
 \r
-               if (config['enableLogging'].Value) {
-                       var listinfo = "";
-                       for (var i=0; i < entryLists.length; i++) {
-                               listinfo = listinfo + " " + entryLists[i].length;
-                               var entrieslist = "";
-                               for (var j=0; j < entryLists[i].length; j++) {
-                                       entrieslist += entryLists[i][j].Summary + ", ";
-                               }
-                               log("updateData(): entrieslist: " + entrieslist);
+               if (config['enableLogging'].Value) {\r
+                       var listinfo = "";\r
+                       for (var i=0; i < entryLists.length; i++) {\r
+                               listinfo = listinfo + " " + entryLists[i].length;\r
+                               var entrieslist = "";\r
+                               for (var j=0; j < entryLists[i].length; j++) {\r
+                                       entrieslist += entryLists[i][j].Summary + ", ";\r
+                               }\r
+                               log("updateData(): entrieslist: " + entrieslist);\r
                        }\r
-                       log("updateData(): inner loop, " + entryLists.length + " lists, [" + listinfo + "] entries");
+                       log("updateData(): inner loop, " + entryLists.length + " lists, [" + listinfo + "] entries");\r
                }\r
                \r
                // the first outer loop iteration is for passed ToDos, the second loop is for all upcomming events (may also include ToDos)\r
@@ -655,18 +655,18 @@ function updateData()
                                                entryInfo += entryFields[k] + "=" + entry[entryFields[k]] + ",";\r
                                        }\r
                                }\r
-                               log(entryInfo);
+                               log(entryInfo);\r
 \r
                                // we don't want ToDos when includeTodos == false or when they are completed\r
                                if (entry.Type == 'ToDo' && (entry.Status == "TodoCompleted" || !config['includeTodos'].Value)) {\r
-                                       log('skipping ' + entry.id );
+                                       log('skipping ' + entry.id );\r
                                        counter--;\r
                                        continue;\r
                                }\r
 \r
                                // make sure that we don't include an event twice (useful for ToDos that might come up twice)\r
                                if (eventIds[entry.id] == 1 && entry.Type == 'ToDo') {\r
-                                       log('skipped (already included) ' + entry.id);
+                                       log('skipped (already included) ' + entry.id);\r
                                        counter--;\r
                                        continue;\r
                                } else\r
@@ -689,15 +689,15 @@ function updateData()
 \r
                                // Convert date/time string to Date object\r
                                var date = parseDate(entryDate);\r
-                               log('date: ' + date);
+                               log('date: ' + date);\r
                                var endDate = ((entryEndTime == null) ? null : parseDate(entryEndTime));\r
-                               log('endDate: ' + endDate);
+                               log('endDate: ' + endDate);\r
 \r
                                // check if meeting event has already passed\r
                                if (entry.Type == 'Meeting') {\r
                                        var compareTime = ((endDate == null) ? date.getTime() : endDate.getTime());\r
                                        if (now.getTime() > compareTime) {\r
-                                               log('skipping Meeting (already passed) ' + entry.id);
+                                               log('skipping Meeting (already passed) ' + entry.id);\r
                                                counter--;\r
                                                eventIds[entry.id] = 0;\r
                                                continue;\r
@@ -708,7 +708,7 @@ function updateData()
                                if (entry.Type == 'Anniversary') {\r
                                        var tmp = new Date(now.getFullYear(), now.getMonth(), now.getDate(), 0,0,0);\r
                                        if (date.getTime() < tmp.getTime()) {\r
-                                               log('skipping Anniversary (already passed) ' + entry.id);
+                                               log('skipping Anniversary (already passed) ' + entry.id);\r
                                                counter--;\r
                                                eventIds[entry.id] = 0;\r
                                                continue;\r
@@ -718,9 +718,9 @@ function updateData()
                                // fix DayEvents end time. End times are off by 1 Second. It's possible that the event has already passed\r
                                if (entry.Type == 'DayEvent' && endDate != null) {\r
                                        endDate.setMinutes(endDate.getMinutes() - 1);\r
-                                       log('fixing DayEvent endDate: ' + endDate);
+                                       log('fixing DayEvent endDate: ' + endDate);\r
                                        if (now.getTime() > endDate.getTime()) {\r
-                                               log('event already passed ' + entry.id);
+                                               log('event already passed ' + entry.id);\r
                                                counter--;\r
                                                eventIds[entry.id] = 0;\r
                                                continue;\r
@@ -732,13 +732,13 @@ function updateData()
                                        // check if we are between start and endtime\r
                                        if ((date.getTime() < now.getTime()) && (now.getTime() < endDate.getTime())) {\r
                                                date = now; // change appointment date/time to now\r
-                                               log('event is currently taking place: ' + date);
+                                               log('event is currently taking place: ' + date);\r
                                        }\r
                                }\r
 \r
                                // skip events for the first panel in case this is the second one and we're not in fullscreen mode\r
                                if (mode == 0 && panelNum > 0 && counter < panelNum * config['eventsPerWidget'].Value + 1) {\r
-                                       log('skipping (already in first widget) ' + entry.id);
+                                       log('skipping (already in first widget) ' + entry.id);\r
                                        continue;\r
                                }\r
                                \r
@@ -812,11 +812,11 @@ function updateData()
        }\r
 }\r
 \r
-// called by handleOnShow() and onResize events
+// called by handleOnShow() and onResize events\r
 function updateScreen()\r
 {\r
-       log('updateScreen()');
-
+       log('updateScreen()');\r
+\r
        // check if opening fullscreen\r
        if( window.innerHeight > 91 && mode == 0) {\r
                mode = 1;\r
@@ -831,18 +831,18 @@ function updateScreen()
        }\r
        \r
        if (mode == 0)\r
-               updateHomescreen(); // check for screen rotation
+               updateHomescreen(); // check for screen rotation\r
        else if (mode == 1)\r
                updateFullscreen();\r
-}
-
-function handleOnShow()
-{
-       updateScreen();
-
+}\r
+\r
+function handleOnShow()\r
+{\r
+       updateScreen();\r
+\r
        var time = new Date();\r
        if (time.getTime() - lastUpdateTime.getTime() > config['updateDataInterval'].Value * 60 * 1000) {\r
-               log('updateScreen(): force updateData() because last update was too long ago (' + (time.getTime() - lastUpdateTime.getTime()) / 1000 + 's)');
+               log('updateScreen(): force updateData() because last update was too long ago (' + (time.getTime() - lastUpdateTime.getTime()) / 1000 + 's)');\r
                clearUpdateTimer();\r
                updateData();\r
                setUpdateTimer(); // reinitialize update timer\r
@@ -863,7 +863,7 @@ function launchCalendar()
 \r
 function init()\r
 {\r
-       log('New widget instance starting up...');
+       log('New widget instance starting up...');\r
        \r
        try {\r
                // call calendar service\r
@@ -890,25 +890,25 @@ function init()
        else {\r
                mode = 1;\r
        }\r
-       log("init(): updateScreen()");
+       log("init(): updateScreen()");\r
        updateScreen();\r
        if (config['useBackgroundImage'].Value)\r
                // check for screen rotation every 1 secs\r
-               screenRotationTimer = window.setInterval('checkOrientation()', 1000 * 1);
-       
-       // call updateScreen() when widget changes from background to forground
-       window.widget.onshow = handleOnShow;
-
-       log("init(): finished...");
+               screenRotationTimer = window.setInterval('checkOrientation()', 1000 * 1);\r
+       \r
+       // call updateScreen() when widget changes from background to forground\r
+       window.widget.onshow = handleOnShow;\r
+\r
+       log("init(): finished...");\r
+}\r
+\r
+function checkOrientation()\r
+{\r
+       //updateScreen();\r
+       if (mode == 0)\r
+               updateHomescreen(); // check for screen rotation\r
 }\r
 \r
-function checkOrientation()
-{
-       //updateScreen();
-       if (mode == 0)
-               updateHomescreen(); // check for screen rotation
-}
-
 function setUpdateTimer()\r
 {\r
        updateTimer = window.setInterval('updateTimerCallback()', 1000 * 60 * config['updateDataInterval'].Value);\r
@@ -921,7 +921,7 @@ function clearUpdateTimer()
 \r
 function updateTimerCallback()\r
 {\r
-       log("updateTimerCallback()");
+       log("updateTimerCallback()");\r
        updateData();\r
 }\r
 \r
@@ -962,16 +962,16 @@ function showSettings()
                                config[key].Value = document.forms[0].elements["settings." + key].value;\r
                        else if (config[key].Type == 'Int') {\r
                                config[key].Value = parseInt(document.forms[0].elements["settings." + key].value);\r
-                               if (config[key].Value < 0 || isNaN(config[key].Value))
+                               if (config[key].Value < 0 || isNaN(config[key].Value))\r
                                        config[key].Value = config[key].Default;\r
                        }\r
                        else if (config[key].Type == 'Bool')\r
                                config[key].Value = document.forms[0].elements["settings." + key].checked;\r
-                       else if (config[key].Type == 'UID') {
+                       else if (config[key].Type == 'UID') {\r
                                config[key].Value = parseInt(document.forms[0].elements["settings." + key].value);\r
-                               if (isNaN(config[key].Value))
-                                       config[key].Value = config[key].Default;
-                       }
+                               if (isNaN(config[key].Value))\r
+                                       config[key].Value = config[key].Default;\r
+                       }\r
                        else if (config[key].Type == 'Enum') {\r
                                config[key].Value = document.forms[0].elements["settings." + key].value;\r
                                if (config[key].ValidValues.indexOf(config[key].Value) == -1)\r
@@ -1081,7 +1081,7 @@ function getSettingsCalEntryId()
                var entry = list.getNext();\r
                if (entry != undefined) {\r
                        settingsCalEntryId = entry.LocalId;\r
-                       log("settingsCalEntryId=" + settingsCalEntryId);
+                       log("settingsCalEntryId=" + settingsCalEntryId);\r
                }\r
                else { // create settings item\r
                        var item = new Object();\r
@@ -1128,7 +1128,7 @@ function loadSettings()
        }\r
        var entry = result.ReturnValue.getNext();\r
        if (entry != undefined) {\r
-               log("Loading Settings...");
+               log("Loading Settings...");\r
                // only reload settings if they chanced since the last reload\r
                if (settingsCache != entry.Summary)\r
                {\r
@@ -1140,22 +1140,22 @@ function loadSettings()
                                var key = pair[0];\r
                                var value = pair[1];\r
                                log('stringlist: ' + key + '=\'' + value + '\'');\r
-                               if (config[key].Type == 'Int') {
+                               if (config[key].Type == 'Int') {\r
                                        config[key].Value = Number(value);\r
-                                       if (isNaN(config[key].Value))
-                                               config[key].Value = config[key].Default;
-                               }
+                                       if (isNaN(config[key].Value))\r
+                                               config[key].Value = config[key].Default;\r
+                               }\r
                                else if (config[key].Type == 'String')\r
                                        config[key].Value = value;\r
                                else if (config[key].Type == 'Bool')\r
                                        config[key].Value = (value == 'true')\r
                                else if (config[key].Type == 'Enum')\r
                                        config[key].Value = value;\r
-                               else if (config[key].Type == 'UID') {
+                               else if (config[key].Type == 'UID') {\r
                                        config[key].Value = Number(value);\r
-                                       if (isNaN(config[key].Value))
-                                               config[key].Value = config[key].Default;
-                               }
+                                       if (isNaN(config[key].Value))\r
+                                               config[key].Value = config[key].Default;\r
+                               }\r
                                else if (config[key].Type == 'Array') {\r
                                        config[key].Value = value.split("^");\r
                                        if (config[key].Value.length == 1 && config[key].Value[0] == "") {\r
@@ -1167,7 +1167,7 @@ function loadSettings()
                        updateCssClasses();\r
                }\r
                else {\r
-                       log("Settings already cached and did not change");
+                       log("Settings already cached and did not change");\r
                }\r
        }\r
        else {\r
@@ -1204,7 +1204,7 @@ function saveSettings()
        criteria.Type = "CalendarEntry";\r
        criteria.Item = item;\r
 \r
-       log("Saving settings to calendar entry: " + item.Summary);
+       log("Saving settings to calendar entry: " + item.Summary);\r
        try {\r
                var result = calendarService.IDataSource.Add(criteria);\r
                if (result.ErrorCode)\r
@@ -1213,7 +1213,7 @@ function saveSettings()
                error("saveSettings: " + e + ', line ' + e.line);\r
        }\r
        \r
-       lastReloadTime = null; // force calendar data reload on next update
+       lastReloadTime = null; // force calendar data reload on next update\r
        clearUpdateTimer();\r
        setUpdateTimer();\r
 }\r
@@ -1262,7 +1262,7 @@ function updateFullscreen()
 \r
 function showFullscreen()\r
 {\r
-       log("showFullscreen()");
+       log("showFullscreen()");\r
        hideViews();\r
        document.getElementById("fullscreenView").style.display = "block";\r
        document.getElementById('body').className = "backgroundFullscreen";\r
@@ -1310,7 +1310,7 @@ function updateHomescreen()
 \r
 function showHomescreen()\r
 {\r
-       log("showHomescreen()");
+       log("showHomescreen()");\r
        hideViews();\r
        document.getElementById("homescreenView").style.display = "block";\r
        document.getElementById('body').className = "background";\r
@@ -1416,7 +1416,7 @@ function listCalendars()
                while (( item = calendarListIterator.getNext()) != undefined ) {\r
                        calendars[count++] = item;\r
                }\r
-               log("Available Calendars: " + calendars.join(", "));
+               log("Available Calendars: " + calendars.join(", "));\r
                return calendars;\r
        } catch(e) {\r
                error('listing calendars:' + e + ', line ' + e.line);\r
@@ -1443,14 +1443,14 @@ function listToArray(list, calendarName)
                array.push(itemCopy);\r
                txt += array[array.length - 1].Summary + ", ";\r
        }\r
-       log("listToArray(): " + txt);
+       log("listToArray(): " + txt);\r
        return array;\r
 }\r
 \r
 function sortCalendarEntries(a, b)\r
 {\r
        var atime, btime;\r
-       log("sortCalendarEntries(" + a.Summary + "," + b.Summary + ")");
+       log("sortCalendarEntries(" + a.Summary + "," + b.Summary + ")");\r
        \r
        if (a.InstanceStartTime != null) {\r
                atime = a.InstanceStartTime;\r
@@ -1545,19 +1545,19 @@ function updateCalendarColors()
        var maxColors = 6;\r
        calendarColors = [];\r
        if (calendarList.length > maxColors) {\r
-               log("updateCalendarColors(): Warning: more calendars than available indicator colors");
+               log("updateCalendarColors(): Warning: more calendars than available indicator colors");\r
        }\r
        for(var i=0; i < calendarList.length; i++) {\r
                calendarColors[calendarList[i]] = (i % maxColors) + 1;\r
        }\r
 }\r
 \r
-function log(message) {
-       if (config['enableLogging'].Value) {
-               console.info(message);
-       }
-}
-
+function log(message) {\r
+       if (config['enableLogging'].Value) {\r
+               console.info(message);\r
+       }\r
+}\r
+\r
 </script>\r
 \r
 <style type="text/css">\r
@@ -1578,7 +1578,7 @@ hr { color:#ffffff; background-color:#ffffff; height:1px; text-align:left; borde
 \r
 </head>\r
 \r
-<body onload="javascript:setTimeout('init()', 10)" onresize="javascript:updateScreen()" id="body" class="background">
+<body onload="javascript:setTimeout('init()', 10)" onresize="javascript:updateScreen()" id="body" class="background">\r
 <div id="homescreenView">\r
        <div id="calendarList">loading...</div>\r
 </div>\r
index 1ba6cb9420fd229fee90457ef2ab9d96e0e9948d..bffaca7607ab3b16ccbd55a159bde6446e567b2e 100644 (file)
@@ -76,8 +76,8 @@ localizedText['settings.name.showCalendarIndicator'] = 'Mostra Indicatore Calend
 localizedText['settings.info.showCalendarIndicator'] = 'se vengono usati calendari multipli, una piccola barra colorata viene mostrata per indicare a quale calendario appartiene l\'evento';\r
 localizedText['settings.name.excludedCalendars'] = 'Includi Calendari';\r
 localizedText['settings.info.excludedCalendars'] = 'qui puoi indicare quale calendario deve essere mostrato se sono impostati calendari multipli';\r
-localizedText['settings.name.enableLogging'] = 'Enable Logging';
-localizedText['settings.info.enableLogging'] = 'write debug information to C:\\Data\\jslog_widget.log. Note: Javascript error logging to file needs to be enabled in your browser settings for this.';
+localizedText['settings.name.enableLogging'] = 'Enable Logging';\r
+localizedText['settings.info.enableLogging'] = 'write debug information to C:\\Data\\jslog_widget.log. Note: Javascript error logging to file needs to be enabled in your browser settings for this.';\r
 localizedText['settings.name.cssStyle_background'] = '.background';\r
 localizedText['settings.info.cssStyle_background'] = 'Definisce il background del widget. Se vuoi usare una immagine come background imposta useBackgroundImage = true below. For the default themes, black, gray, and light blue, codes are #292029, #e7dfe7, #009aef';\r
 localizedText['settings.name.cssStyle_backgroundFullscreen'] = '.backgroundFullscreen';\r
index 15b72983d3efbac695fc3bfbe49579a56dfa3e38..68bb4f4049fbffcdc6617ed7d813fd95d1fdca1c 100644 (file)
@@ -76,8 +76,8 @@ localizedText['settings.name.showCalendarIndicator'] = 'Show Calendar Indicator'
 localizedText['settings.info.showCalendarIndicator'] = 'if multiple calendars are used, a small color bar will be shown to indicate to which calendar an event belongs';\r
 localizedText['settings.name.excludedCalendars'] = 'Included Calendars';\r
 localizedText['settings.info.excludedCalendars'] = 'here you can specify which calendars should be displayed if multiple calendars have been defined';\r
-localizedText['settings.name.enableLogging'] = 'Enable Logging';
-localizedText['settings.info.enableLogging'] = 'write debug information to C:\\Data\\jslog_widget.log. Note: Javascript error logging to file needs to be enabled in your browser settings for this.';
+localizedText['settings.name.enableLogging'] = 'Enable Logging';\r
+localizedText['settings.info.enableLogging'] = 'write debug information to C:\\Data\\jslog_widget.log. Note: Javascript error logging to file needs to be enabled in your browser settings for this.';\r
 localizedText['settings.name.cssStyle_background'] = '.background';\r
 localizedText['settings.info.cssStyle_background'] = 'Defines the background of the widget. If you want to use a background image, set useBackgroundImage = true below. For the default themes, black, gray, and light blue, codes are #292029, #e7dfe7, #009aef';\r
 localizedText['settings.name.cssStyle_backgroundFullscreen'] = '.backgroundFullscreen';\r
index 1db44c68da3ea96e6aaddceedf4462d450cb9c31..0f92a22945ac8388ee4d41d3c6d20371245c5560 100644 (file)
@@ -76,8 +76,8 @@ localizedText['settings.name.showCalendarIndicator'] = 'Show Calendar Indicator'
 localizedText['settings.info.showCalendarIndicator'] = 'if multiple calendars are used, a small color bar will be shown to indicate to which calendar an event belongs';\r
 localizedText['settings.name.excludedCalendars'] = 'Included Calendars';\r
 localizedText['settings.info.excludedCalendars'] = 'here you can specify which calendars should be displayed if multiple calendars have been defined';\r
-localizedText['settings.name.enableLogging'] = 'Enable Logging';
-localizedText['settings.info.enableLogging'] = 'write debug information to C:\\Data\\jslog_widget.log. Note: Javascript error logging to file needs to be enabled in your browser settings for this.';
+localizedText['settings.name.enableLogging'] = 'Enable Logging';\r
+localizedText['settings.info.enableLogging'] = 'write debug information to C:\\Data\\jslog_widget.log. Note: Javascript error logging to file needs to be enabled in your browser settings for this.';\r
 localizedText['settings.name.cssStyle_background'] = '.background';\r
 localizedText['settings.info.cssStyle_background'] = 'Define o fundo de tela do widget. Se você quer usar uma imagem de fundo, ponha useBackgroundImage = true abaixo. Para temas padrão, preto, cinza, e azul claro, os códigos são #292029, #e7dfe7, #009aef';\r
 localizedText['settings.name.cssStyle_backgroundFullscreen'] = '.backgroundFullscreen';\r
index 9640508963d8a82c1133c7809b79ae1b00555907..58ab4ad0fed68eb79aef80e2399c04501da84f7b 100644 (file)
@@ -76,8 +76,8 @@ localizedText['settings.name.showCalendarIndicator'] = 'Show Calendar Indicator'
 localizedText['settings.info.showCalendarIndicator'] = 'if multiple calendars are used, a small color bar will be shown to indicate to which calendar an event belongs';\r
 localizedText['settings.name.excludedCalendars'] = 'Included Calendars';\r
 localizedText['settings.info.excludedCalendars'] = 'here you can specify which calendars should be displayed if multiple calendars have been defined';\r
-localizedText['settings.name.enableLogging'] = 'Enable Logging';
-localizedText['settings.info.enableLogging'] = 'write debug information to C:\\Data\\jslog_widget.log. Note: Javascript error logging to file needs to be enabled in your browser settings for this.';
+localizedText['settings.name.enableLogging'] = 'Enable Logging';\r
+localizedText['settings.info.enableLogging'] = 'write debug information to C:\\Data\\jslog_widget.log. Note: Javascript error logging to file needs to be enabled in your browser settings for this.';\r
 localizedText['settings.name.cssStyle_background'] = '.background';\r
 localizedText['settings.info.cssStyle_background'] = 'Задает параметры фона виджета. Например коды цветов черный, серый, светлый -  #292029, #e7dfe7, #009aef';\r
 localizedText['settings.name.cssStyle_backgroundFullscreen'] = '.backgroundFullscreen';\r