Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add german translations #604

Merged
merged 2 commits into from
Nov 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion blog-api/config/common/params.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

return [
'locale' => [
'locales' => ['en' => 'en-US', 'ru' => 'ru-RU'],
'locales' => ['en' => 'en-US', 'ru' => 'ru-RU', 'de' => 'de-DE'],
'ignoredRequests' => [
'/debug**',
'/inspect**',
Expand Down
7 changes: 7 additions & 0 deletions blog-api/resources/messages/de/app.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

declare(strict_types=1);

return [
'404.title' => 'Seite nicht gefunden',
];
2 changes: 1 addition & 1 deletion blog/config/web/params.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
],

'locale' => [
'locales' => ['en' => 'en-US', 'ru' => 'ru-RU', 'id' => 'id-ID', 'sk' => 'sk-SK'],
'locales' => ['en' => 'en-US', 'ru' => 'ru-RU', 'id' => 'id-ID', 'sk' => 'sk-SK', 'de' => 'de-DE'],
'ignoredRequests' => [
'/debug**',
'/inspect**',
Expand Down
55 changes: 55 additions & 0 deletions blog/resources/messages/de/app.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?php

declare(strict_types=1);

return [
'gridview.api' => 'API',
'gridview.create.at' => 'Erzeugt am',
'gridview.login' => 'Anmelden',
'gridview.profile' => 'Profil',
'gridview.title' => 'Liste der Benutzer',
'home.caption.slide1' => '<h5>Hello, everyone!</h5><p>Ein toller Tag, um Yii 3 auszuprobieren, richtig?</p>',
'home.caption.slide2' => '<h5>Der Code wartet!</h5><p>Schau dir den Projektcode an. Er ist nicht ideal, da es sich auch um eine Entwicklungs-Sandbox handelt, bietet aber einen mittelmäßigen Überblick über die Funktionen von Yii 3.</p>',
'home.caption.slide3' => '<h5>Wir brauchen Rückmeldungen!</h5><p>Bitte gib uns deine Rückmeldungen über die im README genannten Telegram- und Slack-Kanäle.</p>',
'layout.add.post' => 'Neuer Beitrag',
'layout.add.random-content' => 'Füge zufälligen Inhalt ein',
'layout.add.tag' => 'Neues Stichwort',
'layout.add' => 'Hinzufügen',
'layout.archive.for-year' => 'Archiv für {year}',
'layout.archive' => 'Archiv',
'layout.blog' => 'Blog',
'layout.change-language' => 'Kanal Sprache',
'layout.console' => 'Konsole',
'layout.content' => 'Inhalt',
'layout.create.new-user' => 'Erstelle neuen Benutzer',
'layout.db.schema' => 'DB Schema',
'layout.go.home' => 'Zurück zur Startseite',
'layout.login' => 'Anmelden',
'layout.migrations' => 'Migrationen',
'layout.no-records' => 'Keine Einträge',
'layout.not-found' => 'Nicht gefunden',
'layout.page.not-found' => 'Die Seite {url} konnte nicht gefunden werden.',
'layout.pagination-summary' => 'Zeige {pageSize} von {total} Beiträgen',
'layout.password-verify' => 'Wiederhole Passwort',
'layout.password' => 'Passwort',
'layout.rbac.assign-role' => 'Rolle zuweisen',
'layout.remember' => 'Erinnere dich an mich',
'layout.reset' => 'Zurücksetzen',
'layout.show-more' => 'Zeige mehr',
'layout.submit' => 'Absenden',
'layout.title' => 'Titel',
'layout.total.posts' => 'Insgesamt {count} Beiträge',
'menu.blog' => 'Blog',
'menu.comments-feed' => 'Kommentar-Feed',
'menu.contact' => 'Kontakt',
'menu.language' => 'Sprache',
'menu.login' => 'Anmelden',
'menu.logout' => 'Abmelden ({login})',
'menu.signup' => 'Registrieren',
'menu.swagger' => 'Swagger',
'menu.users' => 'Benutzer',
'signup' => 'Registrieren',
'validator.invalid.login.password' => 'Ungültiger Benutzername oder Passwort',
'validator.password.not.match' => 'Passwörter stimmen nicht überein',
'validator.user.exist' => 'Ein Benutzer mit diesem Namen ist bereits vorhanden',
];
4 changes: 4 additions & 0 deletions blog/resources/views/layout/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@
'label' => 'Indonesia',
'url' => $urlGenerator->generateFromCurrent(['_language' => 'id'], fallbackRouteName: 'site/index'),
],
[
'label' => 'German',
'url' => $urlGenerator->generateFromCurrent(['_language' => 'de'], fallbackRouteName: 'site/index'),
],
],
],
[
Expand Down
Loading