-
Notifications
You must be signed in to change notification settings - Fork 37
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
Translatable fields are not showing: dev-master (6d1a7d) #29
Comments
ad. 1) The translate icons are set by Javascript. Do you get any errors in the console? ad. 2) As far as i remember, this is intended. You need to add the record with the default language first and can then add translations. |
Yes.
|
Sorry, missed the part about the translation icons, Could you please post the contenttypes.yml so I can try to reproduce here? |
The main problem is that the translatable fields won't show up so you can't type text per language. PS |
@peterboorsma The issue here is just that while fixing a few other things I changed isTranslateable to is_translateable since it better follows bolt's and YAML's rules about key names that way (I thought it was best to fix all the things that has bothered me in one breaking change when I have to bump major versions anyway). I updated the readme, but forgot to mention it in the issue... :( Just change isTranslateable to is_translateable and it should work :) Oh, and I'm very thankful for you trying the extension and posting issue when you run into snags! If you need something in real-time you can also ping me on slack/irc. :) |
Yes. I used the old "isTranslatable". Updated them now. But... |
@peterboorsma yeah, it's intentional to refresh the browser instead of doing it ajaxy... That way it will be much more compatible and robust. The old way of doing it ajaxy would be much harder to make compatible with extensions and would require us to write js for loading values into every extension fieldtype. For me (when testing with your contenttype) it seems like DB query result is getting cached... Could you try updating page with translations a few times and see if your translations appear then? Perhaps local extensions do not get their DB queries results cached which would explain why I didn't see this when writing the code... |
@peterboorsma Or you should be able to disable the cache by adding
|
I made a copy of my test site on my dev server. Things work fine there so it must be something on my local server. I'll try to figure that out. |
Problem fixed with dev-master (7fa12c) + Bolt 3..0.10 |
Great :) |
After installing and adding the correct additions to contenttypes.yml, config and updating the database.
Two issues:
but the toggle to the translatable fields don't work. (page reloads instead of showing the right fields)
In both cases the translate icons for translatable filetypes are missing.
The text was updated successfully, but these errors were encountered: