Jump to:

5537 Posts in 1737 Topics by 1223 members

Customising the CMS

SilverStripe Forums » Customising the CMS » 2.3.3. multilingual problem (java script parse error)

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

Page: 1 2
Go to End
Author Topic: 3134 Views
  • Newbie2009
    Avatar
    Community Member
    11 Posts

    2.3.3. multilingual problem (java script parse error) Link to this post

    Hi!

    I have an important question to my multilingual problem in silverstripe 2.3.3. I put this code in my _config.php.

    Translatable::enable();
    Translatable::set_default_lang('de');
    i18n::set_locale('de_DE');

    After that I logged my in the Backend. Now I had a Setup Box with German and English. I tryed the English CMS and I made some categories and so on. It seems to work. But later I had some new Buttons in there and I can delete them. It always says Java script parse error. Picture Attached!!!

    1. What is to do that I get my CMS in 2 languages?
    Can I use this threat? But I have the Problem with categories???
    http://doc.silverstripe.com/doku.php?id=recipes:multilingual_content

    2. How can I delete this categories?
    3. It is possible to delete the whole English part?

    Please explain me what is to do! Thx from Germany...

    Attached Files
  • Ingo
    Avatar
    Forum Moderator
    801 Posts

    Re: 2.3.3. multilingual problem (java script parse error) Link to this post

    > But later I had some new Buttons in there and I can delete them.
    What buttons? Did you overload getCMSFields()?

    > It always says Java script parse error.
    That doesnt give us much. Please download getfirebug.com and tell us the ajax response output.

  • Newbie2009
    Avatar
    Community Member
    11 Posts

    Re: 2.3.3. multilingual problem (java script parse error) Link to this post

    Hi Ingo,

    I have to explain better. When I do a dev/build I get in my English CMS always a new Category. It meens the CMS generate always a new page not found side. I want to delete that but that is in the English CMS not possible only in the German. I always get a Javascript Parse error.
    I read that is a bug in silverstripe, I found this threat and I tried it. That is not working for me. Did you have a solution.
    http://open.silverstripe.com/ticket/4442

    Another question is I want to try new sidetypes in my English CMS, Because in the English Frontend the SIdebar is in German etc. I want to translate that in English. I think that is not possible?

    thx for your help...

  • Ingo
    Avatar
    Forum Moderator
    801 Posts

    Re: 2.3.3. multilingual problem (java script parse error) Link to this post

    The bug you're referring to is about batch actions - did you try to apply those? The parse error can mean anything, we really need the actual error output from the ajax response.

  • Newbie2009
    Avatar
    Community Member
    11 Posts

    Re: 2.3.3. multilingual problem (java script parse error) Link to this post

    Hello Ingo,

    thank you for your help. In my first steps I translated the german to the english pages. That works but I can't change sidetypes. damn. somebody told me that is not possible.

    Thats why I decided to do new pages for my english sidetypes. Because I need that why my english website has an english sidebar and many other things which depends form the english layout.

    the main big problem is that I don't delete any category in the english backend. I also can not unpublish the category (english backend).

    I installed me firebug on mozilla, which information do you need for helping me?

    thx ingo

  • Kalileo
    Avatar
    Community Member
    127 Posts

    Re: 2.3.3. multilingual problem (java script parse error) Link to this post

    Newbie2009,

    try changing the lines concerning Translatable in your _config.php to this:

    Object::add_extension('SiteTree', 'Translatable');
    Translatable::set_default_locale('de_DE');
    $allowed_locales = array(
    'de_DE',
    'en_GB',
    );
    Translatable::set_allowed_locales($allowed_locales);

  • Newbie2009
    Avatar
    Community Member
    11 Posts

    Re: 2.3.3. multilingual problem (java script parse error) Link to this post

    Thx Kalileo for your help. I put this code in my _config.php

    //making silverstripe multilinugal
    Object::add_extension('SiteTree', 'Translatable');
    //set default language
    Translatable::set_default_locale('de_DE');
    $allowed_locales = array(
    'de_DE',
    'en_US',
    );
    Translatable::set_allowed_locales($allowed_locales);

    /dev/build....

    After that I have only 2 languages in my set up box (Backend).
    But I have the same problem I can't delete or unpublish artikles or pages in the english backend.

    hmm...

  • AlexBeka
    Avatar
    Community Member
    21 Posts

    Re: 2.3.3. multilingual problem (java script parse error) Link to this post

    i had the some problem once, see posting;
    as a workaround you could use the buttons "Unpublish" or "Delete from draft site" and not the batch-actions;

    but the patch from ticket 4442 resolved the problem with the batch-actions in my case;
    you should also apply the patch from ticket 4420 to have a "correct" labelling of the batch-actions;

    3134 Views
Page: 1 2
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.