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

Last updated by Jamal 9 months, 1 week ago.

Assigned support staff: Jamal.

Author Posts
February 6, 2019 at 8:09 pm #3167539

patrickA-11

Is there a way to have an alternative header image for different languages.
I found no translatable string that could do the job...

February 7, 2019 at 4:50 pm #3171553

Jamal
Supporter

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

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

Hello,

Thank you for contacting WPML Support. My apologies for the late reply.

Here the steps to follow to translate the email's header image.
- Click on the WPML > Settings > Custom XML Configuration
- Insert these lines:

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

- Click on the "Save" button
- Go to WPML > String Translation
- Search for and translate the URL of the desired image.

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

Let me know if this helps.

Best regards,
Jamal
WPML Support

February 7, 2019 at 8:25 pm #3172057
patrickA-11

Thank you Jamal, it worked!

But now that I can see it in english, I notice that the incoming address and the footer text do not change even though their strings have been translated. Could there be some missing code?

February 8, 2019 at 11:43 am #3174846

Jamal
Supporter

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

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

Hello,

Thank you for your feedback. As per our support rules we are able to handle only one issue at the time. This help us to bring you a better service and also help other users to find all the information here exposed.
For that reason I have created a new ticket.
https://wpml.org/forums/topic/translated-incoming-address-and-footer-text-does-not-work-in-woocommerce-emails/
I will be posting my reply there.

If you are ok, please make this ticket as resolved.
I remain at your disposal.

Best regards,
Jamal
WPML Support

February 10, 2019 at 2:56 am #3179164
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...

New threads created by Jamal and linked to this one are listed below:

https://wpml.org/forums/topic/unable-to-translate-strings-in-stripe-checkout-plugin/

February 11, 2019 at 9:43 am #3181743

Jamal
Supporter

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

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

Hello,

Sure, i will be glad to help with this. However for support rules we are able to handle only one issue at the time. This help us to bring you a better service and also help other users to find all the information here exposed.
For that reason i have created another ticket for this stripe plugin issue. I will be posting my reply there.
https://wpml.org/forums/topic/unable-to-translate-strings-in-stripe-checkout-plugin/

Best regards,
Jamal
WPML Support