From fdf18d70c5f7f741e95b65e9477fdb0f30c3d854 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Mon, 21 May 2012 13:28:43 +0200 Subject: [PATCH] Fixes missing i18n package name consideration in language export form --- acptemplates/languageExport.tpl | 3 +-- files/lib/acp/form/LanguageExportForm.class.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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']; -- 2.20.1