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 thread is resolved. Here is a description of the problem and solution.

Problem:
How to add custom XML for WC Social Login widget correctly?

Solution:
Your wild card should be like this:

<key name = "*"/>

As you are using wild card you do not need to add the title. so you can remove this:

<key name = "title" />

So the final should be:

<wpml-config>
    <admin-texts>
        <key name="wc_memberships_redirect_page_id"/>
        <key name ="widget_wc_social_login_widget">
            <key name = "*"/>
        </key>
    </admin-texts>
</wpml-config>

so as per this, everything inside widget_wc_social_login_widget will be added to string translations.

This topic contains 2 replies, has 2 voices.

Last updated by arnoldS-2 1 month ago.

Assigned support staff: Riffaz.

Author Posts
September 15, 2019 at 1:08 pm #4574659

arnoldS-2

Tell us what you are trying to do?

Insert following code;

<wpml-config>
<admin-texts>
<key name ="widget_wc_social_login_widget">
<key name = "*">
<key name = "title" /></key>
</key>
</admin-texts>
</wpml-config>

into existing code;

<wpml-config>
<admin-texts>
<key name="wc_memberships_redirect_page_id"/>
</admin-texts>
</wpml-config>

September 15, 2019 at 1:30 pm #4574709

Riffaz
Supporter

Languages: English (English )

Timezone: Asia/Colombo (GMT+05:30)

Hi,

Thank you for contacting WPML support.

Your wild card should be like this:

<key name = "*"/>

As you are using wild card you do not need to add the title. so you can remove this:

<key name = "title" />

So the final should be:

<wpml-config>
    <admin-texts>
        <key name="wc_memberships_redirect_page_id"/>
        <key name ="widget_wc_social_login_widget">
            <key name = "*"/>
        </key>
    </admin-texts>
</wpml-config>

so as per this, everything inside widget_wc_social_login_widget will be added to string translations.

Let me know how it goes.

Regards,
Riffaz.

September 15, 2019 at 1:43 pm #4574721

arnoldS-2

My issue is resolved now. Thank you!