[TYPO3-english] Typoscript localization howto

Georg Ringer mail at ringerge.org
Thu Jul 28 08:05:46 CEST 2011


Am 28.07.2011 06:29, schrieb Christian Tardif:
> Hi,
>
> I have a typoscript code in template setup that needs to know about
> current language. Here is the function:
>
> plugin.tx_powermail_pi1.email.recipient_mail {
> email_query = TEXT
> email_query.value = SELECT email FROM fe_users WHERE uid = ###UID8###
> }
>
>
> I would need something like:
>
> plugin.tx_powermail_pi1.email.recipient_mail {
> email_query = TEXT
> if (language == "en") {
> email_query.value = SELECT email FROM fe_users WHERE uid = ###UID10###
> } else {
> email_query.value = SELECT email FROM fe_users WHERE uid = ###UID8###
> }
> }
>
>
> The change is in the WHERE clause. So, how can I make this script know
> about localization?

use your usual condition for the language parameter L

Georg


More information about the TYPO3-english mailing list