Jump to:

23473 Posts in 18941 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » [Translatable] Some problems

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 669 Views
  • Edu115
    Avatar
    Community Member
    13 Posts

    [Translatable] Some problems Link to this post

    Hi there,

    I'm having some troubles getting Translatable to work in 2.3.2.

    I don't know if I'm doing everything as I should, but I think so.

    I added these lines in mysite/_config.php

    Object::add_extension('SiteTree', 'Translatable');
    Translatable::set_default_locale('pt_PT');

    And then, in the Admin page, I made some changes. My old default locale was en_US, but my content was in Portuguese. So I created a new Portuguese translation, I put there my original content, and then I put the English content in my original English translation.

    The thing is, everything is messed up now. When I choose the Portuguese translation, the site tree on the left gets completely messed up.
    Also, when I try to put /?locale=pt_PT in front of the URLs, the content stays in English.

    I wanted to try to delete the translation files, but I can't seem to find a way of doing it.

    Thank you,
    Eduardo

  • Edu115
    Avatar
    Community Member
    13 Posts

    Re: [Translatable] Some problems Link to this post

    When I open the Portuguese translation, the site tree on the left has different pages from the one that appears in the default English translation.

    I'm trying to find that in the db, in order to delete those rows, but I'm afraid I mess up.

  • Edu115
    Avatar
    Community Member
    13 Posts

    Re: [Translatable] Some problems Link to this post

    "Página Principal" is the translated value of "Main Page".

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