From 6207cc215c68200440a7e20766db4ed90a6ac491 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Tue, 7 May 2013 09:50:34 +0200 Subject: [PATCH] Fixes language items for uninstallation dialog --- wcfsetup/install/files/acp/js/WCF.ACP.js | 14 +++++++++++++- .../acp/templates/packageInstallationConfirm.tpl | 5 ++++- .../templates/packageUninstallationStepPrepare.tpl | 4 ++-- .../acp/action/UninstallPackageAction.class.php | 11 ++++++----- wcfsetup/install/lang/de.xml | 3 +++ wcfsetup/install/lang/en.xml | 3 +++ 6 files changed, 31 insertions(+), 9 deletions(-) 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 @@