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.

Data Model Questions

multilingual field_labels in modeladmin / genericviews


Reply

2 Posts   1324 Views

Avatar
patte

21 September 2009 at 8:12pm Community Member, 63 Posts

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

27 September 2009 at 4:27pm Forum Moderator, 801 Posts

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