Skip to content
Snippets Groups Projects
Commit 652d9b45 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

build page: replace hartcoded output text with language specific texts

parent 8b4016fc
No related branches found
No related tags found
1 merge request!66php8 only; added variable types; short array syntax; remove glyphicons
......@@ -177,6 +177,8 @@
"page-build-reload-branches": "Branches neu laden",
"page-build-branch-on-target": "Auf der Ziel-Phase ist Branch [%s] installiert.",
"page-build-switch-to-target": "Setze [%s]",
"page-build-warning-version-exists": "Im der Queue für Phase [%s] ist die Version %s bereits vorhanden!",
"page-build-warning-version-is-installed": "Im der Phase [%s] ist die Version %s bereits vorhanden!",
"page-cleanup-info-archives-deleted": "Folgende Verzeichnisse wurden gelöscht",
"page-cleanup-info-archives-left": "Folgende Versionen sind derzeit vorhanden - mit Angabe, wo sie verwendet werden",
......
......@@ -178,6 +178,8 @@
"page-build-branch-on-target": "On target phase the branch [%s] was installed.",
"page-build-switch-to-target": "Set [%s]",
"page-build-reload-branches": "Reload all branches",
"page-build-warning-version-exists": "In the queue of phase [%s] the version %s already exists!",
"page-build-warning-version-is-installed": "In the phase [%s] the version %s already exists!",
"page-cleanup-info-archives-deleted": "The following directories have been deleted",
"page-cleanup-info-archives-left": "This versions currently exist - with information of their usage",
......
......@@ -27,7 +27,7 @@ if (array_key_exists("branchname", $aParams)) {
$sBranchname = $aParams["branchname"];
$oPrj->setBranchname($aParams["branchname"]);
} else {
$sBranchname = $oPrj->getBranchname(true);
$sBranchname = $oPrj->getBranchname();
}
if (!array_key_exists("confirm", $aParams)) {
......@@ -51,12 +51,12 @@ if (!array_key_exists("confirm", $aParams)) {
if (
array_key_exists("revision", $aPhaseData2["onhold"]) && $aPhaseData2["onhold"]["revision"] == $sRevison
) {
$sOut.=$oHtml->getBox("warning", "In der Queue von [$sNext] ist die Version bereits $sRevison vorhanden!");
$sOut .= $oHtml->getBox("warning", sprintf(t("page-build-warning-version-exists"), $sNext, $sRevison));
}
if (
array_key_exists("revision", $aPhaseData2["ready2install"]) && $aPhaseData2["ready2install"]["revision"] == $sRevison
) {
$sOut.=$oHtml->getBox("warning", "Im Repo von [$sNext] ist die Version $sRevison bereits vorhanden!");
$sOut .= $oHtml->getBox("warning", sprintf(t("page-build-warning-version-is-installed"), $sNext, $sRevison));
}
}
$sOut .= '
......@@ -138,7 +138,8 @@ if (!array_key_exists("confirm", $aParams)) {
'type' => 'success',
'variant' => 'outline',
'text' => $sOut,
]), 12
]),
12
)
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment