From f5638774c17fb535a5c24cd506d22c3a8c68da15 Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Sun, 26 Dec 2021 21:42:16 +0100 Subject: [PATCH 1/5] feat: Translate the plugin to German --- .../ComputerConfigHistoryAction/index.jelly | 14 +++++----- .../index_de.properties | 19 ++++++++++++++ .../restoreQuestion.jelly | 6 ++--- .../restoreQuestions_de.properties | 3 +++ .../showDiffFiles.jelly | 22 ++++++++-------- .../showDiffFiles_de.properties | 20 ++++++++++++++ .../JobConfigBadgeAction/badge.jelly | 2 +- .../JobConfigHistory/config.jelly | 4 +-- .../JobConfigHistory/config_de.properties | 15 +++++++++++ .../JobConfigHistoryProjectAction/index.jelly | 20 +++++++------- .../index_de.properties | 22 ++++++++++++++++ .../restoreQuestion.jelly | 6 ++--- .../restoreQuestion_de.properties | 3 +++ .../showDiffFiles.jelly | 23 ++++++++-------- .../showDiffFiles_de.properties | 21 +++++++++++++++ .../JobConfigHistoryRootAction/history.jelly | 15 ++++++----- .../history_de.properties | 22 ++++++++++++++++ .../JobConfigHistoryRootAction/index.jelly | 11 ++++---- .../index_de.properties | 26 +++++++++++++++++++ .../restoreQuestion.jelly | 6 ++--- .../restoreQuestion_de.properties | 2 ++ .../showDiffFiles.jelly | 22 ++++++++-------- .../showDiffFiles_de.properties | 16 ++++++++++++ .../JobLocalConfiguration/config.jelly | 9 +++---- .../config_de.properties | 3 +++ 25 files changed, 252 insertions(+), 80 deletions(-) create mode 100644 src/main/resources/hudson/plugins/jobConfigHistory/ComputerConfigHistoryAction/index_de.properties create mode 100644 src/main/resources/hudson/plugins/jobConfigHistory/ComputerConfigHistoryAction/restoreQuestions_de.properties create mode 100644 src/main/resources/hudson/plugins/jobConfigHistory/ComputerConfigHistoryAction/showDiffFiles_de.properties create mode 100644 src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistory/config_de.properties create mode 100644 src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryProjectAction/index_de.properties create mode 100644 src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryProjectAction/restoreQuestion_de.properties create mode 100644 src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryProjectAction/showDiffFiles_de.properties create mode 100644 src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/history_de.properties create mode 100644 src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/index_de.properties create mode 100644 src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/restoreQuestion_de.properties create mode 100644 src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/showDiffFiles_de.properties create mode 100644 src/main/resources/hudson/plugins/jobConfigHistory/JobLocalConfiguration/config_de.properties diff --git a/src/main/resources/hudson/plugins/jobConfigHistory/ComputerConfigHistoryAction/index.jelly b/src/main/resources/hudson/plugins/jobConfigHistory/ComputerConfigHistoryAction/index.jelly index cf95d5d1..cc497a1b 100644 --- a/src/main/resources/hudson/plugins/jobConfigHistory/ComputerConfigHistoryAction/index.jelly +++ b/src/main/resources/hudson/plugins/jobConfigHistory/ComputerConfigHistoryAction/index.jelly @@ -1,15 +1,15 @@ - - + + - +

${%Agent Configuration History}

