From: Matthias Schmidt Date: Mon, 21 May 2012 11:28:43 +0000 (+0200) Subject: Fixes missing i18n package name consideration in language export form X-Git-Tag: 2.0.0_Beta_1~616^2~15^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fdf18d70c5f7f741e95b65e9477fdb0f30c3d854;p=GitHub%2FWoltLab%2FWCF.git Fixes missing i18n package name consideration in language export form --- diff --git a/acptemplates/languageExport.tpl b/acptemplates/languageExport.tpl index 43613026ca..1b0ce189de 100644 --- a/acptemplates/languageExport.tpl +++ b/acptemplates/languageExport.tpl @@ -42,7 +42,7 @@ {foreach from=$packages item=package} {assign var=loop value=$packageNameLength-$package->packageNameLength} - + {/foreach} @@ -58,7 +58,6 @@
- {@SID_INPUT_TAG}
diff --git a/files/lib/acp/form/LanguageExportForm.class.php b/files/lib/acp/form/LanguageExportForm.class.php index ef12a733b5..3c504e6afd 100644 --- a/files/lib/acp/form/LanguageExportForm.class.php +++ b/files/lib/acp/form/LanguageExportForm.class.php @@ -158,7 +158,7 @@ class LanguageExportForm extends ACPForm { $statement = WCF::getDB()->prepareStatement($sql); $statement->execute(array($this->languageID)); while ($row = $statement->fetchArray()) { - $row['packageNameLength'] = StringUtil::length($row['packageName']); + $row['packageNameLength'] = StringUtil::length(WCF::getLanguage()->get($row['packageName'])); $this->packages[] = new Package(null, $row); if ($row['packageNameLength'] > $this->packageNameLength) { $this->packageNameLength = $row['packageNameLength'];