]> code.delx.au - comingnext/commitdiff
added option to anonymize debug logfiles
authorMichael Prager <mail@michaelprager.de>
Sat, 2 Jun 2012 13:23:43 +0000 (15:23 +0200)
committerMichael Prager <mail@michaelprager.de>
Sat, 2 Jun 2012 13:23:43 +0000 (15:23 +0200)
13 files changed:
Readme.txt
comingNext/ca.lproj/localizedTextStrings.js
comingNext/cs.lproj/localizedTextStrings.js
comingNext/de.lproj/localizedTextStrings.js
comingNext/es.lproj/localizedTextStrings.js
comingNext/fi.lproj/localizedTextStrings.js
comingNext/fr.lproj/localizedTextStrings.js
comingNext/index.html
comingNext/it.lproj/localizedTextStrings.js
comingNext/localizedTextStrings.js
comingNext/pl.lproj/localizedTextStrings.js
comingNext/pt-BR.lproj/localizedTextStrings.js
comingNext/ru.lproj/localizedTextStrings.js

index 7c8fdc9e8260d3f22b9e6ba55279586f87e35e0d..da867bf8bc0ca5e77cf52d9f4870e706962c22ed 100644 (file)
@@ -302,3 +302,4 @@ Changelog:
   - fixed help button on settings page require double tap (bug no. 3302891)\r
   - added "show icons" option to enable users to hide icons if desired (bug no. 3521427)\r
   - added "font size" option to easily customize text size\r
+  - added option to anonymize debug logfiles\r
index 220bcc9ab4214467e639d8a22629df8fcdb2e26c..e4526012c0b994420f9d9a753e37402b14141f19 100644 (file)
@@ -83,6 +83,8 @@ localizedText['settings.name.excludedCalendars'] = 'Calendaris inclosos';
 localizedText['settings.info.excludedCalendars'] = 'aquí es poden especificar quins calendaris s\'han de mostrar si es fa servir més d\'ún';\r
 localizedText['settings.name.enableLogging'] = 'Habilitar Registre';\r
 localizedText['settings.info.enableLogging'] = 'escriure informació de depuració a C:\\Data\\jslog_widget.log. Nota: Registre d\'errors de Javascript a fitxer ha d\'estar habilitat a la configuració del navegador.';\r
+localizedText['settings.name.anonymizeLogging'] = 'Anonymize Logging';\r
+localizedText['settings.info.anonymizeLogging'] = 'enable this to anonymize the display and logging of event summaries and locations. This allows users to create anonymized logs.';\r
 localizedText['settings.name.cssStyle_background'] = '.background';\r
 localizedText['settings.info.cssStyle_background'] = 'Defineix el fons del widget. Si voleu fer servir imatge, establiu useBackgroundImage = true. Per negre, gris i blau els codis són #292029, #e7dfe7, #009aef';\r
 localizedText['settings.name.cssStyle_backgroundFullscreen'] = '.backgroundFullscreen';\r
index a7f804c58c6ce4ebf545e7bbff4313620f659276..5793302e536813c33dd008cd2391c3339bf1dbfc 100644 (file)
@@ -83,6 +83,8 @@ localizedText['settings.name.excludedCalendars'] = 'Zahrnuté kalendáře';
 localizedText['settings.info.excludedCalendars'] = 'Zde můžete určit, které kalendáře se zobrazí v případě více definování více kalendářů';\r
 localizedText['settings.name.enableLogging'] = 'Povolit protokolování';\r
 localizedText['settings.info.enableLogging'] = 'zápis ladění informací na C:\\Data\\jslog_widget.log. Poznámka: Javascript chyba záznamu do souboru musí být aktivována v nastavení prohlížeče';\r
+localizedText['settings.name.anonymizeLogging'] = 'Anonymize Logging';\r
+localizedText['settings.info.anonymizeLogging'] = 'enable this to anonymize the display and logging of event summaries and locations. This allows users to create anonymized logs.';\r
 localizedText['settings.name.cssStyle_background'] = '. na pozadí';\r
 localizedText['settings.info.cssStyle_background'] = 'Definuje na pozadí widgetu. Chcete-li nastavit obrázek na pozadí, nastavit useBackgroundImage = true below. Pro výchozí téma, černá, šedá a světle modrá, kódy # 292029, # e7dfe7, # 009aef';\r
 localizedText['settings.name.cssStyle_backgroundFullscreen'] = '.pozadí Fullscreen';\r