- + + @@ -19,7 +19,7 @@
- + - + - + @@ -237,9 +237,9 @@ - + - + diff --git a/src/main/resources/hudson/plugins/jobConfigHistory/ComputerConfigHistoryAction/showDiffFiles_de.properties b/src/main/resources/hudson/plugins/jobConfigHistory/ComputerConfigHistoryAction/showDiffFiles_de.properties new file mode 100644 index 00000000..bffaab2f --- /dev/null +++ b/src/main/resources/hudson/plugins/jobConfigHistory/ComputerConfigHistoryAction/showDiffFiles_de.properties @@ -0,0 +1,20 @@ +Job\ Configuration\ History=Job Konfigurationsverlauf +Agent\ Configuration\ Difference=Knoten-Konfigurations-Unterschied +Warning=Warung +Corrupt\ XML\ file(s)=Defekte XML-Datei(en) +Revision=Revision +No\ permission\ to\ view\ config\ history=Keine Berechtigung zum Anzeigen des Konfigurationsverlaufes +No\ agent\ configuration\ history\ available=Kein Knotenkonfigurationsverlauf verfügbar +Hide\ Version\ Changes=Versionsänderungen ausblenden +Show\ Version\ Changes=Versionsänderungen anzeigen +Restore\ this\ configuration=Diese Konfiguration wiederherstellen +Date=Datum +Operation=Operation +User=Benutzer +Newer\ Change=Neue Änderung +Older\ Change=Alte Änderung +No\ lines\ changed=Keine Zeilen geändert +Expand\ Diff=Diff erweitern +Shrink\ Diff=Diff verkleinern +Prev=Vorherige +Next=Nächste diff --git a/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigBadgeAction/badge.jelly b/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigBadgeAction/badge.jelly index bfdd30c2..ffecd15a 100644 --- a/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigBadgeAction/badge.jelly +++ b/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigBadgeAction/badge.jelly @@ -1,5 +1,5 @@ - + x diff --git a/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistory/config.jelly b/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistory/config.jelly index 39214905..bc4cd698 100644 --- a/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistory/config.jelly +++ b/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistory/config.jelly @@ -1,5 +1,5 @@ - + @@ -44,7 +44,7 @@ - + - - + + - +

${%Job Configuration History}

