From f2eab1497498b3a85e11003d08d1c2bb1ca600c2 Mon Sep 17 00:00:00 2001 From: Markus Hofmann Date: Fri, 11 Jul 2025 15:43:33 +0200 Subject: [PATCH 1/2] [TASK] Add german translation labels --- Resources/Private/Language/de.locallang.xlf | 28 ++++++++++ .../Private/Language/de.locallang_cke.xlf | 52 +++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 Resources/Private/Language/de.locallang.xlf create mode 100644 Resources/Private/Language/de.locallang_cke.xlf diff --git a/Resources/Private/Language/de.locallang.xlf b/Resources/Private/Language/de.locallang.xlf new file mode 100644 index 0000000..b82c1d3 --- /dev/null +++ b/Resources/Private/Language/de.locallang.xlf @@ -0,0 +1,28 @@ + + + +
+ + + Optimize with DeepL Write + Mit DeepL Write optimieren + + + Optimize with DeepL Write + Mit DeepL Write optimieren + + + Optimize your content with DeepL Write and choose your writing style, tone or form of address. E.g., Simple: For simple, easy-to-understand texts for a wide audience. + Optimieren Sie Ihre Inhalte mit DeepL Write und wählen Sie Ihren Schreibstil, Tonfall oder die Anredeform. Z.B. Einfach: Für simple, leicht verständliche Texte für ein breites Publikum. + + + + diff --git a/Resources/Private/Language/de.locallang_cke.xlf b/Resources/Private/Language/de.locallang_cke.xlf new file mode 100644 index 0000000..ae053f2 --- /dev/null +++ b/Resources/Private/Language/de.locallang_cke.xlf @@ -0,0 +1,52 @@ + + + +
+ + + DeepL Write + DeepL Write + + + Optimize text with DeepL Write + Text mit DeepL Write optimieren + + + Style + Stil + + + Tone + Tonfall + + + Select a style to rewrite your text in a way that fits your audience and goals. + Wählen Sie einen Stil, um Ihren Text für Ihre Zielgruppe und Ziele passend umzuschreiben. + + + Select the desired tone for your text + Wählen Sie den gewünschten Tonfall für Ihren Text + + + You can optimize your text by using the DeepL Write API. For some languages, you can choose the style or tone. Only one or the other is possible. + Sie können Ihren Text mithilfe der DeepL Write API optimieren. Für einige Sprachen können Sie den Stil oder Tonfall wählen. Nur eines von beiden ist möglich. + + + Optimize text + Text optimieren + + + Apply changes + Änderungen übernehmen + + + + From 15d42d041ffdc24d6f5655a01409dc718aecd88b Mon Sep 17 00:00:00 2001 From: Markus Hofmann Date: Fri, 11 Jul 2025 16:14:30 +0200 Subject: [PATCH 2/2] [TASK] Add translations for the enums and adjust styling Add translation labels for style and tone buttons avoiding the enum name as uppercase in the overlay. Adjust the styling of the buttons giving them more place and allow four in a row. --- .../Backend/Templates/CkEditor/Edit.html | 46 ++++++++---- .../Private/Language/de.locallang_cke.xlf | 72 +++++++++++++++++++ Resources/Private/Language/locallang_cke.xlf | 54 ++++++++++++++ 3 files changed, 158 insertions(+), 14 deletions(-) diff --git a/Resources/Private/Backend/Templates/CkEditor/Edit.html b/Resources/Private/Backend/Templates/CkEditor/Edit.html index 2244674..367031f 100644 --- a/Resources/Private/Backend/Templates/CkEditor/Edit.html +++ b/Resources/Private/Backend/Templates/CkEditor/Edit.html @@ -43,13 +43,22 @@

-

- -

- - - - +
+

+ +

+ +
+ + +
+
+
@@ -57,13 +66,22 @@

-

- -

- - - - +
+

+ +

+ +
+ + +
+
+
diff --git a/Resources/Private/Language/de.locallang_cke.xlf b/Resources/Private/Language/de.locallang_cke.xlf index ae053f2..6d72862 100644 --- a/Resources/Private/Language/de.locallang_cke.xlf +++ b/Resources/Private/Language/de.locallang_cke.xlf @@ -47,6 +47,78 @@ Apply changes Änderungen übernehmen + + Default + Standard + + + Enthusiastic + Enthusiastisch + + + Friendly + Freundlich + + + Confident + Selbstbewusst + + + Diplomatic + Diplomatisch + + + Prefer Enthusiastic + Bevorzugt Enthusiastisch + + + Prefer Friendly + Bevorzugt Freundlich + + + Prefer Confident + Bevorzugt Selbstbewusst + + + Prefer Diplomatic + Bevorzugt Diplomatisch + + + Default + Standard + + + Simple + Einfach + + + Business + Geschäftlich + + + Academic + Akademisch + + + Casual + Locker + + + Prefer Simple + Bevorzugt Einfach + + + Prefer Business + Bevorzugt Geschäftlich + + + Prefer Academic + Bevorzugt Akademisch + + + Prefer Casual + Bevorzugt Locker + diff --git a/Resources/Private/Language/locallang_cke.xlf b/Resources/Private/Language/locallang_cke.xlf index 14ce5eb..138e166 100644 --- a/Resources/Private/Language/locallang_cke.xlf +++ b/Resources/Private/Language/locallang_cke.xlf @@ -37,6 +37,60 @@ Apply changes + + Default + + + Enthusiastic + + + Friendly + + + Confident + + + Diplomatic + + + Prefer Enthusiastic + + + Prefer Friendly + + + Prefer Confident + + + Prefer Diplomatic + + + Default + + + Simple + + + Business + + + Academic + + + Casual + + + Prefer Simple + + + Prefer Business + + + Prefer Academic + + + Prefer Casual +