From: Matthias Schmidt Date: Thu, 12 Jul 2012 20:15:35 +0000 (+0200) Subject: Makes it easier to get category language variables X-Git-Tag: 2.0.0_Beta_1~1000^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d6556156cdead5ab98b359af398853742ebdfbd0;p=GitHub%2FWoltLab%2FWCF.git Makes it easier to get category language variables Replaces `ICategoryType::getLangVarPrefix()` with `ICategoryType::getLanguageVariable()` which returns the value directly. This makes the template code more compact. --- diff --git a/wcfsetup/install/files/acp/templates/categoryAdd.tpl b/wcfsetup/install/files/acp/templates/categoryAdd.tpl index 09ec2b4c38..364503c934 100644 --- a/wcfsetup/install/files/acp/templates/categoryAdd.tpl +++ b/wcfsetup/install/files/acp/templates/categoryAdd.tpl @@ -23,7 +23,7 @@
-

{hascontent}{content}{lang __optional=true}{@$objectType->getProcessor()->getLangVarPrefix()}.{@$action}{/lang}{/content}{hascontentelse}{lang}wcf.category.{@$action}{/lang}{/hascontent}

+

{@$objectType->getProcessor()->getLanguageVariable($action)}

@@ -35,18 +35,13 @@

{lang}wcf.global.form.{@$action}.success{/lang}

{/if} -{capture assign='listLangVar'}{lang __optional=true}{@$objectType->getProcessor()->getLangVarPrefix()}.button.list{/lang}{/capture} -{if !$listLangVar} - {capture assign='listLangVar'}{lang}wcf.category.button.list{/lang}{/capture} -{/if} - {hascontent}