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.

Forum Module /

Discuss the Forum Module.

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

Problems with translation´s file


Go to End


3 Posts   1877 Views

Avatar
jmperea

Community Member, 5 Posts

6 August 2009 at 8:11pm

Hello:

For example, the file ForumLogin.ss contains tags like: , _t('LOGGEDINAS','You\'re logged in as'), this key is conteined in the file en_US.php ,

$lang['en_US']['ForumLogin.ss']['LOGGEDINAS'] = 'You\'re logged in as';

But when I make any change in this key or other, it doesn't appear in the webpage. There are other keys that work correctly.

Can you tell why it happens?

Thanks

Avatar
baba-papa

Community Member, 279 Posts

17 August 2009 at 4:43am

If changes in the _t() or the translation file do not show any effect you are working on the wrong piece of code. Remember that you have to flush the template cache before any changes to the templates show in the browser.

Avatar
baba-papa

Community Member, 279 Posts

17 August 2009 at 6:19pm

Try this as well:

_t('ForumLogin.ss.LOGGEDINAS','You\'re logged in as')