Hi @agneslesagegmailcom,
Thanks for the review. Yes, there were few requirements for the same. I’ll sure work on this and try to implement with the plugin in the future.
Thanks,
Aakash
Thread Starter
Agnes
(@agneslesagegmailcom)
Thanks Aakash.
I actually got it to work somehow:
- create a post with a shortcode for example [sc name=”myshortcode-fr”][/sc]
- translate the shortcode value as I would with any CPT (making sure it is defined as “translateable” in WPML settings)
- Translate the post using ATE
- The shortcode won’t show up, but I can find and translate it by searching “myshortcode-fr” and translating it as “myshortcode-en”.
NB: it does not work if I have the same name like “my-shortcode”.
- Then if I update the translation in the shortcode, I dont need to update the transmated post, it does automatically.
Hi @agneslesagegmailcom,
Yes, we can always create shortcodes based on a specific language and use that in the translated post accordingly.
It is just that the native integration with WPML is not added yet where you can create one shortcode with content for different languages.
Thanks,
Aakash