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:
The user was not able to make some theme options translatable through admin strings screen
Solution:
We can make the strings translatable by using a custom XML configuration

<wpml-config>
    <admin-texts>
        <key name="theme_mods_essence-pro">
            <key name="essence-description-text" />
            <key name="essence-button-primary-text" />
            <key name="essence-button-primary-url" />
            <key name="essence-button-secondary-text" />
            <key name="essence-button-secondary-url" />
        </key>
    </admin-texts>
</wpml-config>

Relevant Documentation:
https://wpml.org/documentation/support/language-configuration-files/
https://wpml.org/documentation/support/language-configuration-files/overriding-language-configuration-files/

This topic contains 3 replies, has 2 voices.

Last updated by ursulaS 1 month, 3 weeks ago.

Assigned support staff: Jamal.

Author Posts
August 15, 2019 at 2:41 pm #4401767

ursulaS

Hello,
I am trying to: translate in the description and button text in the header image of my site hidden link.
When I select WPML -> String translation -> translate text in admin screens I see the fields and select them ( see screenshot ), I press apply, but when I go back to string translation I don't find the strings.
Any idea?
Thanks for your help

August 15, 2019 at 3:19 pm #4401913

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

Hello,

Thank you for contacting WPML Support. I will be glad to help with this.

According to your debug information, the MaxInputVars value of your website is 4000, it is possible that the strings that you select in the admin strings page are over 4000, the server(WPML) will not be able to handle them.
I suggest you make them translatable through an XML configuration. Please follow the below articles to configure those strings.
https://wpml.org/documentation/support/language-configuration-files/
https://wpml.org/documentation/support/language-configuration-files/overriding-language-configuration-files/

Then you can use the search box in String Translation to look for the strings.

If you still find troubles translating those strings, please allow me temporary access to your backend and I'll check that. Fill the private details fields after a full site backup. And check the following links for more details about our private information sharing policies.

hidden link

https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Best regards,
Jamal
WPML Support

August 19, 2019 at 1:33 pm #4416487

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

Hello,

I added the following XML code to the custom configuration and I am now able to translate the first string in your screenshots, the other strins are empty so they are not available yet. Once you update them, they will be available for translation under domain "admin_texts_theme_mods_essence-pro"

<wpml-config>
	<admin-texts>
		<key name="theme_mods_essence-pro">
			<key name="essence-description-text" />
			<key name="essence-button-primary-text" />
			<key name="essence-button-primary-url" />
			<key name="essence-button-secondary-text" />
			<key name="essence-button-secondary-url" />
		</key>
	</admin-texts>
</wpml-config>

Let me know if this helps.

Best regards,
Jamal

August 19, 2019 at 2:16 pm #4416801

ursulaS

My issue is resolved now. Thank you!