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:
Microwidgets in the7 theme header not translatable
Solution:
Make a full backup of the site first!

1) https://github.com/OnTheGoSystems/multilingual-tools/archive/master.zip
2) Install this plugin
3) Navigate to Multilingual Tools > Configuration Generator
4) Select the option for the7dtchild domain being selected
5) Try to find the text you put in header and put a check next to those fields
6) On the bottom of the screen, check Save to file and Generate
7) Go to the WPML -> Settings page and click the Custom XML Configuration tab.
8) Open the generated data from step 6) and save
9) These string should show up in String Translation now where you can translate them

In my case it looked like:

<wpml-config>
    <admin-texts>
        <key name="the7dtchild">
            <key name="header-elements-text"/>
            <key name="header-elements-text-2"/>
            <key name="header-elements-text-3"/></key>
    </admin-texts>
</wpml-config>

This topic contains 11 replies, has 2 voices.

Last updated by ozgeO 6 months, 2 weeks ago.

Assigned support staff: Bruno Kos.

Author Posts
March 27, 2019 at 9:35 am

ozgeO

I have couple of issues with translating the7 theme header texts which are stored in admin area.

1. Issue

I somehow managed to bring header text, header text 2 and text 3 into String translation. However, the translations are not displaying on the other language pages.

2. Issue

I can no longer bring the new header text into the String translation even though it says they are ready after pressing apply.

Hope you can help with these issues which the root cause might be the same.

March 27, 2019 at 10:07 am #3469425

Bruno Kos
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

Thank you for contacting WPML support!

I've checked string translation and it looks as you've done it all properly, so I am thinking whether this is compatibility issue. Can you check my next private message?

Regards,
Bruno Kos

March 27, 2019 at 10:08 am
March 27, 2019 at 11:02 am #3469981

ozgeO

The theme is set up in the sandbox.

Thanks.

March 27, 2019 at 1:41 pm #3471555

Bruno Kos
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

May I ask how can I set content of these widgets and where to set them? It would help if you could send me clear steps on how to get there, possibly with images if needed. I am not sure I am seeing these within customizer or that I see theme options panel.

Regards,
Bruno Kos

March 27, 2019 at 1:55 pm #3471649

ozgeO

Theme Options > Top Bar & Header > Microwidgets

Here you will see Text widgets and button

March 27, 2019 at 5:00 pm #3474103

Bruno Kos
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

I've escalated this to Compatibility team. I will keep you posted as soon as I hear from them!

Regards,
Bruno Kos

April 3, 2019 at 12:37 pm #3526085

Bruno Kos
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

I received a response from Compatibility team - it seems as these are indeed regular strings, but they may be generating as we add them. See this:
hidden link

These are within header:
hidden link

I used this XML for this:

<wpml-config>
    <admin-texts>
        <key name="the7dtchild">
            <key name="header-elements-text"/>
            <key name="header-elements-text-2"/>
            <key name="header-elements-text-3"/></key>
    </admin-texts>
</wpml-config>

I used Multilingual Tools for this https://wpml.org/documentation/related-projects/wpml-compatibility-test-tools-plugin/

As these seem to be generated as we create these and are never the same (string names I mean). Try searching them within String Translation -> Translate texts in admin screens » under the7dtchild key.

Regards,
Bruno Kos

April 3, 2019 at 1:32 pm #3526609

ozgeO

Thank you.

Can you please tell me what shall I do exactly in my PROD environment?

regards.

April 3, 2019 at 3:28 pm #3528003

Bruno Kos
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

You would do this:

Make a full backup of the site first!

1) hidden link
2) Install this plugin
3) Navigate to Multilingual Tools > Configuration Generator
4) Select the option as seen on my image for the7dtchild domain being selected
5) Try to find the text you put in header and put a check next to those fields
6) On the bottom of the screen, check Save to file and Generate
7) Go to the WPML -> Settings page and click the Custom XML Configuration tab.
8) Open the generated data from step 6) and save
9) These string should show up in String Translation now where you can translate them

In my case it looked like:

<wpml-config>
    <admin-texts>
        <key name="the7dtchild">
            <key name="header-elements-text"/>
            <key name="header-elements-text-2"/>
            <key name="header-elements-text-3"/></key>
    </admin-texts>
</wpml-config>

Regards,
Bruno Kos

April 4, 2019 at 6:54 am #3532527

ozgeO

I will start implementing your suggestion for the new text fields.

As I stated in my original message, my other issue is that I have 3 header text already showing in String Translation. I translated them fully, however the translated versions are not showing.

If I delete these strings and create them with your suggested way, would it be ok?

April 4, 2019 at 1:33 pm #3535331

Bruno Kos
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

As I stated in my original message, my other issue is that I have 3 header text already showing in String Translation. I translated them fully, however the translated versions are not showing.

Try my solution first to see if these will appear within String Translation anew. It could be that even these are visible there, these aren't the exact strings (WPML doesn't connect them with their originals).

You can check my sandbox to see how this works.

Regards,
Bruno Kos

April 5, 2019 at 9:39 am #3542627

ozgeO

My issue is resolved now. Thank you!