Skip to content

Commit

Permalink
Merge pull request #154 from jenkinsci/feat/main/translate-plugin
Browse files Browse the repository at this point in the history
feat: Translate plugin to German
  • Loading branch information
NotMyFault authored Dec 28, 2021
2 parents de9e11a + b257f40 commit b666422
Show file tree
Hide file tree
Showing 31 changed files with 307 additions and 114 deletions.
2 changes: 1 addition & 1 deletion .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
_extends: .github
tag-template: git-$NEXT_PATCH_VERSION
tag-template: $NEXT_PATCH_VERSION
version-template: $MAJOR.$MINOR.$PATCH
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@

/**
* Collects all configs of a special type. For Jobs these follow the pattern:
* <tt>config-history/jobs/FOLDERNAME/JOBNAME/TIMESTAMP</tt>, where
* <tt>FOLDERNAME</tt> may be empty.
* <code>config-history/jobs/FOLDERNAME/JOBNAME/TIMESTAMP</code>, where
* <code>FOLDERNAME</code> may be empty.
* <p>
* Extracted from {@link JobConfigHistoryRootAction} for easier testability.
*
Expand All @@ -45,7 +45,7 @@ final class ConfigInfoCollector {
/**
* outparameter.
*/
private final List<ConfigInfo> configs = new ArrayList<ConfigInfo>();
private final List<ConfigInfo> configs = new ArrayList<>();

