Subject: The mailing list for listmasters using Sympa
List archive
- From: address@concealed
- To: address@concealed
- Subject: [en@sympa] mail template string localization
- Date: Tue, 24 Oct 2023 17:34:31 +0200
Hi,
I tried to translate a string before passing it to another template:
[%# file:bye.tt2 ~%]
[% PROCESS include_html_head.tt2
HTML_HEAD_TYPE='alert'
HTML_HEAD_MESSAGE="Unsubscribed from %1"|loc(list.name)
HTML_HEAD_TYPE='alert'
HTML_HEAD_MESSAGE="Unsubscribed from %1"|loc(list.name)
%]
[%# file:include_html_head.tt2 ~%]
[% IF HTML_HEAD_TYPE == 'alert' ~%]
[% HTML_HEAD_MESSAGE %]
[%~ END ~%]
The %1 placeholder was correctly replaced with the list name, but the string wasn't translated. What do I have to do, to get the translated string into the variable HTML_HEAD_MESSAGE?
Best regards,
Gregor
-
[en@sympa] mail template string localization,
punk . car6809, 10/24/2023
- Re: [en@sympa] mail template string localization, IKEDA Soji, 10/25/2023
Archive powered by MHonArc 2.6.19+.