basis.template: rework l10n markup tokens processing