Replies: 2 comments 2 replies
-
Now on testing even further I found another issue that might keep me from using this setup overall. But this has the side effect that as soon as only one field is setup this way, the translated post layouts are synchronized. This is due to the way polylang behaves on layout fields, see 4.1: @aaronmeder Have you found a fix/workaround for this already? If this is not resolvable, Polylang Pro's new DeepL integration would not be compatible with flynt. :/ |
Beta Was this translation helpful? Give feedback.
-
I might have come up with a fix for this issue (needs more testing though): Exclude flynts' components from syncing via polylang filter hook:
This effectively leaves the component structure untouched when editing already translated content (for when field translation parameter is enabled for any of the contained fields). Yaih! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Doing some tests with the most recent version of Polylang Pro that now integrated automatic translations via DeepL API I found that in order to make this feature work you need to change the field configuration of every field that should be translated.
So if you would like the content of a basic WYSIWYG-field to be automatically translated you'd need to add another option introduced by Polylang:
[ 'label' => __('Text', 'flynt'), 'name' => 'contentHtml', 'type' => 'wysiwyg', 'delay' => 0, 'media_upload' => 0, 'required' => 1, 'translations' => 'translate', // add this to make automatic translation work ],
see also:
https://polylang.pro/doc/working-with-acf-pro/#translate-fields-values
https://polylang.pro/deepl-machine-translation-now-available-for-polylang-pro/
I was wondering if this could be accomplished globally for specific field types via Flynts' ACF Field Group Composer.
Beta Was this translation helpful? Give feedback.
All reactions