index 1a8cf3c65bbbce07bb1b203f7a9e1482ecfab94d..3289e277de067b33b4a5fcd4ee9a6a4a4d8210c1 100644 (file)
@@ -83,6 +83,8 @@ localizedText['settings.name.excludedCalendars'] = 'Anzuzeigende Kalender';
 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';\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.anonymizeLogging'] = 'Anonymisiertes Logging';\r
+localizedText['settings.info.anonymizeLogging'] = 'diese Option einschalten, um die Anzeige und das Loggen von Ereignissen zu anonymisieren. Dies ermöglicht es Benutzern, anonymisierte Logdateien zu erstellen.';\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 d5b7547b6ffe45bf6992ce420241c696a1a8c62e..62b44342634dbc3ccbf17e019f1b49b7da4888f9 100644 (file)
@@ -83,6 +83,8 @@ 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';\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.anonymizeLogging'] = 'Anonymize Logging';\r
+localizedText['settings.info.anonymizeLogging'] = 'enable this to anonymize the display and logging of event summaries and locations. This allows users to create anonymized logs.';\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
index c02eaf447a7b0bbe76f06d6b93d88a4e984f4b8c..ee72c21d9d1c356587b1de8fa3a5782f54326f67 100644 (file)
@@ -83,6 +83,8 @@ localizedText['settings.name.excludedCalendars'] = 'Näytettävät kalenterit';
 localizedText['settings.info.excludedCalendars'] = 'Tästä voit valita, mitkä kalentereistasi haluat näkyvät widgetissä';\r
 localizedText['settings.name.enableLogging'] = 'Käytä lokia';\r
 localizedText['settings.info.enableLogging'] = 'Kirjoittaa ohjelman suorituksessa tapahtuneet virheet kansioon C:\\Data\\jslog_widget.log. Huomioi: Javascript virheiden kirjoitus lokiin täytyy olla päällä selaimestasi, jotta voit käyttää tätä.';\r
+localizedText['settings.name.anonymizeLogging'] = 'Anonymize Logging';\r
+localizedText['settings.info.anonymizeLogging'] = 'enable this to anonymize the display and logging of event summaries and locations. This allows users to create anonymized logs.';\r
 localizedText['settings.name.cssStyle_background'] = '.background';\r
 localizedText['settings.info.cssStyle_background'] = 'Määrittää widgetin taustan. Jos haluat käyttää taustakuvaa, aseta useBackgroundImage = true below. Oletusteemojen värikoodit, mustalle, harmaalle, and vaaleansiniselle, ovat #292029, #e7dfe7, #009aef';\r
 localizedText['settings.name.cssStyle_backgroundFullscreen'] = '.backgroundFullscreen';\r
index a0f0767f6781814ab9efdb001cc097060df4027e..dd1910d0d53435e2fff2820ca2cfa0140853320b 100644 (file)
@@ -83,6 +83,8 @@ localizedText['settings.name.excludedCalendars'] = 'Included Calendars';
 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';\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.anonymizeLogging'] = 'Anonymize Logging';\r
+localizedText['settings.info.anonymizeLogging'] = 'enable this to anonymize the display and logging of event summaries and locations. This allows users to create anonymized logs.';\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 5f845372823a4eb7173b99a7b7ce8e7ec362f2ab..abc25fd051ae52d4f80860abf259cc9280bc65fb 100644 (file)
@@ -60,6 +60,7 @@ var config = {
        showCalendarIndicator: { Type: 'Bool', Default: true, Value: true,},\r
        excludedCalendars: { Type: 'Array', Default: [], Value: [],},\r
        enableLogging: { Type: 'Bool', Default: false, Value: false,},\r
+       anonymizeLogging: { 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
@@ -1618,6 +1619,12 @@ function listToArray(list, calendarName)
                if (!itemCopy['CalendarName']) {\r
                        itemCopy['CalendarName'] = calendarName;\r
                }\r
+               if (config['anonymizeLogging'].Value && config['enableLogging'].Value) {\r
+                       if (itemCopy['Summary'])\r
+                               itemCopy['Summary'] = getHashForString(itemCopy['Summary']);\r
+                       if (itemCopy['Location'])\r
+                               itemCopy['Location'] = getHashForString(itemCopy['Location']);\r
+               }\r
                array.push(itemCopy);\r
                txt += array[array.length - 1].Summary + ", ";\r
        }\r
@@ -1752,6 +1759,17 @@ function getDefaultFontSize()
        return defaultFontSize;\r
 }\r
 \r
