Jump to:

1030 Posts in 805 Topics by 311 members

Forum Module

SilverStripe Forums » Forum Module » Some entitys stay in English even if i have it in translation file after change locale set

Discuss the Forum Module.

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

Page: 1
Go to End
Author Topic: 715 Views
  • Tau
    Avatar
    Community Member
    2 Posts

    Some entitys stay in English even if i have it in translation file after change locale set Link to this post

    Hello,
    I have problem with translating the Forum module into Czech language. I used the translate.silverstripe.org to translate allmost all entities. I download the file with translation and copy it into lang folder of Forum module in my Silverstripe instalation. In my mysite/_config.php I add this

    Translatable::enable();
    Object::add_extension('SiteTree', 'Translatable');
    i18n::set_locale('cs_CZ')


    After this I refresh my site, some entities is now translated, but some are still in english even if they are in the translation file. I try this with some other translations, but same entities still stay in english.
    Doing I something wrong?

    Please Can anyone help me with this?

    Many thanks.
    Sinceserly,
    Marek Fronc.

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: Some entitys stay in English even if i have it in translation file after change locale set Link to this post

    The forum does have some untranslated strings (quite a few which have been fixed in trunk) so there may be segments that cannot be translated. Any strings in particular you're having trouble with?

  • Tau
    Avatar
    Community Member
    2 Posts

    Re: Some entitys stay in English even if i have it in translation file after change locale set Link to this post

    For Example in ForumFooter.ss template there is

    <% _t('CURRENTLYON','Currently Online:') %>


    in my translation file is entity CURRENTLYON translated as you can see below

    $lang['cs_CZ']['ForumFooter.ss']['CURRENTLYON'] = 'Právě připojeni:';


    but still on website I see string "Currently Online:"

    But more weird is in ForumHeader.ss if it is used in ForumHolder page only Posts is translated but if I go into some thread wihich I think is used Forum.ss template Posts and Topics are translated, but not the members

    <p class="forumStats">$TotalPosts <strong><% _t('POSTS','Posts') %></strong> <% _t('IN','in') %> $TotalTopics <strong><% _t('TOPICS','Topics') %></strong> <% _t('BY','by') %> $TotalAuthors <strong><% _t('MEMBERS','members') %></strong></p>

    I look to the code of translation file and not realy understand why some entities have the .ss on the end and some are only with name of template. Is there some rule about this?

    Thanks for replies.

    Marek.

    715 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.