Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
Translate the admin-texts for the Sticky Popup plugin.

Solution:
1. Create the wpml-config.xml file using Multilingual Tools configurator
2. Place it in the root directory of the Sticky Popup plugin.

The strings are now registered in the String Translation table for translation.

Relevant Documentation:
https://wpml.org/documentation/related-projects/wpml-compatibility-test-tools-plugin/
https://wpml.org/documentation/support/language-configuration-files/

<wpml-config>
    <admin-texts>
        <key name="sp_popup_active"/>
        <key name="sp_popup_title"/>
        <key name="sp_popup_title_color"/>
        <key name="sp_popup_title_image"/>
        <key name="sp_popup_header_color"/>
        <key name="sp_popup_header_border_color"/>
        <key name="sp_popup__place"/>
        <key name="sp_popup_top_margin"/>
        <key name="sp_popup_content"/>
        <key name="sp_popup_on_homepage"/>
        <key name="sp_popup_on_posts"/>
        <key name="sp_popup_on_pages"/>
    </admin-texts>
</wpml-config>

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 4 replies, has 3 voices.

Last updated by rickd-4 5 years, 1 month ago.

Assigned support staff: Yvette.

Author Posts
July 25, 2016 at 2:29 pm #973974

tomasS-14

Hello,

I am trying to translate plugin "Sticky Popup". More exactly the title of it.

Somehow when I change language it is still the same. If I look at string translation I can not find anything about this plugin.

How can I translate title and body?

We are using: avada theme v.4.0.2

Capture.JPG
July 25, 2016 at 6:04 pm #974557

Yvette
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Los_Angeles (GMT-07:00)

Hello

These kind of configuration values are called "admin-texts" and need to be registered in the String Translation table via a wpml language configuration file. You would need the String Translation module to be installed and activated.

Here is more on this:
https://wpml.org/documentation/support/language-configuration-files/

Once these input fields are registered, normally, you need only translate the value in the Strings table. If the plugin is using standard WordPress filters/hooks, the localization will then happen automagically.

If you need support in creating this file pleas let me know. I will open the private area for system access information just in case.The fields to provide this data are included in a private section that I will open for your next response. You can find it above the comments area. The information in this private section is only visible between WPML Support and you.

Thanks for your feedback

July 26, 2016 at 4:00 pm #976694

Yvette
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Los_Angeles (GMT-07:00)

Hello.

I created the wpml-config.xml file (see image) and placed it in the root directory of your Sticky Popup plugin.

The strings are now registerd in the String Translation table for you to translate. I included all plugin "options" in the case that you might need to translate something other than just the title in the future. For the moment, you should only translate the "title" and perhaps "content" .

Can you see if this now achieves your original goal?
Thanks for the confirmation.

AdminTextsAdded.png
NewEntriesStringTable.png
July 26, 2016 at 6:06 pm #976958

tomasS-14

Yvette you are the best!

Problem solved. Thank you for your time. Although I have one more question for the future - how to find what are plugins key names that have to go into wpml-config.xml file?

Thank you again.

September 16, 2016 at 7:06 am #1082755

rickd-4

Thank you Yvette, I was also looking for this solution. Works perfectly.