Thread Starter
pickme
(@pickme)
Ok!
I have created the wpml-config.xml file and saved it at several locations within the theme’s, plugin’s and polylang’s root directories as well as at a newly created wp-content/polylang directory. None worked.
I have created the wpml-config.xml file with relevant field IDs of a plugin’s field options I want to translate in the form of:
<wpml-config>
<admin-texts>
<key name=”my_plugins_options”>
<key name=”option_name_1″ />
<key name=”option_name_2″ />
</key>
</admin-texts>
</wpml-config>
But that does not add the plugin’s option fields in Polylang’s table of string translations.
The plugin’s creator has told me that he has translated these option fields with WPML and that they can also be translated with Polylang.
Could you please advise me if I need an additional procedure to add option fields in polylang’s table and translate them?
Thank you
-
This reply was modified 7 years, 3 months ago by
pickme.
-
This reply was modified 7 years, 3 months ago by
pickme.
-
This reply was modified 7 years, 3 months ago by
pickme.
-
This reply was modified 7 years, 3 months ago by
pickme.
-
This reply was modified 7 years, 3 months ago by
pickme.
-
This reply was modified 7 years, 3 months ago by
pickme.
Hi,
Did you come up with a solution for this? I’m trying to do the same thing.
Thank you,
Ashley
Thread Starter
pickme
(@pickme)
Hi,
Create a wpml-config.xml file and add the following code:
<wpml-config>
<admin-texts>
<key name=”xxxx”/>
<key name=”xxxx”/>
</admin-texts>
</wpml-config>
Add as many lines of <key name=”xxxx”/> as you need.
Where xxx is the id attribute of each option you want to translate.
Place wpml-config.xml file in the folder of the plugin using the get_option function for translating options.
Normally you will see the options listed under the string translations of polylang when selecting the corresponding plugin.
Regards
-
This reply was modified 6 years, 9 months ago by
pickme.
Hi,
Thank you so much for your reply. I’ve already added the wpml-config.xml file, and it isn’t working. I was looking for the answer to the question you asked:
“Could you please advise me if I need an additional procedure to add option fields in polylang’s table and translate them?”
Is there an additional procedure?
Thank you,
Ashley
Thread Starter
pickme
(@pickme)
Hi,
I was advised by the plugin developer about this procedure and the code needed within wpml-config.xml that work for the particular plugin which I needed its options to be translated.
You should consult the plugin developer of the plugin you want its options translated.
Maybe a different method is needed for your case.
Regards
Hi,
Gotcha. Will do!
Thank you for your help!!
Kind regards,
Ashley