Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

Access to translation rules

$
0
0

Dear support!

I need to create a button that will allow user to create a translation of a Member object (this is a custom post type). Using WPML I set specific translation rules for specific Member CPT fields (generally it is copy value for numeric values and images, translate value for text fields). A button I'm creating must display a translation form, that should have non-translatable fields populated with values from the original Member CPT and translatable fields be empty for user to type-in a translation himself. Is there any way to access CPT field's translation rules from a PHP code in order to know which fields can be copied from the original and which must be translated?

Would be really cool if one can generate a CRED form that will add a translation automatically but looks like it can be done only manually so far.

Thank you in advance!


Viewing all articles
Browse latest Browse all 20145

Trending Articles