Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

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

2.3: Language mix in admin area


Go to End


18 Posts   7198 Views

Avatar
wagnerma

Community Member, 12 Posts

10 June 2009 at 6:14am

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

Avatar
Pipifix

Community Member, 56 Posts

6 April 2011 at 1:58am

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)

Go to Top