From: Matthias Schmidt Date: Tue, 7 May 2013 07:50:34 +0000 (+0200) Subject: Fixes language items for uninstallation dialog X-Git-Tag: 2.0.0_Beta_1~240 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6207cc215c68200440a7e20766db4ed90a6ac491;p=GitHub%2FWoltLab%2FWCF.git Fixes language items for uninstallation dialog --- diff --git a/wcfsetup/install/files/acp/js/WCF.ACP.js b/wcfsetup/install/files/acp/js/WCF.ACP.js index f242d6dd1d..693a7d9279 100644 --- a/wcfsetup/install/files/acp/js/WCF.ACP.js +++ b/wcfsetup/install/files/acp/js/WCF.ACP.js @@ -349,6 +349,12 @@ WCF.ACP.Package.Installation = Class.extend({ */ _dialog: null, + /** + * name of the language item with the title of the dialog + * @var string + */ + _dialogTitle: '', + /** * action proxy * @var WCF.Action.Proxy @@ -379,6 +385,11 @@ WCF.ACP.Package.Installation = Class.extend({ 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(); }, @@ -463,7 +474,7 @@ WCF.ACP.Package.Installation = Class.extend({ this._dialog = $('
').hide().appendTo(document.body); this._dialog.wcfDialog({ closable: false, - title: WCF.Language.get('wcf.acp.package.installation.title') + title: WCF.Language.get(this._dialogTitle) }); } @@ -656,6 +667,7 @@ WCF.ACP.Package.Uninstallation = WCF.ACP.Package.Installation.extend({ this._actionName = 'UninstallPackage'; this._packageID = packageID; this._queueID = 0; + this._dialogTitle = 'wcf.acp.package.uninstallation.title'; this._initProxy(); this.prepareInstallation(); diff --git a/wcfsetup/install/files/acp/templates/packageInstallationConfirm.tpl b/wcfsetup/install/files/acp/templates/packageInstallationConfirm.tpl index 6a86d59552..3501f6ade5 100644 --- a/wcfsetup/install/files/acp/templates/packageInstallationConfirm.tpl +++ b/wcfsetup/install/files/acp/templates/packageInstallationConfirm.tpl @@ -3,7 +3,10 @@