Overhauled handling of dynamic phrases in templates
authorMarcel Werk <burntime@woltlab.com>
Thu, 3 Feb 2022 17:38:15 +0000 (18:38 +0100)
committerMarcel Werk <burntime@woltlab.com>
Thu, 3 Feb 2022 17:38:15 +0000 (18:38 +0100)
See https://github.com/WoltLab/WCF/issues/4657

templates/legalNotice.tpl

index 2310662ee49de366b983dd3fd9bcf97547c1b5a7..24e227db2ff275b585bcf04dd986335f1b00b673 100644 (file)
@@ -6,7 +6,7 @@
        <dl>
                {if LEGAL_NOTICE_ADDRESS}
                        <dt>{lang}wcf.legalNotice.address{/lang}</dt>
-                       <dd>{@LEGAL_NOTICE_ADDRESS|language|newlineToBreak}</dd>
+                       <dd>{@LEGAL_NOTICE_ADDRESS|phrase|newlineToBreak}</dd>
                {/if}
                
                {if $encodedEmailAddress}
@@ -31,7 +31,7 @@
                
                {if LEGAL_NOTICE_RESPONSIBLE_FOR_CONTENT}
                        <dt>{lang}wcf.legalNotice.responsibleForContent{/lang}</dt>
-                       <dd>{@LEGAL_NOTICE_RESPONSIBLE_FOR_CONTENT|language|newlineToBreak}</dd>
+                       <dd>{@LEGAL_NOTICE_RESPONSIBLE_FOR_CONTENT|phrase|newlineToBreak}</dd>
                {/if}
                
                {if LEGAL_NOTICE_REGISTER}
@@ -53,7 +53,7 @@
                <h2 class="sectionTitle">{lang}wcf.legalNotice.additionalText{/lang}</h2>
                
                <div class="htmlContent">
-                       {if LEGAL_NOTICE_ADDITIONAL_TEXT_ENABLE_HTML}{@LEGAL_NOTICE_ADDITIONAL_TEXT|language}{else}{@LEGAL_NOTICE_ADDITIONAL_TEXT|language|newlineToBreak}{/if}
+                       {if LEGAL_NOTICE_ADDITIONAL_TEXT_ENABLE_HTML}{@LEGAL_NOTICE_ADDITIONAL_TEXT|phrase}{else}{@LEGAL_NOTICE_ADDITIONAL_TEXT|phrase|newlineToBreak}{/if}
                </div>
                
                {event name='additionalTextFields'}