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.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Switching the language of DataObject Manager


Reply


5 Posts   561 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, 4096 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, 4096 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