Skip to content

Commit

Permalink
Clean up and update all translations
Browse files Browse the repository at this point in the history
Remove unused keys, add empty strings for missing keys, and fix key order. Complete German translation.
  • Loading branch information
t11r committed Feb 11, 2025
1 parent 1a450f9 commit 4fdb835
Show file tree
Hide file tree
Showing 8 changed files with 67 additions and 22 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ Run end-to-end tests:

## Translations

Translations reside in `public/translations`. Each language is represented by a JSON file, where the file name is the language’s [ISO 639 alpha-2 code](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes). Each file consists of a single object of key-value pairs; the key is the English string, the value is the translation. The first string of each file with key `$language` contains its native name. There are a few other special keys starting with `$`; while all other keys are to be translated literally, these keys serve as placeholders for longer sections of text. Search the source files for these keys to reveal their corresponding English texts.
Translations reside in `public/translations`. Each language is represented by a JSON file, where the file name is the language’s [ISO 639 alpha-2 code](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes). Each file consists of a single object of key-value pairs; the key is the original English string, the value is the translation. The first key `$language` denotes the native name of the translation’s language. There are a few other special keys starting with `$`; while all other keys are to be translated literally, these keys serve as placeholders for longer sections of text. Search the source files for these keys to reveal their corresponding texts.

To create a new empty translation, run `node build/create-translation.js` and follow the prompts.

