*/
_dialog: null,
+ /**
+ * name of the language item with the title of the dialog
+ * @var string
+ */
+ _dialogTitle: '',
+
/**
* action proxy
* @var WCF.Action.Proxy
this._allowRollback = (allowRollback === true) ? true : false;
this._queueID = queueID;
+ this._dialogTitle = 'wcf.acp.package.installation.title';
+ if (actionName == 'UninstallPackage') {
+ this._dialogTitle = 'wcf.acp.package.uninstallation.title';
+ }
+
this._initProxy();
this._init();
},
this._dialog = $('<div id="packageInstallationDialog" />').hide().appendTo(document.body);
this._dialog.wcfDialog({
closable: false,
- title: WCF.Language.get('wcf.acp.package.installation.title')
+ title: WCF.Language.get(this._dialogTitle)
});
}
this._actionName = 'UninstallPackage';
this._packageID = packageID;
this._queueID = 0;
+ this._dialogTitle = 'wcf.acp.package.uninstallation.title';
this._initProxy();
this.prepareInstallation();
<script type="text/javascript">
//<![CDATA[
$(function() {
- WCF.Language.add('wcf.acp.package.installation.title', '{lang}wcf.acp.package.installation.title{/lang}');
+ WCF.Language.addObject({
+ 'wcf.acp.package.installation.title': '{lang}wcf.acp.package.installation.title{/lang}',
+ 'wcf.acp.package.uninstallation.title': '{lang}wcf.acp.package.uninstallation.title{/lang}'
+ });
new WCF.ACP.Package.Installation({@$queueID}, undefined, true);
});
//]]>
<span class="icon icon48 icon-spinner"></span>
<div>
- <h1>Paket »{$queue->packageName}« wird deinstalliert …</h1><!-- ToDo: Language variables -->
- <p>Aktueller Schritt: <span id="packageInstallationAction">{lang}wcf.package.uninstallation.step.prepare{/lang}</span></p>
+ <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>
</header>
'packageID' => $package->packageID,
'action' => 'uninstall'
));
-
+
// initialize uninstallation
$this->installation = new PackageUninstallationDispatcher($queue);
-
+
$this->installation->nodeBuilder->purgeNodes();
$this->installation->nodeBuilder->buildNodes();
-
+
WCF::getTPL()->assign(array(
'queue' => $queue
));
else {
$packageID = PACKAGE_ID;
}
-
+
// get domain path
$sql = "SELECT *
FROM wcf".WCF_N."_application
// show success
$this->data = array(
+ 'currentAction' => WCF::getLanguage()->get('wcf.acp.package.uninstallation.step.success'),
'progress' => 100,
'redirectLocation' => $location,
'step' => 'success'
break;
default:
- die(print_r($_POST, true));
+ die(print_r($_POST, true)); // todo: remove/replace
throw new IllegalLinkException();
break;
}
<item name="wcf.acp.package.type.application"><![CDATA[Anwendung]]></item>
<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.prepare"><![CDATA[Deinstallation wird vorbereitet …]]></item>
+ <item name="wcf.acp.package.uninstallation.step.success"><![CDATA[Deinstallation abgeschlossen]]></item>
+ <item name="wcf.acp.package.uninstallation.title"><![CDATA[Deinstallation]]></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.update.errorCode.401"><![CDATA[Ihre Angaben sind ungültig, bitte überprüfen Sie {if $updateServer->requiresLicense()}Lizenz- und Seriennummer{else}Benutzername und Passwort{/if}.]]></item>
<item name="wcf.acp.package.type.application"><![CDATA[Application]]></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.prepare"><![CDATA[TODO: Deinstallation wird vorbereitet …]]></item>
+ <item name="wcf.acp.package.uninstallation.step.success"><![CDATA[TODO: Deinstallation abgeschlossen]]></item>
+ <item name="wcf.acp.package.uninstallation.title"><![CDATA[TODO: Deinstallation]]></item>
<item name="wcf.acp.package.updateDate"><![CDATA[Update Date]]></item>
<item name="wcf.acp.package.update.credentials"><![CDATA[Credentials]]></item>
<item name="wcf.acp.package.update.errorCode.401"><![CDATA[Your credentials are invalid, please verify {if $updateServer->requiresLicense()}license and serial number{else}username and password{/if}.]]></item>