+function getHashForString(string)\r
+{\r
+       // cheap hashing, loosly based on Java's String.hashCode()\r
+       for (var hash = 0, i = 0; i < string.length; i++)\r
+               hash = (hash << 5) - hash + string.charCodeAt(i);\r
+       hash = hash & hash; // Convert to 32bit integer\r
+       if (hash < 0)\r
+               hash = -hash;\r
+       return hash.toString(16).toUpperCase();\r
+}\r
+\r
 </script>\r
 \r
 <style type="text/css">\r
index 6e0d8cbd17cde8812d35b4727366ca24368c44dd..0acab7b5f0cdbc9ee1411da7dd0955cc7c6a09eb 100644 (file)
@@ -83,6 +83,8 @@ localizedText['settings.name.excludedCalendars'] = 'Includi Calendari';
 localizedText['settings.info.excludedCalendars'] = 'qui puoi indicare quale calendario deve essere mostrato se sono impostati calendari multipli';\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.anonymizeLogging'] = 'Anonymize Logging';\r
+localizedText['settings.info.anonymizeLogging'] = 'enable this to anonymize the display and logging of event summaries and locations. This allows users to create anonymized logs.';\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 4175290383d97dc1bcc30ace7b854e9f6c71d182..227abd0e5ca4a5ae77f04b4ad95fc62079c0944f 100644 (file)
@@ -83,6 +83,8 @@ localizedText['settings.name.excludedCalendars'] = 'Included Calendars';
 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';\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.anonymizeLogging'] = 'Anonymize Logging';\r
+localizedText['settings.info.anonymizeLogging'] = 'enable this to anonymize the display and logging of event summaries and locations. This allows users to create anonymized logs.';\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 eb9d0dc8d4bb940795967ababc1327fd83cbe186..f0cc06e9533eba360b21179cdea48e1134bc1e2e 100644 (file)
@@ -83,6 +83,8 @@ localizedText['settings.name.excludedCalendars'] = 'Załączone kalendarze';
 localizedText['settings.info.excludedCalendars'] = 'Tutaj możesz ustawić które kalendarze powinny być wyświetlane jeśli będzie ustawionych parę kalendarzy';\r
 localizedText['settings.name.enableLogging'] = 'Włącz logowanie';\r
 localizedText['settings.info.enableLogging'] = 'Zapisz informację debug do C:\\Data\\jslog_widget.log. Uwaga: Logowanie błędów Java do pliku powinno być także włączone w twojej przeglądarce.';\r
+localizedText['settings.name.anonymizeLogging'] = 'Anonymize Logging';\r
+localizedText['settings.info.anonymizeLogging'] = 'enable this to anonymize the display and logging of event summaries and locations. This allows users to create anonymized logs.';\r
 localizedText['settings.name.cssStyle_background'] = '.background';\r
 localizedText['settings.info.cssStyle_background'] = 'Definiuje tło dla widgetu. Jeśli chcesz użyć obrazu tła, ustaw poniżej useBackgroundImage = tak. Dla domyślnych motywów, czarny, szary, i lekko niebieske tło: #292029, #e7dfe7, #009aef';\r
 localizedText['settings.name.cssStyle_backgroundFullscreen'] = '.backgroundFullscreen';\r
index 43c3953a056db7c101bafadcc96afa44c7ef84f0..eefdcdcb5e0db314a7e6fcd408aab5dd7932174a 100644 (file)
@@ -83,6 +83,8 @@ localizedText['settings.name.excludedCalendars'] = 'Included Calendars';
 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';\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.anonymizeLogging'] = 'Anonymize Logging';\r
+localizedText['settings.info.anonymizeLogging'] = 'enable this to anonymize the display and logging of event summaries and locations. This allows users to create anonymized logs.';\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 2bd9ade9d971df1993776a3242fe68bc1b37fa97..f5c39653238445db3d02cc17accc8d24ebc1a168 100644 (file)
@@ -83,6 +83,8 @@ localizedText['settings.name.excludedCalendars'] = 'Included Calendars';
 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';\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.anonymizeLogging'] = 'Anonymize Logging';\r
+localizedText['settings.info.anonymizeLogging'] = 'enable this to anonymize the display and logging of event summaries and locations. This allows users to create anonymized logs.';\r
 localizedText['settings.name.cssStyle_background'] = '.background';\r
 localizedText['settings.info.cssStyle_background'] = 'Задает параметры фона виджета. Например коды цветов черный, серый, светлый -  #292029, #e7dfe7, #009aef';\r
 localizedText['settings.name.cssStyle_backgroundFullscreen'] = '.backgroundFullscreen';\r