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:
I am trying to translate the output of the plugin Favorites.

Solution:
- Go to WPML > Configuration > Configuration XML personnalisée.
- Add this code:

	
<wpml-config>
    <admin-texts>
        <key name="simplefavorites_display">
            <key name="buttontext" />
            <key name="buttontextfavorited" /></key>
    </admin-texts>
</wpml-config>

- Go to WPML > String Translation and translate your strings.

Relevant Documentation:
https://wpml.org/documentation/support/language-configuration-files/#admin-texts

This topic contains 2 replies, has 2 voices.

Last updated by paulR-28 3 months, 2 weeks ago.

Assigned support staff: Andrés.

Author Posts
August 2, 2019 at 6:27 am

paulR-28

I am trying to:
translate the output of the plugin : favorites
In admin there are 2 fields with custom markup.
I find those when I click on the link at the bottom of the page of string translation to see admin text. I select both.. apply.. it tells me I will find them now in the strings to translate.. but they are not there.

thanks

PS : field on this page : wp-admin/admin.php?page=wpml-string-translation%2Fmenu%2Fstring-translation.php&trop=1

are inside simplefavorites_display : buttontext (value : <i class="fas fa-heart"> Ajouter à ma liste) and buttontextfavorited (value : <i class="fas fa-heart"> Retirer de ma liste)

August 2, 2019 at 7:32 am #4327647

Andrés
Supporter

Languages: English (English ) Spanish (Español ) French (Français )

Timezone: Europe/Paris (GMT+01:00)

Hello there,

Welcome to WPML support forum.

I just visited your text admin strings page and I could see that your "Favorite" plugin strings were not checked, this is probably that your server does not handle enough resources for this operation.

Thus, I have added the following wpml-config.xml file into:
- WPML > Configuration > Configuration XML personnalisée:

<wpml-config>
    <admin-texts>
        <key name="simplefavorites_display">
            <key name="buttontext" />
            <key name="buttontextfavorited" /></key>
    </admin-texts>
</wpml-config>

Now, yous strings are ready for translation.

Documentation:
https://wpml.org/documentation/support/language-configuration-files/#admin-texts
Best regards,
Andrés

August 2, 2019 at 8:39 am #4328219

paulR-28

My issue is resolved now. Thank you!