diff --git a/calendar@schorschii/README.md b/calendar@schorschii/README.md new file mode 100644 index 000000000..9a0c1a82e --- /dev/null +++ b/calendar@schorschii/README.md @@ -0,0 +1,11 @@ +# Calendar Desklet +A simple local calendar desklet that can display the number of today's appointments from an ical/ics file. + +## Usage With Thunderbird +You can e.g. configure the Thunderbird calendar to save your appointments in an ics file. + +1. Create an empty file on your computer, e.g. `/home//calendar.ics`. +2. Create a new calendar in Thunderbird using this file. + - In the "New Calendar" dialog, choose "Network". + - As address, enter the URL path to the file on your computer, e.g. `file:///home//calendar.ics`. +3. Choose the file in the desklet settings. The desklet will now display the number of today's appointments in the ics file. diff --git a/calendar@schorschii/files/calendar@schorschii/desklet.js b/calendar@schorschii/files/calendar@schorschii/desklet.js index 3df5e7b23..bb9274b3f 100644 --- a/calendar@schorschii/files/calendar@schorschii/desklet.js +++ b/calendar@schorschii/files/calendar@schorschii/desklet.js @@ -11,6 +11,7 @@ const Clutter = imports.gi.Clutter; const GdkPixbuf = imports.gi.GdkPixbuf; const Cogl = imports.gi.Cogl; const Gettext = imports.gettext; +const Gio = imports.gi.Gio; const UUID = "calendar@schorschii"; const DESKLET_ROOT = imports.ui.deskletManager.deskletMeta[UUID].path; @@ -33,7 +34,7 @@ function main(metadata, desklet_id) { } function getImageAtScale(imageFileName, width, height, width2 = 0, height2 = 0) { - if (width2 == 0 || height2 == 0) { + if(width2 == 0 || height2 == 0) { width2 = width; height2 = height; } @@ -90,10 +91,10 @@ MyDesklet.prototype = { this.default_month_top_top = 27; this.dayofmonth = 0; this.monthofyear = 0; this.dayofweek = 0; this.year = 0; this.dayofweek_string = ""; this.monthofyear_string = ""; - this.notification_amount = 0; this.last_notification_amount = 0; + this.last_notification_amount = 0; // load images and set initial sizes - this.refreshSize(true); + this.refreshDesklet(-1, true); // set root eleent this.setContent(this.calendar); @@ -121,7 +122,7 @@ MyDesklet.prototype = { this.dayofweek = this._displayTime.get_day_of_week(); this.year = this._displayTime.get_year(); - switch (this.dayofweek) { + switch(this.dayofweek) { case 1: this.dayofweek_string = _("Monday"); break; case 2: this.dayofweek_string = _("Tuesday"); break; case 3: this.dayofweek_string = _("Wednesday"); break; @@ -130,7 +131,7 @@ MyDesklet.prototype = { case 6: this.dayofweek_string = _("Saturday"); break; case 7: this.dayofweek_string = _("Sunday"); break; } - switch (this.monthofyear) { + switch(this.monthofyear) { case 1: this.monthofyear_string = _("January"); break; case 2: this.monthofyear_string = _("February"); break; case 3: this.monthofyear_string = _("March"); break; @@ -145,57 +146,54 @@ MyDesklet.prototype = { case 12: this.monthofyear_string = _("December"); break; } - this.notification_amount = 0; - if (this.read_appointments) { - let ical_content = ""; - try { - // read ical file - ical_content = Cinnamon.get_file_contents_utf8_sync(this.ical_file.replace("file://", "")); - } catch(ex) { - // error reading file - maybe the file does not exist - this.notification_amount = -1; - } - - var lines = ical_content.split("\n"); - - let ical_current_dtstart = ""; - let ical_current_dtend = ""; - let ical_current_text = ""; - let ical_current_desc = ""; - for(var i = 0;i < lines.length;i++){ - if(lines[i].startsWith("BEGIN:VEVENT")) { - // calendar entry starts + if(this.read_appointments) { + // read ical file + var notification_amount = 0; + let ical_file = Gio.file_new_for_path(this.ical_file.replace("file://", "")); + ical_file.load_contents_async(null, (file, response) => { + try { + let [success, contents, tag] = file.load_contents_finish(response); + if(success) { + var lines = contents.toString().split("\n"); + let ical_current_dtstart = ""; + let ical_current_dtend = ""; + let ical_current_text = ""; + let ical_current_desc = ""; + for(var i = 0;i < lines.length;i++){ + if(lines[i].startsWith("DTSTART")) // read appointment start date and time + ical_current_dtstart = lines[i].split(":")[1].split("T")[0].trim(); + if(lines[i].startsWith("DTEND")) // read appointment end date and time + ical_current_dtend = lines[i].split(":")[1].split("T")[0].trim(); + if(lines[i].startsWith("SUMMARY")) // read appointment summary + ical_current_text = lines[i].split(":")[1]; + if(lines[i].startsWith("DESCRIPTION")) // read appointment description + ical_current_desc = lines[i].split(":")[1]; + if(lines[i].startsWith("END:VEVENT")) { // calendar entry ends + // check date if it matches today's date and if so, increment the counter + if(ical_current_dtstart == this.year.toString() + ("0" + this.monthofyear.toString()).slice(-2) + ("0" + this.dayofmonth.toString()).slice(-2)) + notification_amount ++; + // reset temporary variables + ical_current_desc = ""; ical_current_text = ""; ical_current_dtstart = ""; ical_current_dtend = ""; + } + } + this.refreshDesklet(notification_amount, false); // set text without recalc sizes + } + } catch(ex) { + global.log(ex.toString()); + // error reading file - maybe the file does not exist + this.refreshDesklet(-1, false); // set text without recalc sizes } - if(lines[i].startsWith("END:VEVENT")) { - // calendar entry ends - - // check date if it matches today's date - if (ical_current_dtstart == this.year.toString() + ('0' + this.monthofyear.toString()).slice(-2) + ('0' + this.dayofmonth.toString()).slice(-2)) - this.notification_amount ++; - - // reset temporary variables - ical_current_desc = ""; ical_current_text = ""; ical_current_dtstart = ""; ical_current_dtend = ""; - } - if(lines[i].startsWith("DTSTART")) // read appointment start date and time - ical_current_dtstart = lines[i].split(":")[1].split("T")[0].trim(); - if(lines[i].startsWith("DTEND")) // read appointment end date and time - ical_current_dtend = lines[i].split(":")[1].split("T")[0].trim(); - if(lines[i].startsWith("SUMMARY")) // read appointment summary - ical_current_text = lines[i].split(":")[1]; - if(lines[i].startsWith("DESCRIPTION")) // read appointment description - ical_current_desc = lines[i].split(":")[1]; - } + }); + } else { + this.refreshDesklet(-1, false); // set text without recalc sizes } - // set object sizes without recalc - this.refreshSize(false); - // refresh again in five seconds this.timeout = Mainloop.timeout_add_seconds(5, Lang.bind(this, this.refresh)); }, - refreshSize: function(reloadGraphics = false) { - if(this.notification_amount != this.last_notification_amount || reloadGraphics == true) { + refreshDesklet: function(notification_amount, reloadGraphics=false) { + if(notification_amount != this.last_notification_amount || reloadGraphics) { // calc new sizes based on scale factor let scale = this.scale_size * global.ui_scale; @@ -244,12 +242,12 @@ MyDesklet.prototype = { this.container.add_actor(this.month_big); this.container.add_actor(this.month_sub); this.container.add_actor(this.month_top); - if(this.notification_amount > 0 || this.notification_amount == -1) + if(this.read_appointments) this.container.add_actor(this.notification); this.setContent(this.calendar); // remember last notification amount - this.last_notification_amount = this.notification_amount; + this.last_notification_amount = notification_amount; // debug //Main.notifyError("Complete Refresh Done", text_color_style); @@ -260,10 +258,10 @@ MyDesklet.prototype = { this.month_big.set_text(this.dayofmonth.toString()); this.month_sub.set_text(subtitle); this.month_top.set_text(this.dayofweek_string); - if(this.notification_amount == -1) + if(notification_amount == -1) this.notification.set_text("!"); else - this.notification.set_text(this.notification_amount.toString()); + this.notification.set_text(notification_amount.toString()); // debug //Main.notifyError("Text Refresh Done", " "); @@ -271,7 +269,7 @@ MyDesklet.prototype = { refreshDecoration: function() { // desklet label (header) - if(this.use_custom_label == true) + if(this.use_custom_label) this.setHeader(this.custom_label) else this.setHeader(_("Calendar")); @@ -290,11 +288,11 @@ MyDesklet.prototype = { this.refresh(); // update size based on scale factor - this.refreshSize(true); + this.refreshDesklet(this.last_notification_amount, true); }, on_desklet_clicked: function() { - if(this.onclick_active == true && this.onclick_command != "") + if(this.onclick_active && this.onclick_command != "") Util.spawnCommandLine(this.onclick_command); }, diff --git a/calendar@schorschii/files/calendar@schorschii/metadata.json b/calendar@schorschii/files/calendar@schorschii/metadata.json index 4bd68d29f..8d3aaa8a1 100644 --- a/calendar@schorschii/files/calendar@schorschii/metadata.json +++ b/calendar@schorschii/files/calendar@schorschii/metadata.json @@ -1,7 +1,7 @@ { "uuid": "calendar@schorschii", "max-instances": "10", - "description": "A calendar desklet that can display the number of today's appointments from an ical file.", + "description": "A calendar desklet that can display the number of today's appointments from an ical/ics file.", "name": "Calendar", - "version": "1.3" + "version": "1.5" } diff --git a/calendar@schorschii/files/calendar@schorschii/po/ca.po b/calendar@schorschii/files/calendar@schorschii/po/ca.po index 9e93affb4..fc294ea7e 100644 --- a/calendar@schorschii/files/calendar@schorschii/po/ca.po +++ b/calendar@schorschii/files/calendar@schorschii/po/ca.po @@ -175,17 +175,17 @@ msgstr "" "camp següent." #. calendar@schorschii->settings-schema.json->ical-file->description -msgid "Path to ical file" -msgstr "Camí al fitxer ical" +msgid "Path to ical/ics file" +msgstr "Camí al fitxer ical/ics" #. calendar@schorschii->settings-schema.json->ical-file->tooltip msgid "" -"Select your ical file for reading the amount of appointments today.\n" +"Select your ical or ics file for reading the amount of appointments today.\n" "\n" "You can configure Lightning (the Thunderbird Add-On) to save your calendar " "in an ical file." msgstr "" -"Seleccioneu el vostre fitxer ical per llegir el nombre de cites d'avui.\n" +"Seleccioneu el vostre fitxer ical o ics per llegir la quantitat de cites d'avui.\n" "\n" "Podeu configurar Lightning (el connector de Thunderbird) per desar el vostre " "calendari a un fitxer ical." diff --git a/calendar@schorschii/files/calendar@schorschii/po/calendar@schorschii.pot b/calendar@schorschii/files/calendar@schorschii/po/calendar@schorschii.pot index c6d4b8351..daba7acb7 100644 --- a/calendar@schorschii/files/calendar@schorschii/po/calendar@schorschii.pot +++ b/calendar@schorschii/files/calendar@schorschii/po/calendar@schorschii.pot @@ -167,12 +167,12 @@ msgid "" msgstr "" #. calendar@schorschii->settings-schema.json->ical-file->description -msgid "Path to ical file" +msgid "Path to ical/ics file" msgstr "" #. calendar@schorschii->settings-schema.json->ical-file->tooltip msgid "" -"Select your ical file for reading the amount of appointments today.\n" +"Select your ical or ics file for reading the amount of appointments today.\n" "\n" "You can configure Lightning (the Thunderbird Add-On) to save your calendar in an ical file." msgstr "" diff --git a/calendar@schorschii/files/calendar@schorschii/po/da.po b/calendar@schorschii/files/calendar@schorschii/po/da.po index edfd2dabe..1dce2b331 100644 --- a/calendar@schorschii/files/calendar@schorschii/po/da.po +++ b/calendar@schorschii/files/calendar@schorschii/po/da.po @@ -171,17 +171,17 @@ msgstr "" "i feltet nedenunder." #. calendar@schorschii->settings-schema.json->ical-file->description -msgid "Path to ical file" -msgstr "Sti til iCal-fil" +msgid "Path to ical/ics file" +msgstr "Sti til iCal/ics-fil" #. calendar@schorschii->settings-schema.json->ical-file->tooltip msgid "" -"Select your ical file for reading the amount of appointments today.\n" +"Select your ical or ics file for reading the amount of appointments today.\n" "\n" "You can configure Lightning (the Thunderbird Add-On) to save your calendar " "in an ical file." msgstr "" -"Vælg iCal-filen, hvorfra antallet af aftaler skal indlæses.\n" +"Vælg din ical- eller ics-fil for at læse antallet af aftaler i dag.\n" "\n" "Du kan konfigurere Lightning (Thunderbird-tilføjelsen) til at gemme din " "kalender som en iCal-fil." diff --git a/calendar@schorschii/files/calendar@schorschii/po/de.po b/calendar@schorschii/files/calendar@schorschii/po/de.po index d21d45b39..0b92c4c52 100644 --- a/calendar@schorschii/files/calendar@schorschii/po/de.po +++ b/calendar@schorschii/files/calendar@schorschii/po/de.po @@ -175,17 +175,17 @@ msgstr "" "darunter auswählen." #. calendar@schorschii->settings-schema.json->ical-file->description -msgid "Path to ical file" -msgstr "Pfad zur ical-Datei" +msgid "Path to ical/ics file" +msgstr "Pfad zur ical/ics-Datei" #. calendar@schorschii->settings-schema.json->ical-file->tooltip msgid "" -"Select your ical file for reading the amount of appointments today.\n" +"Select your ical or ics file for reading the amount of appointments today.\n" "\n" "You can configure Lightning (the Thunderbird Add-On) to save your calendar " "in an ical file." msgstr "" -"Wählen Sie die ical-Datei aus, aus welcher die Anzahl der heutigen Termine " +"Wählen Sie die ical- oder ics-Datei aus, aus welcher die Anzahl der heutigen Termine " "ausgelesen werden soll.\n" "\n" "Sie können Lightning (das Thunderbird Add-On) so konfigurieren, dass es die " diff --git a/calendar@schorschii/files/calendar@schorschii/po/es.po b/calendar@schorschii/files/calendar@schorschii/po/es.po index b0ca7d163..1a9ed78ee 100644 --- a/calendar@schorschii/files/calendar@schorschii/po/es.po +++ b/calendar@schorschii/files/calendar@schorschii/po/es.po @@ -175,17 +175,17 @@ msgstr "" "el campo inferior." #. calendar@schorschii->settings-schema.json->ical-file->description -msgid "Path to ical file" -msgstr "Ruta al archivo ical" +msgid "Path to ical/ics file" +msgstr "Ruta al archivo ical/ics" #. calendar@schorschii->settings-schema.json->ical-file->tooltip msgid "" -"Select your ical file for reading the amount of appointments today.\n" +"Select your ical or ics file for reading the amount of appointments today.\n" "\n" "You can configure Lightning (the Thunderbird Add-On) to save your calendar " "in an ical file." msgstr "" -"Seleccione su archivo ical para leer la cantidad de compromisos de hoy.\n" +"Seleccione su archivo ical o ics para leer la cantidad de citas hoy.\n" "\n" "Puede configurar Lightning (el complemento de Thunderbird) para guardar su " "calendario en un archivo ical." diff --git a/calendar@schorschii/files/calendar@schorschii/po/hu.po b/calendar@schorschii/files/calendar@schorschii/po/hu.po index f145f7a09..261efd838 100644 --- a/calendar@schorschii/files/calendar@schorschii/po/hu.po +++ b/calendar@schorschii/files/calendar@schorschii/po/hu.po @@ -163,16 +163,16 @@ msgid "Checking this box allows you to set an ical file to parse in the field be msgstr "Ennek a négyzetnek a bejelölésével az alábbi mezőben megadhat egy importálandó ical fájlt." #. calendar@schorschii->settings-schema.json->ical-file->description -msgid "Path to ical file" -msgstr "Elérési útvonal az ical fájlhoz" +msgid "Path to ical/ics file" +msgstr "Elérési útvonal az ical/ics fájlhoz" #. calendar@schorschii->settings-schema.json->ical-file->tooltip msgid "" -"Select your ical file for reading the amount of appointments today.\n" +"Select your ical or ics file for reading the amount of appointments today.\n" "\n" "You can configure Lightning (the Thunderbird Add-On) to save your calendar in an ical file." msgstr "" -"Válassza ki az ical fájlt a mai találkozók mennyiségének beolvasásához.\n" +"Válassza ki az ical vagy ics fájlt a mai találkozók számának olvasásához.\n" "\n" "Beállíthatja a Lightning-et (a Thunderbird kiegészítőjét), hogy a naptárat egy ical fájlba mentse." diff --git a/calendar@schorschii/files/calendar@schorschii/po/it.po b/calendar@schorschii/files/calendar@schorschii/po/it.po index 8eea69d9e..a9fa96ee8 100644 --- a/calendar@schorschii/files/calendar@schorschii/po/it.po +++ b/calendar@schorschii/files/calendar@schorschii/po/it.po @@ -174,17 +174,17 @@ msgstr "" "nel campo sottostante." #. calendar@schorschii->settings-schema.json->ical-file->description -msgid "Path to ical file" -msgstr "Percorso del file ical" +msgid "Path to ical/ics file" +msgstr "Percorso del file ical/ics" #. calendar@schorschii->settings-schema.json->ical-file->tooltip msgid "" -"Select your ical file for reading the amount of appointments today.\n" +"Select your ical or ics file for reading the amount of appointments today.\n" "\n" "You can configure Lightning (the Thunderbird Add-On) to save your calendar " "in an ical file." msgstr "" -"Seleziona il tuo file ical per leggere la quantità di appuntamenti oggi.\n" +"Seleziona il tuo file ical o ics per leggere il numero di appuntamenti di oggi.\n" "\n" "Puoi configurare Lightning (il componente aggiuntivo di Thunderbird) per " "salvare il tuo calendario in un file ical." diff --git a/calendar@schorschii/files/calendar@schorschii/po/pt_BR.po b/calendar@schorschii/files/calendar@schorschii/po/pt_BR.po index 624c250e1..d2599a457 100644 --- a/calendar@schorschii/files/calendar@schorschii/po/pt_BR.po +++ b/calendar@schorschii/files/calendar@schorschii/po/pt_BR.po @@ -173,18 +173,17 @@ msgstr "" "abaixo para ser analisado." #. calendar@schorschii->settings-schema.json->ical-file->description -msgid "Path to ical file" -msgstr "Endereço do arquivo .ics" +msgid "Path to ical/ics file" +msgstr "Endereço do arquivo .ical/.ics" #. calendar@schorschii->settings-schema.json->ical-file->tooltip msgid "" -"Select your ical file for reading the amount of appointments today.\n" +"Select your ical or ics file for reading the amount of appointments today.\n" "\n" "You can configure Lightning (the Thunderbird Add-On) to save your calendar " "in an ical file." msgstr "" -"Selecione o seu arquivo .ics para saber a quantidade de compromissos no dia " -"de hoje.\n" +"Selecione seu arquivo ical ou ics para ler a quantidade de compromissos hoje.\n" "\n" "Você pode configurar o salvamento do seu calendário em um arquivo .ics no " "Lightning (um complemento para o Thunderbird)." diff --git a/calendar@schorschii/files/calendar@schorschii/po/ro.po b/calendar@schorschii/files/calendar@schorschii/po/ro.po index a421ff4ad..029eae09e 100644 --- a/calendar@schorschii/files/calendar@schorschii/po/ro.po +++ b/calendar@schorschii/files/calendar@schorschii/po/ro.po @@ -163,16 +163,16 @@ msgid "Checking this box allows you to set an ical file to parse in the field be msgstr "Dacă bifezi această casetă, poți seta un fișier ical care să fie analizat în câmpul de mai jos." #. calendar@schorschii->settings-schema.json->ical-file->description -msgid "Path to ical file" -msgstr "Calea de acces la fișierul ical" +msgid "Path to ical/ics file" +msgstr "Calea de acces la fișierul ical/ics" #. calendar@schorschii->settings-schema.json->ical-file->tooltip msgid "" -"Select your ical file for reading the amount of appointments today.\n" +"Select your ical or ics file for reading the amount of appointments today.\n" "\n" "You can configure Lightning (the Thunderbird Add-On) to save your calendar in an ical file." msgstr "" -"Selectează fișierul ta ical pentru citirea sumei numirilor de astăzi.\n" +"Selectați fișierul ical sau ics pentru a citi numărul de întâlniri de astăzi.\n" "\n" "Poți configura Lightning (add-on-ul Thunderbird) pentru a îți salva calendarul într-un fișier ical." diff --git a/calendar@schorschii/files/calendar@schorschii/po/sk.po b/calendar@schorschii/files/calendar@schorschii/po/sk.po index 52d0b70ee..e8df4d03b 100644 --- a/calendar@schorschii/files/calendar@schorschii/po/sk.po +++ b/calendar@schorschii/files/calendar@schorschii/po/sk.po @@ -180,17 +180,17 @@ msgstr "" "ical, ktorý sa má analyzovať." #. settings-schema.json->ical-file->description -msgid "Path to ical file" -msgstr "Cesta k súboru ical" +msgid "Path to ical/ics file" +msgstr "Cesta k súboru ical/ics" #. settings-schema.json->ical-file->tooltip msgid "" -"Select your ical file for reading the amount of appointments today.\n" +"Select your ical or ics file for reading the amount of appointments today.\n" "\n" "You can configure Lightning (the Thunderbird Add-On) to save your calendar " "in an ical file." msgstr "" -"Vyberte váš súbor ical, z ktorého sa má čítať počet dnešných schôdzok.\n" +"Vyberte si súbor ical alebo ics, aby ste si mohli prečítať počet stretnutí dnes.\n" "\n" "Môžete nastaviť Lightning (doplnok aplikácie Thunderbird), ktorý uloží váš " "kalendár do súboru ical." diff --git a/calendar@schorschii/files/calendar@schorschii/po/sv.po b/calendar@schorschii/files/calendar@schorschii/po/sv.po index 9bfec464a..e389c5488 100644 --- a/calendar@schorschii/files/calendar@schorschii/po/sv.po +++ b/calendar@schorschii/files/calendar@schorschii/po/sv.po @@ -170,17 +170,17 @@ msgid "" msgstr "Aktivering låter dig ange en iCal-fil som tolkas i fältet nedan." #. calendar@schorschii->settings-schema.json->ical-file->description -msgid "Path to ical file" -msgstr "Sökväg till iCal-filen" +msgid "Path to ical/ics file" +msgstr "Sökväg till iCal/ics-filen" #. calendar@schorschii->settings-schema.json->ical-file->tooltip msgid "" -"Select your ical file for reading the amount of appointments today.\n" +"Select your ical or ics file for reading the amount of appointments today.\n" "\n" "You can configure Lightning (the Thunderbird Add-On) to save your calendar " "in an ical file." msgstr "" -"Välj iCal-fil för inläsning av dagens inbokade händelser.\n" +"Välj din ical- eller ics-fil för att läsa antalet möten idag.\n" "\n" "Du kan konfigurera Lightning (Thunderbird-tillägg) till att spara din " "kalender i en iCal-fil." diff --git a/calendar@schorschii/files/calendar@schorschii/po/tr.po b/calendar@schorschii/files/calendar@schorschii/po/tr.po index 9f176e695..da421a19b 100644 --- a/calendar@schorschii/files/calendar@schorschii/po/tr.po +++ b/calendar@schorschii/files/calendar@schorschii/po/tr.po @@ -172,17 +172,17 @@ msgstr "" "seçmenize izin verir." #. calendar@schorschii->settings-schema.json->ical-file->description -msgid "Path to ical file" -msgstr "ical dosyasının yolu" +msgid "Path to ical/ics file" +msgstr "ical/ics dosyasının yolu" #. calendar@schorschii->settings-schema.json->ical-file->tooltip msgid "" -"Select your ical file for reading the amount of appointments today.\n" +"Select your ical or ics file for reading the amount of appointments today.\n" "\n" "You can configure Lightning (the Thunderbird Add-On) to save your calendar " "in an ical file." msgstr "" -"Bugün randevu miktarını okumak için ical dosyanızı seçin.\n" +"Bugünkü randevu miktarını okumak için ical veya ics dosyanızı seçin.\n" "\n" "Takviminizi bir ical dosyasına kaydetmek için Lightning'i (Thunderbird " "eklentisini) yapılandırabilirsiniz." diff --git a/calendar@schorschii/files/calendar@schorschii/po/zh_CN.po b/calendar@schorschii/files/calendar@schorschii/po/zh_CN.po index 876a35aa7..0ca096d36 100644 --- a/calendar@schorschii/files/calendar@schorschii/po/zh_CN.po +++ b/calendar@schorschii/files/calendar@schorschii/po/zh_CN.po @@ -167,17 +167,17 @@ msgid "" msgstr "选中此项允许您在下面的方框中设置要解析的ical文件。" #. calendar@schorschii->settings-schema.json->ical-file->description -msgid "Path to ical file" -msgstr "ical文件的路径" +msgid "Path to ical/ics file" +msgstr "ical/ics文件的路径" #. calendar@schorschii->settings-schema.json->ical-file->tooltip msgid "" -"Select your ical file for reading the amount of appointments today.\n" +"Select your ical or ics file for reading the amount of appointments today.\n" "\n" "You can configure Lightning (the Thunderbird Add-On) to save your calendar " "in an ical file." msgstr "" -"选择您用于阅读今天预约数量的ical文件。\n" +"选择您的 ical 或 ics 文件以读取今天的预约数量。\n" "\n" "您可以配置Lightning(Thunderbird扩展)将保存您的日历在ical文件中。" diff --git a/calendar@schorschii/files/calendar@schorschii/settings-schema.json b/calendar@schorschii/files/calendar@schorschii/settings-schema.json index 43d52e3b3..76141ad3b 100644 --- a/calendar@schorschii/files/calendar@schorschii/settings-schema.json +++ b/calendar@schorschii/files/calendar@schorschii/settings-schema.json @@ -66,8 +66,8 @@ "ical-file": { "type": "filechooser", "default": "", - "description": "Path to ical file", - "tooltip": "Select your ical file for reading the amount of appointments today.\n\nYou can configure Lightning (the Thunderbird Add-On) to save your calendar in an ical file.", + "description": "Path to ical/ics file", + "tooltip": "Select your ical or ics file for reading the amount of appointments today.\n\nYou can configure Lightning (the Thunderbird Add-On) to save your calendar in an ical file.", "allow-none" : true },