Expand Down
4 changes: 2 additions & 2 deletions public/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@
"Contents": "Inhalt",
"Contrast": "Kontrast",
"Contributors": "Beitragende",
"Could not load child manifest": "Konnte Kind-Manifest nicht laden",
"Could not load child manifest": "Kind-Manifest konnte nicht geladen werden",
"Current Element": "Aktuelles Element",
"Current page:": "Aktuelle Seite:",
"Description": "Beschreibung",
"Dismiss": "Ausblenden",
"Document": "Dokument",
"Documentation": "Dokumentation",
"Download Individual Images": "Einzelbilder herunterladen",
"Exit fullscreen": "Vollbildmodus verlassen",
"Expand": "Ausklappen",
Expand Down Expand Up @@ -63,7 +64,6 @@
"Toggle double-page": "Doppelseite umschalten",
"Toggle image filters": "Bildfilter umschalten",
"Toggle page select": "Seitenauswahl umschalten",
"User guide": "Kurzanleitung",
"Version": "Version",
"View": "Ansicht",
"Zoom in": "Vergrößern",
Expand Down
15 changes: 11 additions & 4 deletions public/translations/eo.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,34 @@
"About TIFY": "Per TIFY",
"Brightness": "Helecon",
"Close PDF list": "Fermu PDF-liston",
"Collapse all": "Kolapu ĉion",
"Collapse": "Kolapso",
"Collapse all": "Kolapu ĉion",
"Collection": "Kolekto",
"Contents": "Enhavojn",
"Contrast": "Kontrasto",
"Contributors": "Kontribuanto",
"Could not load child manifest": "",
"Current Element": "Nuna ero",
"Current page:": "Nuna paĝo:",
"Description": "Priskribo",
"Dismiss": "",
"Document": "Dokumento",
"Documentation": "",
"Download Individual Images": "Elŝutu unuopajn bildojn",
"Exit fullscreen": "Eliru plenekranan reĝimon",
"Expand all": "Plivastigu ĉion",
"Expand": "Disfaldas",
"Expand all": "Plivastigu ĉion",
"Export": "Eksporti",
"Filter collection": "",
"Filter pages": "Filtrilaj paĝoj",
"First page": "Unua paĝo",
"Fullscreen": "Plena ekrana reĝimo",
"Fulltext not available for this page": "Plena teksto ne havebla",
"Fulltext": "Plena teksto",
"Fulltext not available for this page": "Plena teksto ne havebla",
"Help": "Helpu",
"IIIF manifest": "IIIF-Manifesto",
"IIIF manifest (collection)": "",
"IIIF manifest (current document)": "",
"Image filters": "Bilda filtrilo",
"Info": "Info",
"Last page": "Lasta paĝo",
Expand All @@ -36,6 +42,7 @@
"Metadata": "Metadatenoj",
"Next page": "Sekva paĝo",
"Next section": "Sekva sekcio",
"No results": "",
"Other Formats": "Aliaj formatoj",
"page": "paĝo",
"Page": "Paĝo",
Expand All @@ -56,7 +63,7 @@
"Title": "Titolo",
"Toggle double-page": "Ŝaltu duoblan paĝon",
"Toggle image filters": "Ŝaltu bildfiltrilojn",
"User guide": "Uzant-gvidilo",
"Toggle page select": "",
"Version": "Versio",
"View": "Vido",
"Zoom in": "Zomi",
Expand Down
12 changes: 8 additions & 4 deletions public/translations/fr.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,34 @@
{
"$language": "Français",
"$copyright": "",
"$info": "",
"About TIFY": "À propos de TIFY",
"Brightness": "Luminosité",
"Close PDF list": "Fermer la liste de PDFs",
"Collapse all": "Tout replier",
"Collapse": "Replier",
"Collapse all": "Tout replier",
"Collection": "Collection",
"Contents": "Contenu",
"Contrast": "Contraste",
"Contributors": "Contributeurs",
"Could not load child manifest": "",
"Current Element": "Élement actuel",
"Current page:": "Page actuelle :",
"Description": "Description",
"Dismiss": "Rejeter",
"Document": "Document",
"Documentation": "",
"Download Individual Images": "Télécharger les images individuellement",
"Exit fullscreen": "Quitter le mode plein écran",
"Expand all": "Tout déplier",
"Expand": "Déplier",
"Expand all": "Tout déplier",
"Export": "Exporter",
"Filter collection": "Filtrer la collection",
"Filter pages": "Filtrer les pages",
"First page": "Première page",
"Fullscreen": "Plein écran",
"Fulltext not available for this page": "Texte intégral non disponible pour cette page",
"Fulltext": "Texte intégral",
"Fulltext not available for this page": "Texte intégral non disponible pour cette page",
"Help": "Aide",
"IIIF manifest": "Manifeste IIIF",
"IIIF manifest (collection)": "Manifeste IIIF (collection)",
Expand Down Expand Up @@ -59,7 +63,7 @@
"Title": "Titre",
"Toggle double-page": "Basculer en mode double page",
"Toggle image filters": "Appliquer les filtres visuels",
"User guide": "Guide d’utilisation",
"Toggle page select": "",
"Version": "Version",
"View": "Vue",
"Zoom in": "Zoomer",
Expand Down
10 changes: 6 additions & 4 deletions public/translations/hr.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,30 @@
"About TIFY": "O TIFY-ju",
"Brightness": "Svjetlina",
"Close PDF list": "Zatvori popis PDF-a",
"Collapse all": "Smanji sve",
"Collapse": "Smanji",
"Collapse all": "Smanji sve",
"Collection": "Zbirka",
"Contents": "Sadržaj",
"Contrast": "Kontrast",
"Contributors": "Suradnici",
"Could not load child manifest": "",
"Current Element": "Trenutni element",
"Current page:": "Trenutna stranica:",
"Description": "Opis",
"Dismiss": "Odbaci",
"Document": "Dokument",
"Documentation": "",
"Download Individual Images": "Skini pojedine slike",
"Exit fullscreen": "Isključi preko cijelog ekrana",
"Expand all": "Proširi sve",
"Expand": "Proširi",
"Expand all": "Proširi sve",
"Export": "Izvoz",
"Filter collection": "Filtriraj zbirku",
"Filter pages": "Filtriraj stranice",
"First page": "Prva stranica",
"Fullscreen": "Preko cijelog ekrana",
"Fulltext not available for this page": "Cjeloviti tekst nije dostupan za ovu stranicu",
"Fulltext": "Cjeloviti tekst",
"Fulltext not available for this page": "Cjeloviti tekst nije dostupan za ovu stranicu",
"Help": "Pomoć",
"IIIF manifest": "IIIF-Manifest",
"IIIF manifest (collection)": "IIIF-Manifest (zbirka)",
Expand Down Expand Up @@ -61,7 +63,7 @@
"Title": "Naslov",
"Toggle double-page": "Dvije stranice na stranici",
"Toggle image filters": "Filtri slika",
"User guide": "Korisnički vodič",
"Toggle page select": "",
"Version": "Verzija",
"View": "Pogled",
"Zoom in": "Uvećaj",
Expand Down
22 changes: 19 additions & 3 deletions public/translations/it.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,48 @@
{
"$language": "Italiano",
"$copyright": "",
"$info": "",
"About TIFY": "Informazioni su TIFY",
"Brightness": "Luminosità",
"Close PDF list": "Chiudi l’elenco dei PDF",
"Collapse all": "Comprimi tutto",
"Collapse": "Comprimi",
"Collapse all": "Comprimi tutto",
"Collection": "Collezione",
"Contents": "Contenuto",
"Contrast": "Contrasto",
"Contributors": "",
"Could not load child manifest": "",
"Current Element": "Elemento corrente",
"Current page:": "Pagina corrente:",
"Description": "Descrizione",
"Dismiss": "",
"Document": "Documento",
"Documentation": "",
"Download Individual Images": "Scarica le singole immagini",
"Exit fullscreen": "Esci dalla modalità a schermo intero",
"Expand all": "Espandi tutto",
"Expand": "Espandi",
"Expand all": "Espandi tutto",
"Export": "Esporta",
"Filter collection": "",
"Filter pages": "",
"First page": "Prima pagina",
"Fullscreen": "Schermo intero",
"Fulltext not available for this page": "Testo integrale non disponibile per questa pagina",
"Fulltext": "Testo integrale",
"Fulltext not available for this page": "Testo integrale non disponibile per questa pagina",
"Help": "Aiuto",
"IIIF manifest": "Manifest IIIF",
"IIIF manifest (collection)": "",
"IIIF manifest (current document)": "",
"Image filters": "",
"Info": "Informazioni",
"Last page": "Ultima pagina",
"License": "Licenza",
"Loading": "Caricamento",
"Logo": "",
"Metadata": "Metadati",
"Next page": "Pagina successiva",
"Next section": "Sezione successiva",
"No results": "",
"Other Formats": "Altri formati",
"page": "pagina",
"Page": "Pagina",
Expand All @@ -40,6 +53,7 @@
"Previous section": "Sezione precedente",
"Related Resources": "Risorse correlate",
"Renderings": "Rendering",
"Report a bug": "",
"Reset": "Ripristina",
"Rotate": "Ruota",
"Saturation": "Saturazione",
Expand All @@ -49,6 +63,8 @@
"Title": "Titolo",
"Toggle double-page": "Attiva/disattiva doppia pagina",
"Toggle image filters": "Attiva/disattiva filtri immagine",
"Toggle page select": "",
"Version": "",
"View": "Vista",
"Zoom in": "Zoom in",
"Zoom out": "Zoom out"
Expand Down
2 changes: 1 addition & 1 deletion public/translations/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"Description": "Beschrijving",
"Dismiss": "Verbergen",
"Document": "Document",
"Documentation": "",
"Download Individual Images": "Afzonderlijke afbeeldingen downloaden",
"Exit fullscreen": "Sluit de volledig scherm",
"Expand": "Uitklappen",
Expand Down Expand Up @@ -63,7 +64,6 @@
"Toggle double-page": "Dubbele pagina wisselen",
"Toggle image filters": "Schakel afbeeldingsfilter in",
"Toggle page select": "Schakel paginaselectie in",
"User guide": "Handleiding",
"Version": "Versie",
"View": "Weergave",
"Zoom in": "Vergroten",
Expand Down
22 changes: 19 additions & 3 deletions public/translations/pl.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,48 @@
{
"$language": "Polski",
"$copyright": "",
"$info": "",
"About TIFY": "Więcej o TIFY",
"Brightness": "Jasność",
"Close PDF list": "Zamknij liste plików PDF",
"Collapse all": "Zwiń wszystko",
"Collapse": "Zwiń",
"Collapse all": "Zwiń wszystko",
"Collection": "Kolekcja",
"Contents": "Zawartość",
"Contrast": "Kontrast",
"Contributors": "",
"Could not load child manifest": "",
"Current Element": "Obecny element",
"Current page:": "Obecna strona:",
"Description": "Opis",
"Dismiss": "",
"Document": "Dokument",
"Documentation": "",
"Download Individual Images": "Pobierz obrazy indywidualnie",
"Exit fullscreen": "Wyjdź z trybu pełnoekranowego",
"Expand all": "Rozwiń wszystko",
"Expand": "Rozwiń",
"Expand all": "Rozwiń wszystko",
"Export": "Eksportuj",
"Filter collection": "",
"Filter pages": "",
"First page": "Pierwsza Strona",
"Fullscreen": "Widok pełnoekranowy",
"Fulltext not available for this page": "Pełen tekst niedostępny dla tej strony",
"Fulltext": "Pełen tekst",
"Fulltext not available for this page": "Pełen tekst niedostępny dla tej strony",
"Help": "Pomoc",
"IIIF manifest": "Manifest IIIF",
"IIIF manifest (collection)": "",
"IIIF manifest (current document)": "",
"Image filters": "",
"Info": "Informacje",
"Last page": "Ostatnia strona",
"License": "Licencja",
"Loading": "Ładowanie",
"Logo": "",
"Metadata": "Metadane",
"Next page": "Następna strona",
"Next section": "Następna sekcja",
"No results": "",
"Other Formats": "Inne formaty",
"page": "strona",
"Page": "Strona",
Expand All @@ -40,6 +53,7 @@
"Previous section": "Poprzednia sekcja",
"Related Resources": "Powiązane zasoby",
"Renderings": "Rendery",
"Report a bug": "",
"Reset": "Reset",
"Rotate": "Obróć",
"Saturation": "Saturacja",
Expand All @@ -49,6 +63,8 @@
"Title": "Tytuł",
"Toggle double-page": "Przejdź do widoku dwóch stron",
"Toggle image filters": "Włącz filtry obrazów",
"Toggle page select": "",
"Version": "",
"View": "Widok",
"Zoom in": "Przybliżenie",
"Zoom out": "Oddalenie"
Expand Down

0 comments on commit 4fdb835

Please sign in to comment.