this._queueID = data.queueID;
}
+ // update template
+ if (data.template && !data.ignoreTemplate) {
+ this._dialog.html(data.template);
+ this._shouldRender = true;
+ }
+
// update progress
if (data.progress) {
$('#packageInstallationProgress').attr('value', data.progress).text(data.progress + '%');
return;
}
- // update template
- if (data.template && !data.ignoreTemplate) {
- this._dialog.html(data.template);
- this._shouldRender = true;
- }
-
// handle inner template
if (data.innerTemplate) {
var self = this;
<span class="icon icon48 icon-spinner"></span>
<div>
- <h1>{lang}wcf.acp.package.uninstallation.title.packageName{/lang}</h1>
+ <h1>{lang}wcf.acp.package.uninstallation.title{/lang}</h1>
<p id="packageInstallationAction">{lang}wcf.acp.package.uninstallation.step.prepare{/lang}</span></p>
<p><progress id="packageInstallationProgress" value="0" max="100">0%</progress></p>
</div>
'template' => WCF::getTPL()->fetch($this->templateName),
'step' => 'uninstall',
'node' => $this->installation->nodeBuilder->getNextNode(),
- 'currentAction' => WCF::getLanguage()->get('wcf.package.installation.step.uninstalling'),
+ 'currentAction' => $this->getCurrentAction($queueID),
'progress' => 0,
'queueID' => $queueID
);
break;
}
}
+
+ /**
+ * @see wcf\acp\action\InstallPackageAction::getCurrentAction()
+ */
+ protected function getCurrentAction($queueID) {
+ if ($queueID === null) {
+ // success message
+ $currentAction = WCF::getLanguage()->get('wcf.acp.package.uninstallation.step.' . $this->queue->action . '.success');
+ }
+ else {
+ // build package name
+ $packageName = $this->installation->nodeBuilder->getPackageNameByQueue($queueID);
+ $installationType = $this->installation->nodeBuilder->getInstallationTypeByQueue($queueID);
+ $currentAction = WCF::getLanguage()->getDynamicVariable('wcf.acp.package.uninstallation.step.'.$installationType, array('packageName' => $packageName));
+ }
+
+ return $currentAction;
+ }
}
<item name="wcf.acp.package.type.plugin"><![CDATA[Erweiterung]]></item>
<item name="wcf.acp.package.uninstallation.confirm"><![CDATA[Wollen Sie das Paket „{@$package->getName()}“ wirklich deinstallieren?]]></item>
<item name="wcf.acp.package.uninstallation.step.success"><![CDATA[Deinstallation abgeschlossen]]></item>
+ <item name="wcf.acp.package.uninstallation.step.uninstall"><![CDATA[Paket „{$queue->packageName}“ wird deinstalliert …]]></item>
<item name="wcf.acp.package.uninstallation.title"><![CDATA[Deinstallation]]></item>
- <item name="wcf.acp.package.uninstallation.title.packageName"><![CDATA[Paket „{$queue->packageName}“ wird deinstalliert …]]></item>
<item name="wcf.acp.package.uninstall.step.prepare"><![CDATA[Deinstallation wird vorbereitet …]]></item>
<item name="wcf.acp.package.updateDate"><![CDATA[Aktualisierungsdatum]]></item>
<item name="wcf.acp.package.update.credentials"><![CDATA[Zugangsdaten]]></item>
<item name="wcf.acp.package.type.plugin"><![CDATA[Plugin]]></item>
<item name="wcf.acp.package.uninstallation.confirm"><![CDATA[Do you really want to uninstall the package “{@$package->getName()}”?]]></item>
<item name="wcf.acp.package.uninstallation.step.success"><![CDATA[Uninstallation completed]]></item>
+ <item name="wcf.acp.package.uninstallation.step.uninstall"><![CDATA[Package “{$queue->packageName}” is being uninstalled …]]></item>
<item name="wcf.acp.package.uninstallation.title"><![CDATA[Uninstallation]]></item>
- <item name="wcf.acp.package.uninstallation.title.packageName"><![CDATA[Package “{$queue->packageName}” is being uninstalled …]]></item>
<item name="wcf.acp.package.uninstall.step.prepare"><![CDATA[Prepairing uninstallation …]]></item>
<item name="wcf.acp.package.updateDate"><![CDATA[Update Date]]></item>
<item name="wcf.acp.package.update.credentials"><![CDATA[Credentials]]></item>