Jump to:

1036 Posts in 810 Topics by 315 members

Forum Module

SilverStripe Forums » Forum Module » Problems with translation´s file

Discuss the Forum Module.

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

Page: 1
Go to End
Author Topic: 1006 Views
  • jmperea
    Avatar
    Community Member
    5 Posts

    Problems with translation´s file Link to this post

    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

  • baba-papa
    Avatar
    Community Member
    279 Posts

    Re: Problems with translation´s file Link to this post

    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.

  • baba-papa
    Avatar
    Community Member
    279 Posts

    Re: Problems with translation´s file Link to this post

    Try this as well:

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

    1006 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.