<option value="-">--------------------</option>
{foreach from=$packages item=package}
{assign var=loop value=$packageNameLength-$package->packageNameLength}
- <option value="{@$package->packageID}"{if $selectedPackages[$package->packageID]|isset} selected="selected"{/if}>{$package->packageName} {section name=i loop=$loop} {/section} {$package->package}</option>
+ <option value="{@$package->packageID}"{if $selectedPackages[$package->packageID]|isset} selected="selected"{/if}>{lang}{$package->packageName}{/lang} {section name=i loop=$loop} {/section} {$package->package}</option>
{/foreach}
</select>
</dd>
<div class="formSubmit">
<input type="submit" accesskey="s" value="{lang}wcf.global.button.submit{/lang}" />
- {@SID_INPUT_TAG}
</div>
</form>
$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'];