Jump to:

5450 Posts in 1672 Topics by 1197 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: 3932 Views
  • wagnerma
    Avatar
    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.

    Cheers,
    Marcel

  • Pipifix
    Avatar
    Community Member
    54 Posts

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

    Hello.

    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

    mysite/_config.php

    ...
    MySQLDatabase::set_connection_charset('utf8');

    // This line set's the current theme. More themes can be
    // downloaded from http://www.silverstripe.org/themes/
    SSViewer::set_theme('blackcandy');

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

    // enable nested URLs for this site (e.g. page/sub-page/)
    SiteTree::enable_nested_urls();

    //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
    //FulltextSearchable::enable();

    // default image quailty of uploaded images
    GD::set_default_quality(100);

    //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)

    3932 Views
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.