i18n in Mustache templates ========================== In order to not pollute your presenters, you should use gettext directly in the ``.mustache`` files: .. code-block:: html

{{# gettext }}Personal page{{/ gettext }}

{{# gettext }}It's likely that %s will see %s.| {{ username }} | {{ label }} {{/ gettext }}

{{# ngettext }} There is %s apple | There are %s apples | {{ count }} {{/ ngettext }}

{{# ngettext }} The user with id %s has been removed from %s | The users with id [%s] have been removed from %s | {{ count }} | {{ comma_separated_ids }} | {{ project_name }} {{/ ngettext }}

{{# dgettext }} tuleap-agiledashboard | Scrum backlog {{/ dgettext }} .. NOTE:: As we are using ``|`` as separator, you cannot use it in your strings (and there is no way to escape it for now, contribution welcomed if you really need it).