Given the following mustache template:
{{# dgettext }}
tuleap-program_management |
Values "%s" are not found in every tracker, please check tracker |
{{ missing_values }}
{{/ dgettext }}
When you browse Tuleap in French language and you render this template, it will cause a Fatal error:
Fatal error: Uncaught ValueError: The arguments array must contain 2 items, 1 given in /usr/share/tuleap/src/common/templating/mustache/GettextHelper.php:124 Stack trace: #0 /usr/share/tuleap/src/common/templating/mustache/GettextHelper.php(124): vsprintf() #1 /usr/share/tuleap/src/common/templating/mustache/GettextHelper.php(77): Tuleap\Templating\Mustache\GettextHelper->getFormattedText() #2 /usr/share/tuleap/src/common/templating/mustache/MustacheEngine.php(51): Tuleap\Templating\Mustache\GettextHelper->dgettext() #3
[and so on...]
It should not crash when double quote character "
is used in a translated string