From b3abdd5c5eb95e355835b89c574a8f19b352b467 Mon Sep 17 00:00:00 2001 From: marksie1988 Date: Tue, 5 Sep 2023 16:28:26 +0000 Subject: [PATCH] feat(editor): add missing option to editor and amend translations --- src/editor.ts | 8 ++++++++ src/localize/languages/da.json | 29 ++++++++++++++++------------- src/localize/languages/de.json | 27 +++++++++++++++------------ src/localize/languages/en.json | 3 ++- src/localize/languages/et.json | 5 ++++- src/localize/languages/fi.json | 7 +++++-- src/localize/languages/fr.json | 5 ++++- src/localize/languages/nb.json | 5 ++++- src/localize/languages/sl.json | 29 ++++++++++++++++------------- src/localize/languages/sv.json | 5 ++++- 10 files changed, 78 insertions(+), 45 deletions(-) diff --git a/src/editor.ts b/src/editor.ts index 198e6834..3ef59952 100644 --- a/src/editor.ts +++ b/src/editor.ts @@ -262,6 +262,14 @@ export class AtomicCalendarReviveEditor extends ScopedRegistryHost(LitElement) i max: 99999999999, default: defaultConfig.maxDaysToShow }, + { + type: 'number', + name: 'startDaysAhead', + label: localize('main.fields.startDaysAhead'), + min: 0, + max: 999, + default: defaultConfig.startDaysAhead + }, { type: 'number', name: 'refreshInterval', diff --git a/src/localize/languages/da.json b/src/localize/languages/da.json index c4596c76..abb796d2 100644 --- a/src/localize/languages/da.json +++ b/src/localize/languages/da.json @@ -48,13 +48,16 @@ "firstDayOfWeek": "Første dag i ugen 0-6", "cardHeight": "Højde på kort", "hideDuplicates": "Skjul dubletter", - "showMultiDay": "Opdelt flerdages begivenheder", - "showMultiDayEventParts": "Vis flere dages begivenhedsdele", - "eventTitle": "Indstil tom begivenhedstitel", - "compactMode": "Aktiver kompakt tilstand", - "hoursOnSameLine": "Vis timer på begivenhedslinjen", - "titleLength": "Max titellængde (0 for ubegrænset)", - "descLength": "Max beskrivelseslængde (0 for ubegrænset)" + "showMultiDay": "Opdelt flerdages begivenheder", + "showMultiDayEventParts": "Vis flere dages begivenhedsdele", + "eventTitle": "Indstil tom begivenhedstitel", + "compactMode": "Aktiver kompakt tilstand", + "hoursOnSameLine": "Vis timer på begivenhedslinjen", + "titleLength": "Max titellængde (0 for ubegrænset)", + "descLength": "Max beskrivelseslængde (0 for ubegrænset)", + "showAllDayEvents": "Vis heldagsbegivenheder", + "offsetHeaderDate": "Forskudt overskriftsdato", + "startDaysAhead": "Begivenheder starter `x` dage fra i dag" } }, "event": { @@ -77,12 +80,12 @@ "showEventIcon": "Vis aftale ikon", "showHiddenText": "Vis skjulte aftaler tekst?", "hiddenEventText": "Tekst til skjulte aftaler:", - "showCalendarName": "Vis kalendernavn", - "showWeekNumber": "Vis ugenumre", - "showEventDate": "Vis dato for arrangementer", - "showDatePerEvent": "Vis dato ud for hver begivenhed", - "showTimeRemaining": "Vis resterende tid", - "showAllDayHours": "Vis Heldagsbegivenhedstekst" + "showCalendarName": "Vis kalendernavn", + "showWeekNumber": "Vis ugenumre", + "showEventDate": "Vis dato for arrangementer", + "showDatePerEvent": "Vis dato ud for hver begivenhed", + "showTimeRemaining": "Vis resterende tid", + "showAllDayHours": "Vis Heldagsbegivenhedstekst" } }, "calendar": { diff --git a/src/localize/languages/de.json b/src/localize/languages/de.json index 82456388..69cad467 100644 --- a/src/localize/languages/de.json +++ b/src/localize/languages/de.json @@ -47,13 +47,16 @@ "firstDayOfWeek": "Erster Wochentag 0-6", "cardHeight": "Kartenhöhe", "hideDuplicates": "Duplikate ausblenden", - "showMultiDay": "Split meerdaagse evenementen", - "showMultiDayEventParts": "Toon meerdaagse evenementonderdelen", - "eventTitle": "Lege evenementtitel instellen", - "compactMode": "Schakel de compacte modus in", - "hoursOnSameLine": "Toon uren op de gebeurtenisregel", - "titleLength": "Maximale titellengte (0 voor onbeperkt)", - "descLength": "Maximale beschrijvingslengte (0 voor onbeperkt)" + "showMultiDay": "Split meerdaagse evenementen", + "showMultiDayEventParts": "Toon meerdaagse evenementonderdelen", + "eventTitle": "Lege evenementtitel instellen", + "compactMode": "Schakel de compacte modus in", + "hoursOnSameLine": "Toon uren op de gebeurtenisregel", + "titleLength": "Maximale titellengte (0 voor onbeperkt)", + "descLength": "Maximale beschrijvingslengte (0 voor onbeperkt)", + "showAllDayEvents": "Toon evenementen die de hele dag duren", + "offsetHeaderDate": "Datum koptekst verschuiven", + "startDaysAhead": "Evenementen die `x` dagen vanaf vandaag beginnen" } }, "event": { @@ -76,11 +79,11 @@ "showEventIcon": "Ereignis-Symbol anzeigen?", "showHiddenText": "Versteckten Ereignistext anzeigen?", "hiddenEventText": "Text für versteckte Ereignisse", - "showCalendarName": "Toon agendanaam", - "showWeekNumber": "Toon weeknummers", - "showEventDate": "Toon datum voor evenementen", - "showDatePerEvent": "Toon datum naast elk evenement", - "showTimeRemaining": "Laat de resterende tijd zien", + "showCalendarName": "Toon agendanaam", + "showWeekNumber": "Toon weeknummers", + "showEventDate": "Toon datum voor evenementen", + "showDatePerEvent": "Toon datum naast elk evenement", + "showTimeRemaining": "Laat de resterende tijd zien", "showAllDayHours": "Toon de tekst van de hele dag-gebeurtenis" } }, diff --git a/src/localize/languages/en.json b/src/localize/languages/en.json index 12d13989..8b0d8bc2 100644 --- a/src/localize/languages/en.json +++ b/src/localize/languages/en.json @@ -56,7 +56,8 @@ "titleLength": "Max title length (0 for unlimited)", "descLength": "Max description length (0 for unlimited)", "showAllDayEvents": "Show all day events", - "offsetHeaderDate": "Offset header date" + "offsetHeaderDate": "Offset header date", + "startDaysAhead": "Events starting `x` days from today" } }, "event": { diff --git a/src/localize/languages/et.json b/src/localize/languages/et.json index cb7fd40d..3f8e0bac 100644 --- a/src/localize/languages/et.json +++ b/src/localize/languages/et.json @@ -53,7 +53,10 @@ "compactMode": "Kompaktrežiimi lubamine", "hoursOnSameLine": "Näidake sündmuse reale tundi", "titleLength": "Pealkirja maksimaalne pikkus (0 piiramatu jaoks)", - "descLength": "Kirjelduse maksimaalne pikkus (0 piiramatu puhul)" + "descLength": "Kirjelduse maksimaalne pikkus (0 piiramatu puhul)", + "showAllDayEvents": "Näita kogu päeva sündmusi", + "offsetHeaderDate": "Nihke päise kuupäev", + "startDaysAhead": "Sündmused alates tänasest `x` päeva pärast" } }, "event": { diff --git a/src/localize/languages/fi.json b/src/localize/languages/fi.json index dd927f01..fa05337c 100644 --- a/src/localize/languages/fi.json +++ b/src/localize/languages/fi.json @@ -14,7 +14,7 @@ "common": { "previous": "Edellinen", "next": "Seuraava", - "week": "Viikko" + "week": "Viikko" } }, "errors": { @@ -54,7 +54,10 @@ "compactMode": "Ota kompakti tila käyttöön", "hoursOnSameLine": "Näytä tunnit tapahtumarivillä", "titleLength": "Otsikon enimmäispituus (0 rajattomasti)", - "descLength": "Kuvauksen enimmäispituus (0 rajattomasti)" + "descLength": "Kuvauksen enimmäispituus (0 rajattomasti)", + "showAllDayEvents": "Näytä koko päivän tapahtumat", + "offsetHeaderDate": "Offset otsikon päivämäärä", + "startDaysAhead": "Tapahtumat alkavat `x` päivän kuluttua tästä päivästä" } }, "event": { diff --git a/src/localize/languages/fr.json b/src/localize/languages/fr.json index 9f7c69c0..f983d77d 100644 --- a/src/localize/languages/fr.json +++ b/src/localize/languages/fr.json @@ -54,7 +54,10 @@ "compactMode": "Activer le mode compact", "hoursOnSameLine": "Afficher les heures sur la ligne de l'événement", "titleLength": "Longueur maximale du titre (0 pour illimité)", - "descLength": "Longueur maximale de la description (0 pour illimité)" + "descLength": "Longueur maximale de la description (0 pour illimité)", + "showAllDayEvents": "Afficher les événements de la journée", + "offsetHeaderDate": "Date d'en-tête décalée", + "startDaysAhead": "Événements commençant `x` jours à partir d’aujourd’hui" } }, "event": { diff --git a/src/localize/languages/nb.json b/src/localize/languages/nb.json index ec8e9992..27ec3f9d 100644 --- a/src/localize/languages/nb.json +++ b/src/localize/languages/nb.json @@ -54,7 +54,10 @@ "compactMode": "Aktiver kompakt modus", "hoursOnSameLine": "Vis timer på arrangementslinjen", "titleLength": "Maks tittellengde (0 for ubegrenset)", - "descLength": "Maks beskrivelseslengde (0 for ubegrenset)" + "descLength": "Maks beskrivelseslengde (0 for ubegrenset)", + "showAllDayEvents": "Vis heldagsbegivenheter", + "offsetHeaderDate": "Offset overskriftsdato", + "startDaysAhead": "Arrangementer som starter `x` dager fra i dag" } }, "event": { diff --git a/src/localize/languages/sl.json b/src/localize/languages/sl.json index d9e7317d..8dfe65fa 100644 --- a/src/localize/languages/sl.json +++ b/src/localize/languages/sl.json @@ -48,13 +48,16 @@ "firstDayOfWeek": "Prvi dan v tednu 0-6", "cardHeight": "Višina kartice", "hideDuplicates": "skrij dvojnike", - "showMultiDay": "Razdeljeni večdnevni dogodki", - "showMultiDayEventParts": "Prikaži dele večdnevnega dogodka", - "eventTitle": "Nastavite prazen naslov dogodka", - "compactMode": "Omogoči kompaktni način", - "hoursOnSameLine": "Prikaži ure na vrstici dogodkov", - "titleLength": "Največja dolžina naslova (0 za neomejeno)", - "descLength": "Največja dolžina opisa (0 za neomejeno)" + "showMultiDay": "Razdeljeni večdnevni dogodki", + "showMultiDayEventParts": "Prikaži dele večdnevnega dogodka", + "eventTitle": "Nastavite prazen naslov dogodka", + "compactMode": "Omogoči kompaktni način", + "hoursOnSameLine": "Prikaži ure na vrstici dogodkov", + "titleLength": "Največja dolžina naslova (0 za neomejeno)", + "descLength": "Največja dolžina opisa (0 za neomejeno)", + "showAllDayEvents": "Pokaži celodnevne dogodke", + "offsetHeaderDate": "Datum zamika glave", + "startDaysAhead": "Dogodki, ki se začnejo `x` dni od danes" } }, "event": { @@ -77,12 +80,12 @@ "showEventIcon": "Pokaži ikono dogodka", "showHiddenText": "Pokaži skrito besedilo dogodka?", "hiddenEventText": "Besedilo za skrite dogodke:", - "showCalendarName": "Pokaži ime koledarja", - "showWeekNumber": "Prikaži številke tednov", - "showEventDate": "Pokaži datum za dogodke", - "showDatePerEvent": "Prikažite datum poleg vsakega dogodka", - "showTimeRemaining": "Pokaži preostali čas", - "showAllDayHours": "Prikaži besedilo celodnevnega dogodka" + "showCalendarName": "Pokaži ime koledarja", + "showWeekNumber": "Prikaži številke tednov", + "showEventDate": "Pokaži datum za dogodke", + "showDatePerEvent": "Prikažite datum poleg vsakega dogodka", + "showTimeRemaining": "Pokaži preostali čas", + "showAllDayHours": "Prikaži besedilo celodnevnega dogodka" } }, "calendar": { diff --git a/src/localize/languages/sv.json b/src/localize/languages/sv.json index c4e4e45d..56bc4217 100644 --- a/src/localize/languages/sv.json +++ b/src/localize/languages/sv.json @@ -53,7 +53,10 @@ "compactMode": "Aktivera kompakt läge", "hoursOnSameLine": "Visa öppettider på evenemangsraden", "titleLength": "Max titellängd (0 för obegränsat)", - "descLength": "Max beskrivningslängd (0 för obegränsat)" + "descLength": "Max beskrivningslängd (0 för obegränsat)", + "showAllDayEvents": "Visa heldagshändelser", + "offsetHeaderDate": "Offset rubrikdatum", + "startDaysAhead": "Händelser som börjar `x` dagar från och med idag" } }, "event": {