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.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

SilverStripe 3.1 – ModelAdmin – Translatable – Can't create translation


Reply

8 Posts   583 Views

Avatar
joelg

26 July 2013 at 2:19am Community Member, 129 Posts

Hi there,

I've created a model admin for a dataobject. Pretty basic.

I've then installed the Translatable module and added this to the dataobject.

In the model admin panel I'm now getting an extra tab called "Translations" and I can see a button saying "Create" underneath "Create new translation" – just like on pages in the SiteTree.

However when I push this buttons absolutely nothing happends? Any ideas?

Thanks

Joel

Avatar
joelg

31 July 2013 at 1:45am Community Member, 129 Posts

Bump!

Avatar
Craftnet

9 August 2013 at 1:31am (Last edited: 9 August 2013 1:31am), Community Member, 58 Posts

Anyone solution the problem?

Avatar
joelg

9 August 2013 at 1:33am Community Member, 129 Posts

No... I'm still waiting for a solution.

For now I've manually created stuff in the database... Really sucks:-(

Avatar
Craftnet

9 August 2013 at 1:39am Community Member, 58 Posts

I found this module https://github.com/bummzack/translatable-dataobject
For a while I was testing it

Avatar
joelg

9 August 2013 at 1:40am Community Member, 129 Posts

Did it work?

Avatar
Craftnet

9 August 2013 at 1:44am Community Member, 58 Posts

For this moment I was install and in DB create all fileds with __locale for example
I have a Title - for other lang was create Title__en_GB.

This module differs from the standard that does not create only the columns of locale but for each duplicate entry for another language.
Do not show me in a CMS option to enter into these new lines of translation - I am looking for :)
How I can make it I'll let you know.

Sorry for my bad English

Avatar
Craftnet

9 August 2013 at 3:52am Community Member, 58 Posts

It's work.

Once installed according to the instructions you need to go to the translated language and to dataobject -> there you have the box that you can translate.

It seems to me that you have connected dataobject of Page by gridfield -> at least to me how it works -> otherwise I have not checked this form at this time is enough for me