Bug
Language switch during php call
Issue description
A dual language system that sends emails to contacts had a language switch during the text. The final text consisted of 4 parts (txt calls) that were passed to a php call. When the txt calls where within the php call, the language switch occurred. If they were performed before the php, everything worked as expected. Important is that there was another language in use.
Developer comments
Given that the language is de, this *does not* work:
[%lang("en");
php("sometemplate.txt.php", [
"part1" => txt("part1"),
"part2" => txt("part2")
]);
lang();
%]
Only part1 will be in English, part2 will be in German.
Given that the language is de, this *does* work:
[%lang("en");
$part1 = txt("part1");
$part2 = txt("part2");
php("sometemplate.txt.php", [
"part1" => $part1,
"part2" => $part2
]);
lang();
%]
Both parts will be in English.
Rejection comment
Wrote a test. Could not be reproduced.
|
|
We are sorry
This page cannot be displayed in your browser. Use Firefox, Opera, Safari, or Chrome instead.