Skip to content

Commit

Permalink
Create German translation (#523)
Browse files Browse the repository at this point in the history
* Init de

* Translate to German

* Add German as supported locale

* Add test

* Copy JSON

* Translate

* Compile message catalog

`msgfmt admin.po -o admin.mo`

* Add localized but NOT minnified versions of flatpickr & momentjs

* Update year

* Fix decimal divider

* Use minified versions of JS deps

* Partially revert de.json

Fixes babel defaults

* Compile

* Update changelog

* Fix format
  • Loading branch information
disrupted authored Mar 25, 2024
1 parent 55f1ecf commit 96c262a
Show file tree
Hide file tree
Showing 8 changed files with 392 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/changelog/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

### Added

* Add Support for favicon customization by [@omarmoo5](https://github.com/omarmoo5) in [#520](https://github.com/jowilf/starlette-admin/pull/520)
* Add German translation
by [@disrupted](https://github.com/disrupted)
in [#523](https://github.com/jowilf/starlette-admin/pull/523)
* Add Support for favicon customization
by [@omarmoo5](https://github.com/omarmoo5)
in [#520](https://github.com/jowilf/starlette-admin/pull/520)

## [0.13.2] - 2023-02-04

Expand Down
1 change: 1 addition & 0 deletions starlette_admin/i18n.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

DEFAULT_LOCALE = "en"
SUPPORTED_LOCALES = [
"de", # German
"en", # English
"fr", # French
"ru", # Russian
Expand Down
172 changes: 172 additions & 0 deletions starlette_admin/statics/i18n/dt/de.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
{
"aria": {
"sortAscending": ": aktivieren, um Spalte aufsteigend zu sortieren",
"sortDescending": ": aktivieren, um Spalte absteigend zu sortieren"
},
"buttons": {
"collection": "Aktionen <span class=\"ui-button-icon-primary ui-icon ui-icon-triangle-1-s\"></span>",
"colvis": "Spaltensichtbarkeit",
"colvisRestore": "Sichtbarkeit wiederherstellen",
"copy": "Kopieren",
"copyKeys": "Drücken Sie die Taste <i>STRG</i> oder <i>⌘</i> + <i>C</i> um die Tabelle<br />in den Zwischenspeicher zu kopieren.<br /><br />Um den Vorgang abzubrechen, klicken Sie die Nachricht an oder drücken Sie die Escape-Taste.",
"copySuccess": {
"1": "1 Zeile kopiert",
"_": "%d Zeilen kopiert"
},
"copyTitle": "In Zwischenablage kopieren",
"createState": "Ansicht erstellen",
"csv": "CSV",
"excel": "Excel",
"pageLength": {
"-1": "Alle Zeilen anzeigen",
"1": "Zeige 1 Zeile",
"_": "Zeige %d Zeilen"
},
"pdf": "PDF",
"print": "Drucken",
"removeAllStates": "Alle Ansichten entfernen",
"removeState": "Entfernen",
"renameState": "Umbenennen",
"savedStates": "Gespeicherte Ansicht",
"stateRestore": "Ansicht %d",
"updateState": "Aktualisieren"
},
"datetime": {
"hours": "Stunden",
"minutes": "Minuten",
"months": [
"Januar",
"Februar",
"März",
"April",
"Mai",
"Juni",
"Juli",
"August",
"September",
"Oktober",
"November",
"Dezember"
],
"next": "Nachher",
"previous": "Vorher",
"seconds": "Sekunden",
"unknown": "Unbekannt",
"weekdays": [
"Sonntag",
"Montag",
"Dienstag",
"Mittwoch",
"Donnerstag",
"Freitag",
"Samstag"
]
},
"decimal": ",",
"emptyTable": "Keine Daten in der Tabelle vorhanden",
"info": "_START_ bis _END_ von _TOTAL_ Einträgen",
"infoEmpty": "Keine Daten vorhanden",
"infoFiltered": "(gefiltert von _MAX_ Einträgen)",
"infoThousands": ".",
"lengthMenu": "_MENU_ Zeilen anzeigen",
"loadingRecords": "Wird geladen ..",
"paginate": {
"first": "Erste",
"last": "Letzte",
"next": "Nächste",
"previous": "Vorherige"
},
"processing": "Bitte warten ..",
"search": "Suche:",
"searchBuilder": {
"add": "Bedingung hinzufügen",
"button": {
"0": "<i class=\"fa-solid fa-filter\"></i> Such-Baukasten",
"_": "<i class=\"fa-solid fa-filter\"></i> Such-Baukasten (%d)"
},
"clearAll": "Alle entfernen",
"condition": "Bedingung",
"conditions": {
"array": {
"contains": "enthält",
"empty": "ist leer",
"equals": "ist gleich",
"not": "ist ungleich",
"notEmpty": "ist nicht leer",
"without": "aber nicht"
},
"date": {
"after": "Nach",
"before": "Vor",
"between": "Zwischen",
"empty": "Leer",
"equals": "Gleich",
"not": "Nicht",
"notBetween": "Nicht zwischen",
"notEmpty": "Nicht leer"
},
"number": {
"between": "Zwischen",
"empty": "Leer",
"equals": "Entspricht",
"gt": "Größer als",
"gte": "Größer als oder gleich",
"lt": "Kleiner als",
"lte": "Kleiner als oder gleich",
"not": "Nicht",
"notBetween": "Nicht zwischen",
"notEmpty": "Nicht leer"
},
"string": {
"contains": "Beinhaltet",
"empty": "Leer",
"endsWith": "Endet mit",
"equals": "Entspricht",
"not": "Nicht",
"notContains": "enthält nicht",
"notEmpty": "Nicht leer",
"notEndsWith": "endet nicht mit",
"notStartsWith": "startet nicht mit",
"startsWith": "Startet mit"
}
},
"data": "Daten",
"deleteTitle": "Filterregel entfernen",
"leftTitle": "Äußere Kriterien",
"logicAnd": "Und",
"logicOr": "Oder",
"rightTitle": "Innere Kriterien",
"title": {
"0": "Such-Baukasten",
"_": "Such-Baukasten (%d)"
},
"value": "Wert"
},
"select": {
"cells": {
"1": "1 Zelle ausgewählt",
"_": "%d Zellen ausgewählt"
},
"columns": {
"1": "1 Spalte ausgewählt",
"_": "%d Spalten ausgewählt"
},
"rows": {
"1": "1 Zeile ausgewählt",
"_": "%d Zeilen ausgewählt"
}
},
"starlette-admin": {
"buttons": {
"export": "Exportieren"
},
"conditions": {
"empty": "Leer",
"false": "Falsch",
"notEmpty": "Nicht leer",
"true": "Wahr"
}
},
"thousands": ".",
"zeroRecords": "Keine übereinstimmenden Datensätze gefunden"
}
7 changes: 7 additions & 0 deletions starlette_admin/statics/i18n/flatpickr/de.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions starlette_admin/statics/i18n/momentjs/de.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Loading

0 comments on commit 96c262a

Please sign in to comment.