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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Switching the language of DataObject Manager


Go to End


5 Posts   701 Views

Avatar
spankmaster79

Community Member, 46 Posts

17 November 2010 at 5:00am

Hi,

I would like to switch the language in DataObject Manager. It displays english language but my backend is in a different langugage. I see there is a translation already available in /lang but don't know how to switch.

Help is appreciated.

Greetz
Spanky

Avatar
spankmaster79

Community Member, 46 Posts

23 November 2010 at 3:33am

No help on this? It can't be that difficult.. the files are already there...

Avatar
UncleCheese

Forum Moderator, 4102 Posts

23 November 2010 at 3:45am

I usually just use i18n::set_locale('en_US');

--------------------
SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

Avatar
UncleCheese

Forum Moderator, 4102 Posts

23 November 2010 at 3:45am

I usually just use i18n::set_locale('en_US');

--------------------
SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

Avatar
spankmaster79

Community Member, 46 Posts

23 November 2010 at 4:04am

that's what I use too:

// Set the site locale
i18n::set_locale('de_DE');

for german. The file under /lang is called deDE3.php. After renaming it to de_DE.php it worked.

Thanks for the hint. Maybe you need to rename it and check it into your project for others to download correctly.

Spanky