Skip to Content.
Sympa Menu

en - [en@sympa] mail template string localization

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • 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)
%]

[%# 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



Archive powered by MHonArc 2.6.19+.

Top of Page