From d1a8177177e37695aed94d6802b817f92ea88434 Mon Sep 17 00:00:00 2001
From: Ole Wieners
Date: Fri, 8 Sep 2023 16:12:30 +0200
Subject: [PATCH] Clean up translations
This moves any top-level strings to `general`,
removes some (but not all) duplications,
renames some strings and fixes some punctuation stuff.
---
frontend/src/i18n/locales/de.yaml | 54 ++++++++----------
frontend/src/i18n/locales/en.yaml | 57 ++++++++-----------
frontend/src/layout/Navigation.tsx | 4 +-
frontend/src/layout/Root.tsx | 2 +-
frontend/src/layout/header/UserBox.tsx | 6 +-
frontend/src/layout/header/index.tsx | 8 ++-
frontend/src/routes/About.tsx | 2 +-
frontend/src/routes/Login.tsx | 4 +-
frontend/src/routes/Video.tsx | 8 +--
.../src/routes/manage/Realm/ChildOrder.tsx | 2 +-
.../Realm/Content/Edit/EditMode/index.tsx | 2 +-
frontend/src/routes/manage/Realm/General.tsx | 4 +-
frontend/src/routes/manage/Video/Shared.tsx | 2 +-
frontend/src/routes/manage/index.tsx | 4 +-
frontend/src/ui/Breadcrumbs.tsx | 2 +-
frontend/src/ui/Modal.tsx | 4 +-
frontend/src/ui/SearchableSelect.tsx | 2 +-
frontend/src/ui/player/index.tsx | 2 +-
frontend/src/ui/time.tsx | 2 +-
19 files changed, 81 insertions(+), 90 deletions(-)
diff --git a/frontend/src/i18n/locales/de.yaml b/frontend/src/i18n/locales/de.yaml
index 6d0297142..71a09f1b4 100644
--- a/frontend/src/i18n/locales/de.yaml
+++ b/frontend/src/i18n/locales/de.yaml
@@ -1,34 +1,35 @@
-language-name: Deutsch
-language: Sprache
-language-selection: Sprachauswahl, Deutsch ausgewählt
-loading: Lade...
-close: Schließen
-cancel: Abbrechen
-save: Speichern
-back: Zurück
-home: Startseite
-navigation: Navigation
-rename: Umbenennen
-this-field-is-required: Dieses Feld ist erforderlich.
-version-information: Version
-
general:
- goto-homepage: Zur Startseite
+ language:
+ language_one: Sprache
+ language_other: Sprachen
+ name: Deutsch
+ selection: Sprachauswahl, Deutsch ausgewählt
+ loading: Lade...
+ home: Startseite
homepage: Startseite
+ navigation: Navigation
leave-page-confirmation: >
Seite verlassen? Vorgenommene Änderungen sind möglicherweise noch nicht gespeichert!
+ action:
+ close: Schließen
+ cancel: Abbrechen
+ save: Speichern
+ back: Zurück
+ rename: Umbenennen
+ goto-homepage: Zur Startseite
+ share: Teilen
+ version-information: Version
logo-alt: Das Logo von „{{title}}“
no-root-children: Noch keine Seiten ...
- failed-to-load-thumbnail: Konnte Vorschaubild nicht laden
+ failed-to-load-thumbnail: Vorschaubild konnte nicht geladen werden.
yes: Ja
no: Nein
- share: Teilen
form:
+ this-field-is-required: Dieses Feld ist erforderlich.
select:
no-options: Keine Optionen
select-option: Option auswählen...
-
welcome:
title: Willkommen zu Tobira!
body: >
@@ -50,7 +51,7 @@ errors:
are-you-connected-to-internet: Sind Sie mit dem Internet verbunden?
unknown: Unbekannter Fehler.
detailed-error-info: Detaillierte Fehlerinformationen für Entwickler
- embedded: In der eingebetteten Anwendung ist ein Fehler aufgetreten
+ embedded: In der eingebetteten Anwendung ist ein Fehler aufgetreten.
not-found:
page-not-found: Seite nicht gefunden
@@ -126,8 +127,6 @@ video:
created: Erstellt
updated: Zuletzt angepasst
duration: Abspielzeit
- language_one: Sprache
- language_other: Sprachen
part-of-series: Teil von Serie
more-from-series: Mehr von „{{series}}“
deleted-video-block: Das hier referenzierte Video wurde gelöscht.
@@ -146,15 +145,14 @@ video:
source: Quelle
stream-ended: Dieser Stream ist beendet.
stream-not-started-yet: Dieser Stream hat noch nicht begonnen.
- started-generic: Gestartet
- started: Gestartet {{duration}}
+ started: Gestartet
+ started-when: Gestartet {{duration}}
starts: Startet
starts-in: Startet {{duration}}
description:
show-more: Mehr anzeigen
show-less: Weniger anzeigen
embed:
- button: Einbetten
title: Video einbetten
copy-embed-code-to-clipboard: Einbettungscode in Zwischenablage kopieren
caption: Untertitel
@@ -294,10 +292,6 @@ upload:
jwt-invalid: 'Interner Fremdauthentifizierungsfehler: Opencast hat das Hochladen nicht autorisiert.'
manage:
- nav:
- dashboard: Dashboard
- my-videos: Meine Videos
-
dashboard:
title: Dashboard
upload-tile: Hier können Sie Videos von Ihrem Computer hochladen.
@@ -473,10 +467,8 @@ manage:
title: Titel
show-title: Titel anzeigen
- save: Speichern
cancel: Verwerfen
confirm-cancel: Änderungen verwerfen?
-
cancel-warning: Ihre Änderungen wurden noch nicht gespeichert!
removing-failed: Entfernen ist fehlgeschlagen.
@@ -524,4 +516,4 @@ api-remote-errors:
Kontaktieren Sie einen Systemadministrator für weitere Unterstützung.
embed:
- not-supported: Diese Seite kann nicht eingebettet werden
+ not-supported: Diese Seite kann nicht eingebettet werden.
diff --git a/frontend/src/i18n/locales/en.yaml b/frontend/src/i18n/locales/en.yaml
index c374b26e1..a2254af12 100644
--- a/frontend/src/i18n/locales/en.yaml
+++ b/frontend/src/i18n/locales/en.yaml
@@ -1,28 +1,30 @@
-language-name: English
-language: Language
-language-selection: Language selection, English selected
-loading: Loading...
-close: Close
-cancel: Cancel
-save: Save
-back: Back
-home: Home
-navigation: Navigation
-rename: Rename
-this-field-is-required: This field is required.
-version-information: Version
-
general:
+ language:
+ language_one: Language
+ language_other: Languages
+ name: English
+ selection: Language selection, English selected
+ loading: Loading...
+ home: Home
homepage: Homepage
- goto-homepage: Go to homepage
+ navigation: Navigation
leave-page-confirmation: Leave page? Changes you made may not be saved!
+ action:
+ close: Close
+ cancel: Cancel
+ save: Save
+ back: Back
+ rename: Rename
+ goto-homepage: Go to homepage
+ share: Share
+ version-information: Version
logo-alt: Logo of “{{title}}”
no-root-children: No pages yet ...
- failed-to-load-thumbnail: Failed to load thumbnail
+ failed-to-load-thumbnail: Failed to load thumbnail.
yes: "Yes"
no: "No"
- share: Share
form:
+ this-field-is-required: This field is required.
select:
no-options: No options
select-option: Select option...
@@ -48,7 +50,7 @@ errors:
are-you-connected-to-internet: Are you connected to the internet?
unknown: Unknown error.
detailed-error-info: Detailed error information for developers
- embedded: An error occurred in the embedded application
+ embedded: An error occurred in the embedded application.
not-found:
page-not-found: Page not found
@@ -123,16 +125,14 @@ video:
created: Created
updated: Last updated
duration: Duration
- language_one: Language
- language_other: Languages
part-of-series: Part of series
more-from-series: More from “{{series}}”
deleted-video-block: The video referenced here was deleted.
not-allowed-video-block: You are not allowed to view the video embedded here.
not-ready:
- title: Video not processed, yet
+ title: Video not processed yet
text: >
- This video hasn't been processed, yet. This should
+ This video hasn't been processed yet. This should
happen automatically soon. Try again in a few minutes.
label: unprocessed
thumbnail-for: Thumbnail for “{{video}}”
@@ -143,15 +143,14 @@ video:
source: Source
stream-ended: This stream has ended.
stream-not-started-yet: This stream has not started yet.
- started-generic: Started
- started: Started {{duration}}
+ started: Started
+ started-when: Started {{duration}}
starts: Starts
starts-in: Starts {{duration}}
description:
show-more: Show more
show-less: Show less
embed:
- button: Embed
title: Embed video
copy-embed-code-to-clipboard: Copy embed code to clipboard
caption: Caption
@@ -287,10 +286,6 @@ upload:
jwt-invalid: 'Internal cross-authentication error: Opencast did not authorize the upload.'
manage:
- nav:
- dashboard: Dashboard
- my-videos: My videos
-
dashboard:
title: Dashboard
upload-tile: Here you can upload a new video from your computer.
@@ -460,10 +455,8 @@ manage:
title: Title
show-title: Show title
- save: Save
cancel: Discard
confirm-cancel: Discard changes?
-
cancel-warning: Your changes have not yet been saved!
removing-failed: Removing failed.
@@ -511,4 +504,4 @@ api-remote-errors:
further assistance.
embed:
- not-supported: This page can't be embedded
+ not-supported: This page can't be embedded.
diff --git a/frontend/src/layout/Navigation.tsx b/frontend/src/layout/Navigation.tsx
index 9d2e0b0f8..9f1e8d3f7 100644
--- a/frontend/src/layout/Navigation.tsx
+++ b/frontend/src/layout/Navigation.tsx
@@ -49,7 +49,7 @@ export const Nav: React.FC = ({ fragRef }) => {
const parent = realm.isUserRoot
? {
path: "/",
- name: t("home"),
+ name: t("general.home"),
isMainRoot: true,
}
: realm.parent;
@@ -78,7 +78,7 @@ export const Nav: React.FC = ({ fragRef }) => {
{/* Show arrow and hide chevron in burger menu */}
- {parent.isMainRoot ? t("home") : parent.name ?? }
+ {parent.isMainRoot ? t("general.home") : parent.name ?? }