Jump to:

5541 Posts in 1738 Topics by 1224 members

Customising the CMS

SilverStripe Forums » Customising the CMS » 2.3: Language mix in admin area

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

Page: 1 2 3
Go to End
Author Topic: 4187 Views
  • wagnerma
    Community Member
    12 Posts

    Re: 2.3: Language mix in admin area Link to this post

    well, restarting the server if changing php config is a good idea ;-)

    So after changing register_globals to off on the production site SOLVES my language mix problem ;-)

    So, thanks a lot for this hint! And possible only a warning during installation is not enough.


  • Pipifix
    Community Member
    54 Posts

    Re: 2.3: Language mix in admin area Link to this post


    I got the same problem. The loginscreen ist still in english. Despite setting my adminaccount language to german, the backend is english too.
    I'm not able to solve this problem.

    Here are the stats:
    Silverstripe 2.4.4
    German internet provider all-inkl.
    register_globals = off



    // This line set's the current theme. More themes can be
    // downloaded from http://www.silverstripe.org/themes/

    // Set the site locale
    i18n::include_locale_file('event_calendar', 'de_DE');
    i18n::include_locale_file('blog', 'de_DE');
    setlocale(LC_ALL, 'de_DE');
    HtmlEditorConfig::get('cms')->setOption('language', 'de');

    // enable nested URLs for this site (e.g. page/sub-page/)

    //enabling Search > This will add a SearchForm() and results() method in your Page_Controller, as well as set up common fields like SiteTree.Content to be in

    // default image quailty of uploaded images

    //We now need to tell silverstripe to extend the group object with our decorator
    Object::add_extension('Group', 'GroupDecorator');
    //Tell SilverStripe to use our custom login class instead of the usual one
    Object::useCustomClass('MemberLoginForm', 'CustomLoginForm');

    You see, im using the code of the "Custom Login Form with Group Based Redirection" tutorial by aram. the code is utilizing the dologin class.

    Is this overiding the the german language files?
    No clue what else to do. Maybe you can help.

    Thanks. Thomas (pipifix)

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