-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creating translations in GridField/ModelAdmin doesn't work #55
Comments
i have trouble with this issue… any progress on it? |
Is there any solution to this (in particular one that works with 3.0 compatible branch)? It's pretty critical - been open 6 months - and I can't find a fix for it |
Bump. If anyone can provide initial guidance, I'll happily work on a fix for 3.1+. @chillu ? |
For 2.4 we had a proof of concept module: https://github.com/silverstripe-labs/silverstripe-translatablemodeladmin |
I think I managed to get it working with a few changes. I would like to discuss this before I setup a pull request.
In this Paste I more got the Translations working for a DO, but Im not quite sure if we should create a custom TranslatableModelAdmin, or change TranslatableCMSMainExtension and Translatable. |
@axyr Your solution is working, but if your item, selected from GridView has also GridView, items within have the same problem. Do you know a solution? |
@chillu Have you found working solution? |
@axyr Your solution works to a certain extend. However, I try to manage Pages in modeladmin. When using your solution, it creates a translation of the page in the SiteTree_Live table, and not in the SiteTree table. EDIT: Setting |
I can't seem to get your solution working @axyr. I never see anything to do with translation in the model admin and adding anything debug related to TestObjectAdminDetailForm_ItemRequest methods dont show up as if it never gets hit. EDIT: |
Still cant figure this out. At start there was no button when I added the code from axyr, the button apperared. Now the button works, but when i create translation the list under "Existing translations" is empty. |
Unfortunately, SilverStripe 3 has entered limited support in June 2018. This means we'll only be fixing critical bugs and security issues for SilverStripe 3 going forward. You can read the SilverStripe Roadmap for more information on our support commitments. |
Migrated from http://open.silverstripe.org/ticket/7771
I added a DataObject? and ModelAdmin? with this code:
and this in the mysite/_config.php:
Object::add_extension('Category', 'Translatable');
I then created a Category and attempted to make a new translation of it, and nothing happened. I didn't see any Javascript errors either.
The text was updated successfully, but these errors were encountered: