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.

All other Modules /

Discuss all other Modules here.

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

Translate File Title of Assets with Translatable plugin


Go to End


1140 Views

Avatar
Serjii

Community Member, 1 Post

27 July 2016 at 7:33pm

Edited: 27/07/2016 7:36pm

Is it possible to translate the Titel of the Asset Files for multiple localizations?

I tried with:

$fields->addFieldToTab(
            'Root.Attachments',
            $uploadField = UploadField::create('Files','Dateien')
        );

// Apply Translatable modifications
$this->applyTranslatableFieldsUpdate($fields, 'updateCMSFields');
 

but it doesnt work for me.