Skip to content
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

Custom meta field translation UIs #323

Open
2 of 4 tasks
simonwheatley opened this issue Aug 20, 2015 · 1 comment
Open
2 of 4 tasks

Custom meta field translation UIs #323

simonwheatley opened this issue Aug 20, 2015 · 1 comment
Assignees

Comments

@simonwheatley
Copy link
Contributor

For particular use cases, like Alley's Fieldmanager repeated fields (see slideshow code example), the standard Babble meta field translation UI control will not work as the data is serialised into a single post meta field. In this case users can extend the abstract Babble_Meta_Field class and create their own translation UI control for their own particular use cases.

There are some things we need to join together and fix up to allow this

  • Allow HTML on the output (i.e. "to be translated") side of the translation UI control
  • Allow the Babble_Meta_Field::update method to alter the value before it is saved
  • Sync untranslated elements of the serialised data (devs could do it themselves, or ignore it, or we might look to see if we can make this easier…)
  • Tests where appropriate
@simonwheatley simonwheatley self-assigned this Aug 20, 2015
This was referenced Aug 20, 2015
@simonwheatley
Copy link
Contributor Author

Added a note about syncing untranslated elements of the serialised data; i.e. if the original post is altered, but altered element of the serialised data is not translated (e.g. the image is changed for a slide in a series of slides) and a translation is not triggered (because there's nothing to translate), that image change will not be synced by default. Does that make sense?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant