From: Tim Düsterhus Date: Tue, 22 Feb 2022 11:00:52 +0000 (+0100) Subject: Improve markup in migration/wsc54/templates.md X-Git-Tag: 5.6.final~68 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c43125ce4dee3b53d6629879e9ac673550abdb34;p=GitHub%2FWoltLab%2Fwoltlab.github.io.git Improve markup in migration/wsc54/templates.md --- diff --git a/docs/migration/wsc54/templates.md b/docs/migration/wsc54/templates.md index f85d1e16..cd330446 100644 --- a/docs/migration/wsc54/templates.md +++ b/docs/migration/wsc54/templates.md @@ -12,7 +12,7 @@ See [WoltLab/WCF#4315](https://github.com/WoltLab/WCF/pull/4315) for details. ## Phrase Modifier -The `|language` modifier was added to allow the piping of the phrase through other functions. This has some unwanted side effects when used with plain strings that should not support variable interpolation. Another difference to {lang} is the evaluation on runtime rather than at compile time, allowing the phrase to be taken from a variable instead. +The `|language` modifier was added to allow the piping of the phrase through other functions. This has some unwanted side effects when used with plain strings that should not support variable interpolation. Another difference to `{lang}` is the evaluation on runtime rather than at compile time, allowing the phrase to be taken from a variable instead. We introduces the new modifier `|phrase` as a thin wrapper around `\wcf\system::WCF::getLanguage()->get()`. Use `|phrase` instead of `|language` unless you want to explicitly allow template scripting on a variable's output.