/**
* Type to collect.
Expand Down Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form" xmlns:i="jelly:fmt">
<l:layout title="Agent Configuration History">
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:l="/lib/layout" xmlns:f="/lib/form">
<l:layout title="${%Agent Configuration History}">

<link rel="stylesheet" type="text/css" href="${rootURL}/plugin/jobConfigHistory/css/style.css"></link>
<link rel="stylesheet" type="text/css" href="${rootURL}/plugin/jobConfigHistory/css/style.css"/>

<st:include it="${it.agent.toComputer()}" page="sidepanel.jelly" />
<l:main-panel>
<h1>${%Agent Configuration History}</h1>
<div>

<script src="${rootURL}/plugin/jobConfigHistory/deleteRevisionAndTableEntry.js"></script>
<script src="${rootURL}/plugin/jobConfigHistory/deleteRevisionAndTableEntry.js"/>
<script type="text/javascript">
function showTooltip(nr) {
document.getElementById('tooltip' + nr).style.visibility = 'visible';
Expand Down Expand Up @@ -55,7 +55,7 @@
<th style=" text-align:center">${%File A}</th>
<th style=" text-align:center">${%File B}</th>
<j:if test="${it.hasDeleteEntryPermission()}">
<th style="text-align:center">Delete Entry</th>
<th style="text-align:center">${%Delete Entry}</th>
</j:if>
</tr>
</thead>
Expand Down Expand Up @@ -95,7 +95,7 @@
<!--The current version is not present in history!-->
<br/>
<span style="color: rgb(196, 109, 0); font-weight:bold;">
${%Warning: This is the latest revision in history, but not the current config. Save config to create a current entry.}
${%Warning}: ${%This is the latest revision in history, but not the current config. Save config to create a current entry.}
</span>
</j:if>
</j:if>
Expand All @@ -115,9 +115,9 @@
</td>
<j:if test="${it.hasDeleteEntryPermission()}">
<td style="text-align:center">
<j:set var="message" value="${%Do you really want to delete the history entry }"/>
<j:set var="message" value="${%Do you really want to delete the history entry} "/>
<button type="button" class="jch delete-button" onClick="removeEntryFromTable('table-row-${configNr}', '${config.date}', 'null', '${message}')" value="X">
<l:icon class="icon-stop icon-sm" alt="Delete Revision"/>
<l:icon class="icon-stop icon-sm" alt="${%Delete Revision}"/>
</button>
</td>
</j:if>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Agent\ Configuration\ History=Knoten Konfigurationsverlauf
No\ agent\ configuration\ available=Keine Knoten-Konfiguration verfügbar
Show\ Diffs=Differenzen anzeigen
Restore\ old\ config=Alte Konfiguration wiederherstellen
Date=Datum
File\ A=Datei A
File\ B=Datei B
Operation=Operation
User=Benutzer
Show\ File=Datei anzeigen
Delete\ Entry=Eintrag löschen
Old\ name=Alter Name
New\ name=Neuer Name
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 folgende Verlaufseintrag wirklich gelöscht werden
Delete\ Revision=Revision löschen
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form" xmlns:i="jelly:fmt">
<l:layout title="Agent Configuration History">
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:l="/lib/layout">
<l:layout title="${%Agent Configuration History}">

<link rel="stylesheet" type="text/css" href="${rootURL}/plugin/jobConfigHistory/css/style.css"></link>
<link rel="stylesheet" type="text/css" href="${rootURL}/plugin/jobConfigHistory/css/style.css"/>

<st:include it="${it.agent.toComputer()}" page="sidepanel.jelly" />
<l:main-panel>
Expand All @@ -12,15 +12,15 @@
<div style="text-align:center">
<div class="jch-warning">
<div style="float:left; font-size:30px; font-weight:bold">
&#x26A0;
&#x2757;
</div>
<span style="font-size:20px;">${%Replace the current configuration with the version from}
<span class="describedElement">${timestamp}</span>
?
</span>

<div style="float:right; font-size:30px; font-weight:bold">
&#x26A0;
&#x2757;
</div>
<div style="padding:10px;"/>

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Agent\ Configuration\ History=Knoten Konfigurationsverlauf
Replace\ the\ current\ configuration\ with\ the\ version\ from=Ersetze die aktuelle Konfiguration mit der Version aus
Yes=Ja
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form" xmlns:i="jelly:fmt">
<l:layout title="Job Configuration History">
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:l="/lib/layout">
<l:layout title="${%Job Configuration History}">

<link rel="stylesheet" type="text/css" href="${rootURL}/plugin/jobConfigHistory/css/diff_highlight.css"></link>
<link rel="stylesheet" type="text/css" href="${rootURL}/plugin/jobConfigHistory/css/style.css"></link>
<link rel="stylesheet" type="text/css" href="${rootURL}/plugin/jobConfigHistory/css/diff_highlight.css"/>
<link rel="stylesheet" type="text/css" href="${rootURL}/plugin/jobConfigHistory/css/style.css"/>

<!--syntax highlighting-->
<link rel="stylesheet" type="text/css" href="${rootURL}/plugin/jobConfigHistory/highlight.js/styles/purebasic.css"/>
<script src="${rootURL}/plugin/jobConfigHistory/highlight.js/highlight.pack.js"></script>
<script src="${rootURL}/plugin/jobConfigHistory/highlight.js/highlight.pack.js"/>
<script>hljs.initHighlightingOnLoad();</script>

<st:include it="${app}" page="sidepanel.jelly" />
Expand All @@ -19,11 +19,11 @@
<j:if test="${!syntaxCheck1.isWellFormatted() || !syntaxCheck2.isWellFormatted()}">
<div class="jch-warning">
<table class="no-borders-warning">
<caption style="">${%Warning}: ${%Corrupt xml file(s)}: </caption>
<caption style="">${%Warning}: ${%Corrupt XML file(s)}: </caption>
<tr>
<td>
<div style="font-size:30px" class="jch-warning">
&#x26A0;
&#x2757;
</div>
</td>
<td>
Expand All @@ -36,7 +36,7 @@
</td>
<td>
<div style="font-size:30px;" class="jch-warning">
&#x26A0;
&#x2757;
</div>
</td>
</tr>
Expand Down Expand Up @@ -84,7 +84,7 @@
<j:set var="hideTextStr" value="${%Hide Version Changes}"/>
<j:set var="showTextStr" value="${%Show Version Changes}"/>

<input id="showHideVersionDiffsJsButton" class="small-button" type="button" value="Hide Version Changes" onClick="toggleShowHideVersionDiffsJs('${hideTextStr}', '${showTextStr}');"/>
<input id="showHideVersionDiffsJsButton" class="small-button" type="button" value="${%Hide Version Changes}" onClick="toggleShowHideVersionDiffsJs('${hideTextStr}', '${showTextStr}');"/>
</div>
<div style="padding:2px"/>

Expand Down Expand Up @@ -180,9 +180,9 @@
<j:choose>
<j:when test="${line.skipping}">
<th class="lineNum">...</th>
<td class="skipping"></td>
<td class="skipping"/>
<th class="lineNum">...</th>
<td class="skipping"></td>
<td class="skipping"/>
</j:when>
<j:otherwise>
<th class="lineNum ${line.left.cssClass}">${line.left.lineNumber}</th>
Expand Down Expand Up @@ -237,9 +237,9 @@
<j:choose>
<j:when test="${line.skipping}">
<th class="lineNum">...</th>
<td class="skipping"></td>
<td class="skipping"/>
<th class="lineNum">...</th>
<td class="skipping"></td>
<td class="skipping"/>
</j:when>
<j:otherwise>
<th class="lineNum ${line.left.cssClass}">${line.left.lineNumber}</th>
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
<j:jelly xmlns:j="jelly:core">
<j:if test="${it.showBadge() and it.oldConfigsExist()}">
<a href="${it.createLink()}" id="showDiff">
<img width="16" height="16" title="${it.getTooltip()}" alt="x" src="${resURL}${it.getIcon()}"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
<j:jelly xmlns:j="jelly:core" xmlns:f="/lib/form">
<f:section title="${%Job Config History}">
<f:entry title="${%Use different history directory than default}:" help="/plugin/jobConfigHistory/help/help-historyRootDir.html">
<f:textbox value="${it.historyRootDir}" name="historyRootDir"/>
Expand Down Expand Up @@ -44,7 +44,7 @@
<f:entry title="${%Exclude users}" help="/plugin/jobConfigHistory/help/help-excludedUsers.html">
<f:textbox name="excludedUsers" value="${it.excludedUsers}" />
</f:entry>
<f:entry title="Show change message window" help="/plugin/jobConfigHistory/help/help-showChangeReasonCommentWindow.html">
<f:entry title="${%Show change message window}" help="/plugin/jobConfigHistory/help/help-showChangeReasonCommentWindow.html">
<f:checkbox
title="${%Show the change message window in jobs' configure pages.}"
name="showChangeReasonCommentWindow"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Use\ different\ history\ directory\ than\ default=Legen Sie ein anderes Verzeichnis als das Standartverzeichnis fest
Max\ number\ of\ history\ entries\ to\ keep=Maximale Anzahl der zu behaltenden Einträge
Max\ number\ of\ days\ to\ keep\ history\ entries=Maximale Anzahl an Tagen, um Einträge zu behalten
Max\ number\ of\ history\ entries\ to\ show\ per\ page=Maximale Anzahl an Einträgen, die pro Seite angezeigt werden
Configuration\ exclude\ file\ pattern=Ausgeschlossene Datei-Muster
Do\ not\ save\ duplicate\ history=Keine doppelten Einträge speichern
Save\ Maven\ module\ configuration\ changes=Maven-Modul-Konfigurationsänderungen speichern
Show\ build\ badges=Build-Abzeichen anzeigen
Never=Nie
Always=Immer
Only\ for\ users\ with\ configuration\ permission=Nur für Benutzer mit Konfigurationsberechtigung anzeigen
Only\ for\ administrators=Nur für Administratoren
Exclude\ users=Benutzer ausschließen
Show\ change\ message\ window=Änderungsmitteilungs-Fenster anzeigen
Show\ the\ change\ message\ window\ in\ jobs\'\ configure\ pages.=Änderungsmitteilungs-Fenster in Job-Konfiguration anzeigen
Loading

0 comments on commit b666422

Please sign in to comment.