- + + @@ -20,7 +19,7 @@
${%Warning}: ${%Corrupt xml file(s)}: ${%Warning}: ${%Corrupt XML file(s)}:
@@ -84,7 +84,7 @@ - +
@@ -180,9 +180,9 @@
... ... ${line.left.lineNumber}... ... ${line.left.lineNumber}
- + - + - + @@ -256,9 +255,9 @@ - + - + diff --git a/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryProjectAction/showDiffFiles_de.properties b/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryProjectAction/showDiffFiles_de.properties new file mode 100644 index 00000000..1e2adfa7 --- /dev/null +++ b/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryProjectAction/showDiffFiles_de.properties @@ -0,0 +1,21 @@ +Job\ Configuration\ History=Job Konfigurationsverlauf +Job\ Configuration\ Difference=Job Konfigurationsunterschied +Warning=Warnung +Corrupt\ XML\ file(s)=Korrupte XML Datei(en) +Revision=Revision +No\ permission\ to\ view\ config\ history=Keine Berechtigung zum Anzeigen des Konfigurationsverlaufes +No\ job\ configuration\ history\ available=Kein Job-Konfigurationsverlauf verfügbar +Hide\ Version\ Changes=Versionsänderungen ausblenden +Show\ Version\ Changes=Versionsänderungen anzeigen +Older\ Change=Alte Änderungen +Newer\ Change=Neue Änderungen +Restore\ this\ configuration=Diese Konfiguration wiederherstellen +Date=Datum +Operation=Operation +User=Benutzer +Change\ Reason=Änderungsgrund +No\ lines\ changed=Keine Zeilen geändert +Expand\ Diff=Diff erweitern +Shrink\ Diff=Diff verkleinern +Prev=Vorherige +Next=Nächste diff --git a/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/history.jelly b/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/history.jelly index 1ac90000..52bc8b2d 100644 --- a/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/history.jelly +++ b/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/history.jelly @@ -1,8 +1,8 @@ - - + + - + @@ -53,7 +53,7 @@ - + + @@ -23,7 +23,7 @@
${%Warning}: ${%Corrupt xml file(s)}: ${%Warning}: ${%Corrupt XML file(s)}:
@@ -86,7 +85,7 @@ - +
@@ -199,9 +198,9 @@
... ... ${line.left.lineNumber}... ... ${line.left.lineNumber}
- + - + - + @@ -222,9 +222,9 @@ - + - + diff --git a/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/showDiffFiles_de.properties b/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/showDiffFiles_de.properties new file mode 100644 index 00000000..c413dc21 --- /dev/null +++ b/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/showDiffFiles_de.properties @@ -0,0 +1,16 @@ +Job\ Configuration\ History=Job-Konfigurationsverlauf +Back\ to\ Dashboard=Zurück zum Dashboard +Back\ to\ Overview=Zurück zur Übersicht +Configuration\ Difference=Konfigurationsunterschied +Warning=Warung +Corrupt\ XML\ files(s)=Korrupte XML-Datei(en) +Revision=Revision +No\ permission\ to\ view\ system\ changes=Keine Berechtigung zum Anzeigen von Systemänderungen +No\ permission\ to\ view\ config\ history=Keine Berechtigung zum Anzeigen des Konfigurationsverlaufes +No\ configuration\ history\ available=Kein Konfigurationsverlauf verfügbar +Hide\ Version\ Changes=Versionsänderungen ausblenden +Show\ Version\ Changes=Versionsänderungen anzeigen +Older\ Change=Alte Änderungen +Newer\ Change=Neue Änderungen +Date=Datum +No\ lines\ changed=Keine Zeilen geändert diff --git a/src/main/resources/hudson/plugins/jobConfigHistory/JobLocalConfiguration/config.jelly b/src/main/resources/hudson/plugins/jobConfigHistory/JobLocalConfiguration/config.jelly index e06b9e2d..55235a51 100644 --- a/src/main/resources/hudson/plugins/jobConfigHistory/JobLocalConfiguration/config.jelly +++ b/src/main/resources/hudson/plugins/jobConfigHistory/JobLocalConfiguration/config.jelly @@ -1,7 +1,6 @@ - - + + @@ -9,11 +8,11 @@
- JobConfigHistory
change message: + ${%JobConfigHistory}
${%change message}:
diff --git a/src/main/resources/hudson/plugins/jobConfigHistory/JobLocalConfiguration/config_de.properties b/src/main/resources/hudson/plugins/jobConfigHistory/JobLocalConfiguration/config_de.properties new file mode 100644 index 00000000..6ed3d4bc --- /dev/null +++ b/src/main/resources/hudson/plugins/jobConfigHistory/JobLocalConfiguration/config_de.properties @@ -0,0 +1,3 @@ +Job\ Config\ History=Job Konfigurationsverlauf +change\ message=Änderungsnachricht +This\ field\ cannot\ be\ empty\,\ please\ enter\ a\ valid\ notice=Dies ist ein Pflichtfeld. Bitte geben Sie eine gültige Änderungsnachricht an From 6c44730fd65288a23671abdc44a3c59c41d866d1 Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Sun, 26 Dec 2021 21:49:54 +0100 Subject: [PATCH 2/5] feat: Exchange warnings symbol with exclamation mark --- .../ComputerConfigHistoryAction/restoreQuestion.jelly | 4 ++-- .../ComputerConfigHistoryAction/showDiffFiles.jelly | 4 ++-- .../JobConfigHistoryProjectAction/restoreQuestion.jelly | 4 ++-- .../JobConfigHistoryProjectAction/showDiffFiles.jelly | 4 ++-- .../JobConfigHistoryRootAction/restoreQuestion.jelly | 4 ++-- .../JobConfigHistoryRootAction/showDiffFiles.jelly | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/main/resources/hudson/plugins/jobConfigHistory/ComputerConfigHistoryAction/restoreQuestion.jelly b/src/main/resources/hudson/plugins/jobConfigHistory/ComputerConfigHistoryAction/restoreQuestion.jelly index e479eed0..b95bdd8e 100644 --- a/src/main/resources/hudson/plugins/jobConfigHistory/ComputerConfigHistoryAction/restoreQuestion.jelly +++ b/src/main/resources/hudson/plugins/jobConfigHistory/ComputerConfigHistoryAction/restoreQuestion.jelly @@ -12,7 +12,7 @@
- ⚠ + ❗
${%Replace the current configuration with the version from} ${timestamp} @@ -20,7 +20,7 @@
- ⚠ + ❗
diff --git a/src/main/resources/hudson/plugins/jobConfigHistory/ComputerConfigHistoryAction/showDiffFiles.jelly b/src/main/resources/hudson/plugins/jobConfigHistory/ComputerConfigHistoryAction/showDiffFiles.jelly index 4e0634c6..e0d353f2 100644 --- a/src/main/resources/hudson/plugins/jobConfigHistory/ComputerConfigHistoryAction/showDiffFiles.jelly +++ b/src/main/resources/hudson/plugins/jobConfigHistory/ComputerConfigHistoryAction/showDiffFiles.jelly @@ -23,7 +23,7 @@
diff --git a/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryProjectAction/restoreQuestion.jelly b/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryProjectAction/restoreQuestion.jelly index 7adbdcd4..3238484e 100644 --- a/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryProjectAction/restoreQuestion.jelly +++ b/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryProjectAction/restoreQuestion.jelly @@ -11,7 +11,7 @@
- ⚠ + ❗
${%Replace the current configuration with the version from} ${timestamp} @@ -19,7 +19,7 @@
- ⚠ + ❗
diff --git a/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryProjectAction/showDiffFiles.jelly b/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryProjectAction/showDiffFiles.jelly index 237c2c43..a3b3aa7d 100644 --- a/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryProjectAction/showDiffFiles.jelly +++ b/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryProjectAction/showDiffFiles.jelly @@ -23,7 +23,7 @@
diff --git a/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/restoreQuestion.jelly b/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/restoreQuestion.jelly index c9921276..e881e800 100644 --- a/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/restoreQuestion.jelly +++ b/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/restoreQuestion.jelly @@ -10,7 +10,7 @@
- ⚠ + ❗
${%Restore the deleted project} ${name} @@ -18,7 +18,7 @@
- ⚠ + ❗
diff --git a/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/showDiffFiles.jelly b/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/showDiffFiles.jelly index 4f777f7b..def38dda 100644 --- a/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/showDiffFiles.jelly +++ b/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/showDiffFiles.jelly @@ -27,7 +27,7 @@
From 55ddb81c8805486fcfaae422745ad3fe4f415b76 Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Sun, 26 Dec 2021 23:25:32 +0100 Subject: [PATCH 3/5] fix: Fix a few translation issues --- .github/release-drafter.yml | 2 +- .../ComputerConfigHistoryAction/index.jelly | 2 +- .../ComputerConfigHistoryAction/index_de.properties | 2 +- .../JobConfigHistoryProjectAction/index.jelly | 2 +- .../index_de.properties | 2 +- .../JobConfigHistoryRootAction/history.jelly | 4 ++-- .../JobConfigHistoryRootAction/history_de.properties | 4 +++- src/site/site.xml | 12 ++++++------ 8 files changed, 16 insertions(+), 14 deletions(-) diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 35a178cb..4c014676 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -1,3 +1,3 @@ _extends: .github -tag-template: git-$NEXT_PATCH_VERSION +tag-template: $NEXT_PATCH_VERSION version-template: $MAJOR.$MINOR.$PATCH diff --git a/src/main/resources/hudson/plugins/jobConfigHistory/ComputerConfigHistoryAction/index.jelly b/src/main/resources/hudson/plugins/jobConfigHistory/ComputerConfigHistoryAction/index.jelly index cc497a1b..232f3b43 100644 --- a/src/main/resources/hudson/plugins/jobConfigHistory/ComputerConfigHistoryAction/index.jelly +++ b/src/main/resources/hudson/plugins/jobConfigHistory/ComputerConfigHistoryAction/index.jelly @@ -115,7 +115,7 @@ - + @@ -122,7 +122,7 @@
${%Warning}: ${%Corrupt xml file(s)}: ${%Warning}: ${%Corrupt XML file(s)}:
@@ -87,7 +87,7 @@
- +
@@ -165,9 +165,9 @@
... ... ${line.left.lineNumber}... ... ${line.left.lineNumber}
- ⚠ + ❗
@@ -36,7 +36,7 @@
- ⚠ + ❗
- ⚠ + ❗
@@ -36,7 +36,7 @@
- ⚠ + ❗
- ⚠ + ❗
@@ -40,7 +40,7 @@
- ⚠ + ❗
- + diff --git a/src/main/resources/hudson/plugins/jobConfigHistory/ComputerConfigHistoryAction/index_de.properties b/src/main/resources/hudson/plugins/jobConfigHistory/ComputerConfigHistoryAction/index_de.properties index 3bf1e5b5..55703c32 100644 --- a/src/main/resources/hudson/plugins/jobConfigHistory/ComputerConfigHistoryAction/index_de.properties +++ b/src/main/resources/hudson/plugins/jobConfigHistory/ComputerConfigHistoryAction/index_de.properties @@ -15,5 +15,5 @@ View\ as\ XML=Als XML anzeigen RAW=Roh Warning=Warnung This\ is\ the\ latest\ revision\ in\ history\,\ but\ not\ the\ current\ config\.\ Save\ config\ to\ create\ a\ current\ entry.=Dies ist die letzte Revision im Verlauf, aber nicht die aktuelle Konfiguration. Speichern Sie die Konfiguration, um einen aktuellen Eintrag zu erstellen. -Do\ you\ really\ want\ to\ delete\ the\ history\ entry=Soll der Eintrag wirklich gelöscht werden? +Do\ you\ really\ want\ to\ delete\ the\ history\ entry=Soll der folgende Verlaufseintrag wirklich gelöscht werden Delete\ Revision=Revision löschen diff --git a/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryProjectAction/index.jelly b/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryProjectAction/index.jelly index dbca5284..101fd224 100644 --- a/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryProjectAction/index.jelly +++ b/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryProjectAction/index.jelly @@ -139,7 +139,7 @@ - + diff --git a/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryProjectAction/index_de.properties b/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryProjectAction/index_de.properties index a89a5964..3cb2e72f 100644 --- a/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryProjectAction/index_de.properties +++ b/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryProjectAction/index_de.properties @@ -15,7 +15,7 @@ View\ as\ XML=Als XML anzeigen RAW=Roh Warning=Warnung This\ is\ the\ latest\ revision\ in\ history\,\ but\ not\ the\ current\ config\.\ Save\ config\ to\ create\ a\ current\ entry.=Dies ist die letzte Revision im Verlauf, aber nicht die aktuelle Konfiguration. Speichern Sie die Konfiguration, um einen aktuellen Eintrag zu erstellen. -Do\ you\ really\ want\ to\ delete\ the\ history\ entry=Soll der Eintrag wirklich gelöscht werden? +Do\ you\ really\ want\ to\ delete\ the\ history\ entry=Soll der folgende Verlaufseintrag wirklich gelöscht werden Delete\ Revision=Revision löschen Show\ Diffs=Diff anzeigen Entries\ per\ page=Einträge pro Seite diff --git a/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/history.jelly b/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/history.jelly index 52bc8b2d..e03c1669 100644 --- a/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/history.jelly +++ b/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/history.jelly @@ -85,7 +85,7 @@ ${%File A} ${%File B} Delete Entry${%Delete Entry}
- + diff --git a/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/history_de.properties b/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/history_de.properties index eb07953a..df6b706d 100644 --- a/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/history_de.properties +++ b/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/history_de.properties @@ -11,10 +11,12 @@ No\ configuration\ history\ available=Kein Konfigurationsverlauf verf Operation=Operation Date=Datum User=Benutzer +File\ A=Datei A +File\ B=Datei B Show\ File=Datei anzeigen View\ as\ XML=Als XML anzeigen RAW=Roh -Do\ you\ really\ want\ to\ delete\ the\ history\ entry=Soll der Eintrag wirklich gelöscht werden? +Do\ you\ really\ want\ to\ delete\ the\ history\ entry=Soll der folgende Verlaufseintrag wirklich gelöscht werden Delete\ Entry=Eintrag löschen Show\ Diffs=Diff anzeigen Restore\ project=Projekt wiederherstellen diff --git a/src/site/site.xml b/src/site/site.xml index be5cc761..8716a2d2 100644 --- a/src/site/site.xml +++ b/src/site/site.xml @@ -8,15 +8,15 @@ 1.1 - - + + - - + + From b64e5ebfb8772bf4843695ccc140f03b109bd7a4 Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Mon, 27 Dec 2021 01:07:10 +0100 Subject: [PATCH 4/5] feat: More translations --- .../jobConfigHistory/XmlSyntaxChecker.java | 4 ++-- .../showDiffFiles_de.properties | 2 +- .../history_de.properties | 2 +- .../index_de.properties | 11 ++++++----- .../restoreQuestion_de.properties | 2 +- .../showDiffFiles_de.properties | 4 ++-- .../jobConfigHistory/Messages.properties | 8 ++++---- .../jobConfigHistory/Messages_de.properties | 19 +++++++++++++++++++ 8 files changed, 36 insertions(+), 16 deletions(-) create mode 100644 src/main/resources/hudson/plugins/jobConfigHistory/Messages_de.properties diff --git a/src/main/java/hudson/plugins/jobConfigHistory/XmlSyntaxChecker.java b/src/main/java/hudson/plugins/jobConfigHistory/XmlSyntaxChecker.java index bceb9b59..7a1c05db 100644 --- a/src/main/java/hudson/plugins/jobConfigHistory/XmlSyntaxChecker.java +++ b/src/main/java/hudson/plugins/jobConfigHistory/XmlSyntaxChecker.java @@ -52,13 +52,13 @@ public void fatalError(SAXParseException exception) { builder.parse(xmlFile); } catch (SAXException | IOException exception) { - message[0] = exception.getClass().getSimpleName() + Messages.XmlSyntaxChecker_occuredWhile() + exception.getMessage(); + message[0] = exception.getClass().getSimpleName() + Messages.XmlSyntaxChecker_occurredWhile() + ": " + exception.getMessage(); wellFormatted[0] = false; } } catch (ParserConfigurationException exception) { - message[0] = "ParserConfigurationException" + Messages.XmlSyntaxChecker_occuredWhile() + exception.getMessage(); + message[0] = "ParserConfigurationException" + Messages.XmlSyntaxChecker_occurredWhile() + ": " + exception.getMessage(); wellFormatted[0] = false; } return new Answer(message[0], wellFormatted[0]); diff --git a/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryProjectAction/showDiffFiles_de.properties b/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryProjectAction/showDiffFiles_de.properties index 1e2adfa7..5a315361 100644 --- a/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryProjectAction/showDiffFiles_de.properties +++ b/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryProjectAction/showDiffFiles_de.properties @@ -4,7 +4,7 @@ Warning=Warnung Corrupt\ XML\ file(s)=Korrupte XML Datei(en) Revision=Revision No\ permission\ to\ view\ config\ history=Keine Berechtigung zum Anzeigen des Konfigurationsverlaufes -No\ job\ configuration\ history\ available=Kein Job-Konfigurationsverlauf verfügbar +No\ job\ configuration\ history\ available=Kein Job Konfigurationsverlauf verfügbar Hide\ Version\ Changes=Versionsänderungen ausblenden Show\ Version\ Changes=Versionsänderungen anzeigen Older\ Change=Alte Änderungen diff --git a/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/history_de.properties b/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/history_de.properties index df6b706d..c1dae1e5 100644 --- a/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/history_de.properties +++ b/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/history_de.properties @@ -1,5 +1,5 @@ Job\ Configuration\ History=Job Konfigurationsverlauf -Back\ to\ Dashboard=Zurück zum Dashboard +Back\ to\ Dashboard=Zurück zur Übersicht Back\ to\ Overview=Zurück zur Übersicht Back\ to\ Deleted\ Jobs=Zurück zu gelöschten Jobs Back\ to\ System\ History=Zurück zum Systemverlauf diff --git a/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/index_de.properties b/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/index_de.properties index 4060f1aa..f57c6894 100644 --- a/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/index_de.properties +++ b/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/index_de.properties @@ -1,14 +1,15 @@ +Job\ Configuration\ History=Job Konfigurationsverlauf All\ Configuration\ History=Gesamter Konfigurationsverlauf -Back\ to\ Dashboard=Zurück zum Dashboard +Back\ to\ Dashboard=Zurück zur Übersicht Show\ system\ configs\ only=Nur Systemkonfigurationen anzeigen Show\ job\ configs\ only=Nur Job-Konfigurationen anzeigen Show\ created\ jobs\ only=Nur erstelle Jobs anzeigen Show\ deleted\ jobs\ only=Nur gelöschte Jobs anzeigen Show\ all\ configs=Zeige alle Konfigurationen an -Job\ Konfiguration\ History=Job-Konfigurationsverlauf -Job\ Creation\ History=Job-Erstellungsverlauf -Job\ Deletion\ History=Job-Löschungsverlauf -System\ Configuration\ History=System-Konfigurationsverlauf +Job\ Konfiguration\ History=Job Konfigurationsverlauf +Job\ Creation\ History=Job Erstellungsverlauf +Job\ Deletion\ History=Job Löschungsverlauf +System\ Configuration\ History=System Konfigurationsverlauf No\ permission\ to\ view\ system\ changes=Keine Berechtigung zum Anzeigen von Systemänderungen No\ permission\ to\ view\ config\ history=Keine Berechtigung zum Anzeigen des Konfigurationsverlaufes No\ configuration\ history\ available=Kein Konfigurationsverlauf verfügbar diff --git a/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/restoreQuestion_de.properties b/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/restoreQuestion_de.properties index 448ba2c6..32198820 100644 --- a/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/restoreQuestion_de.properties +++ b/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/restoreQuestion_de.properties @@ -1,2 +1,2 @@ -Job\ Configuration\ History=Job-Konfigurationsverlauf +Job\ Configuration\ History=Job Konfigurationsverlauf Yes=Ja diff --git a/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/showDiffFiles_de.properties b/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/showDiffFiles_de.properties index c413dc21..e4a0d8bd 100644 --- a/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/showDiffFiles_de.properties +++ b/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction/showDiffFiles_de.properties @@ -1,5 +1,5 @@ -Job\ Configuration\ History=Job-Konfigurationsverlauf -Back\ to\ Dashboard=Zurück zum Dashboard +Job\ Configuration\ History=Job Konfigurationsverlauf +Back\ to\ Dashboard=Zurück zur Übersicht Back\ to\ Overview=Zurück zur Übersicht Configuration\ Difference=Konfigurationsunterschied Warning=Warung diff --git a/src/main/resources/hudson/plugins/jobConfigHistory/Messages.properties b/src/main/resources/hudson/plugins/jobConfigHistory/Messages.properties index 9ffe5065..4a54b1cf 100644 --- a/src/main/resources/hudson/plugins/jobConfigHistory/Messages.properties +++ b/src/main/resources/hudson/plugins/jobConfigHistory/Messages.properties @@ -10,10 +10,10 @@ ConfigHistoryListenerHelper.anonymous=anonymous JobConfigBadgeAction.ToolTip=Config changed since last build -XmlSyntaxChecker.error=Error occurred while checking xml parsability: -XmlSyntaxChecker.warning=Warning occured while checking xml parsability: -XmlSyntaxChecker.fatalError=Fatal error occured while checking xml parsability: -XmlSyntaxChecker.occuredWhile= occured while checking xml parsability: +XmlSyntaxChecker.error=Error occurred while checking xml parsability +XmlSyntaxChecker.warning=Warning occurred while checking xml parsability +XmlSyntaxChecker.fatalError=Fatal error occurred while checking xml parsability +XmlSyntaxChecker.occurredWhile= occurred while checking xml parsability JobConfigHistory.deleteEntryPermission=DeleteEntry JobConfigHistory.deleteEntryPermissionDescription=This permission allows for deletion of history entries. diff --git a/src/main/resources/hudson/plugins/jobConfigHistory/Messages_de.properties b/src/main/resources/hudson/plugins/jobConfigHistory/Messages_de.properties new file mode 100644 index 00000000..9ed5684f --- /dev/null +++ b/src/main/resources/hudson/plugins/jobConfigHistory/Messages_de.properties @@ -0,0 +1,19 @@ +displayName=Job Konfigurationsverlauf +agentDisplayName=Knoten Konfigurationsverlauf + +ConfigHistoryListenerHelper.CREATED=Erstellt +ConfigHistoryListenerHelper.RENAMED=Umbenannt +ConfigHistoryListenerHelper.CHANGED=Geändert +ConfigHistoryListenerHelper.DELETED=Gelöscht + +ConfigHistoryListenerHelper.anonymous=anonym + +JobConfigBadgeAction.ToolTip=Die Konfiguration wurde seit dem letzten Build geändert + +XmlSyntaxChecker.error=Während der XML Syntax-Prüfung ist ein Fehler aufgetreten +XmlSyntaxChecker.warning=Während der XML Syntax-Prüfung ist eine Warnung aufgetreten +XmlSyntaxChecker.fatalError=Während der XML Syntax-Prüfung ist ein schwerwiegender Fehler aufgetreten +XmlSyntaxChecker.occurredWhile= ist während der XML Syntax-Prüfung aufgetreten + +JobConfigHistory.deleteEntryPermission=DeleteEntry +JobConfigHistory.deleteEntryPermissionDescription=Diese Berechtigung erlaubt es, einen Eintrag zu löschen. From b257f40a6fae91bc87de0fab166e2ff7ba8725e7 Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Mon, 27 Dec 2021 11:01:08 +0100 Subject: [PATCH 5/5] chore: Address `tt` deprecation --- .../plugins/jobConfigHistory/ConfigInfoCollector.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/hudson/plugins/jobConfigHistory/ConfigInfoCollector.java b/src/main/java/hudson/plugins/jobConfigHistory/ConfigInfoCollector.java index adf770e3..fcc88b47 100644 --- a/src/main/java/hudson/plugins/jobConfigHistory/ConfigInfoCollector.java +++ b/src/main/java/hudson/plugins/jobConfigHistory/ConfigInfoCollector.java @@ -33,8 +33,8 @@ /** * Collects all configs of a special type. For Jobs these follow the pattern: - * config-history/jobs/FOLDERNAME/JOBNAME/TIMESTAMP, where - * FOLDERNAME may be empty. + * config-history/jobs/FOLDERNAME/JOBNAME/TIMESTAMP, where + * FOLDERNAME may be empty. *

* Extracted from {@link JobConfigHistoryRootAction} for easier testability. * @@ -45,7 +45,7 @@ final class ConfigInfoCollector { /** * outparameter. */ - private final List configs = new ArrayList(); + private final List configs = new ArrayList<>(); /** * Type to collect. @@ -77,9 +77,8 @@ public ConfigInfoCollector(String type, * @param itemDir The job directory as File * @param folderName Something Jesse Glick came up with but never documented, * probably the folderName. - * @throws IOException If one of the entries cannot be read. */ - void getConfigsForType(File itemDir, String folderName) throws IOException { + void getConfigsForType(File itemDir, String folderName) { final String jobsString = "/jobs/"; final String itemName = folderName.isEmpty() ? itemDir.getName()