Translation Issues with polylang plugin in Evolve theme
-
Although the Polylang plugin works fine in my Evolve theme, however I can’t translate the contain within the Parallax slider.
I need to add strings to polylang plugin for every text within parallax sliderThanks Folks
-
Hi
You need to create a wpml-config.xml as explained here or use the pll_register_string and __pll functions.If you choose to create a wpml-config.xml you will only need of the
admin-textspart. If you don’t know or where to find the name of these options, please ask to the theme author.<wpml-config> <admin-texts> <key name="my_plugins_options"> <key name="option_name_1" /> <key name="option_name_2" /> <key name="options_group_1"> <key name="sub_option_name_11" /> <key name="sub_option_name_12" /> </key> </key> </admin-texts> </wpml-config>Hi Chrystl
Thanks for your advice. I will try to apply them, since I’m not an expert on this.
Thanks a lot
Hi again Chrystl,
Here is the options name for the slider of evolve theme:
<wpml-config>
<admin-texts
<key name=”evolve-theme”>
<key name=”evl_slide1_title” />
<key name=”evl_slide1_desc” />
<key name=”evl_slide1_button” />
<key name=”evl_slide2_title” />
<key name=”evl_slide2_desc” />
<key name=”evl_slide2_button” />
<key name=”evl_slide3_title” />
<key name=”evl_slide3_desc” />
<key name=”evl_slide3_button” />
<key name=”evl_slide4_title” />
<key name=”evl_slide4_desc” />
<key name=”evl_slide4_button” />
<key name=”evl_slide5_title” />
<key name=”evl_slide5_desc” />
<key name=”evl_slide5_button” />
</key>
</key>
</admin-texts>
</wpml-config>The question is : where do I have to put this text ( if it is correct)
In Polylang Plugin file or in theme file? And in what file?Thanks in advance
All it explains in the link I gave you above. Please read: https://polylang.wordpress.com/documentation/documentation-for-developers/the-wpml-language-configuration-file/
I have read the provided information. The only I didn’t understand is in what place I have to put this wpml-config.xml file. It is not clear, for me at least.
I’m saying again I’m begginer!
Upload it in /wp-content/polylang/ (create the directory polylang if it does not exist).
Remove at the end of your file a
</key>. You need only one.Thanks a lot. I will do it shortly
I upload to mentioned location but nothing happened.
No new strings to translate appearedYou forget a
>at<admin-textsYes, you are right, but I have already corrected
Look what they replied to me from the theme autors: “Regretfully, translating the Parallax Slider is not possible due the reason that its content is not stored into translatable theme string.”
Is that possible? If it is we have nothing to do more. But it seems a little bit strange.
I tested a small part and it works:
<wpml-config> <admin-texts> <key name="evolve-theme"> <key name="evl_slide1_title" /> <key name="evl_slide1_desc" /> <key name="evl_slide1_button" /> </key> </admin-texts> </wpml-config>You must fill your theme options if you want see the strings translations fields appear in the Strings Translation tab.
Did you try in evolve theme? Because I tried again without result
Just to know: I created a polylang directory in wp-content and in this directory (polylang) i put the wpml-config.xml file. Is this ok?
The problem I think is I don’t have registered new strings for this slider.
Do you use evolve version: 3.3.0?
Just to know: I created a polylang directory in wp-content and in this directory (polylang) i put the wpml-config.xml file. Is this ok?
Yes it’s the good way.
Could you provide a screen copy of where you put the file?It is the 1.9.0 Premium. Is the same with 3.3.0 in parallax slider.
The topic ‘Translation Issues with polylang plugin in Evolve theme’ is closed to new replies.