Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Unable to translate inside templates


Go to End


740 Views

Avatar
MarioSommereder

Community Member, 107 Posts

19 January 2017 at 6:57am

I translated the pages from within the backend into multiple languages. No problem. But I cannot translate from within the templates. It always uses the en.yml file, even though es.yml exists and holds the correct data. The regular syntax "<%t ... %>" is used and $ContentLocale shows the right language (eg. es-ES). My SilverStripe version is 3.5.1 and translatable is at 2.2.

Is this a bug or am I missing something? Thanks.

Best, Mario