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.

Data Model Questions /

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

multilingual field_labels in modeladmin / genericviews


Go to End


2 Posts   2156 Views

Avatar
patte

Community Member, 63 Posts

21 September 2009 at 8:12pm

Hi,

can anyone please give me a tip howto use multilingual $field_labels within modeladmin? I am building a website using genericviews and I searching for a way to use translated field_labels.

Any idea?

Thanks much

Patte

Avatar
Ingo

Forum Moderator, 801 Posts

27 September 2009 at 4:27pm

You'll have to overload the DataObject->fieldLabels() method (which by default takes $field_labels), and use _t() calls.