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

Problem:
User was not able to translate Stripe strings.
Solution:
String are available in the WPML->String Translation->Admin text translation.
You may also use an xml configuration with the following code:

<wpml-config>
    <admin-texts>
        <key name="woocommerce_stripe_settings">
            <key name="statement_descriptor" />
            <key name="stripe_checkout_image" />
            <key name="stripe_checkout_description" /></key>
    </admin-texts>
</wpml-config>

Relevant Documentation:
https://wpml.org/documentation/getting-started-guide/translating-theme-options/
https://wpml.org/documentation/support/language-configuration-files/overriding-language-configuration-files/

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 3 replies, has 2 voices.

Last updated by patrickA-11 1 year, 3 months ago.

Assigned support staff: Jamal.

Author Posts
February 11, 2019 at 9:42 am #3181740

patrickA-11

I have another similar issue, again with strings that do not exist.
I have a Stripe checkout plugin, and I want to translate 3 items.

woocommerce_stripe_statement_descriptor
woocommerce_stripe_stripe_checkout_image
woocommerce_stripe_stripe_checkout_description

I tried doing the same process for each as you described:

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

It seemed to have worked... but I am unable to locate the text contained in the strings and translate them, or find in which domain, if any, they fell into.

Now, I could maybe try to export a .pot file from the woocomerce_stripe domain, write them in, and reimport... but I am afraid it might create 2 sets of strings...

February 11, 2019 at 9:46 am #3181793

Jamal
Supporter

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

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

Hello,

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

I am not sure that the .pot files export/import will help in this case, those strings maybe stored as options, in this case they will belong to a domain named "admin_texts_*".

Please fill the private details fields after a full site backup. I would like to access the admin area of your site for further checking. Please 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/

If you can also provide a screenshot of where you are settings values for these fields.
woocommerce_stripe_statement_descriptor
woocommerce_stripe_stripe_checkout_image
woocommerce_stripe_stripe_checkout_description

Awaiting your reply.

Best regards,
Jamal
WPML Support

February 12, 2019 at 9:22 am #3187453

Jamal
Supporter

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

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

Hello,

The xml has to be adapted a little, after i searched in WPML->(Traduction de chaînes)String Translation->Traduire les textes des écrans d'administration ». I come up with the following xml. Which makes those fields translatable. See attached images.

<wpml-config>
    <admin-texts>
        <key name="woocommerce_stripe_settings">
            <key name="statement_descriptor" />
            <key name="stripe_checkout_image" />
            <key name="stripe_checkout_description" /></key>
    </admin-texts>
</wpml-config>

I hope this helps. Let me know if you still need assistance.

Best regards,
Jamal
WPML Support

February 12, 2019 at 2:36 pm #3189239

patrickA-11

My issue is resolved now. Thank you!