Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 13:00 9:00 – 13:00 9:00 – 13:00 8:00 – 12:00 8:00 – 12:00 -
- 14:00 – 17:00 14:00 – 18:00 14:00 – 18:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Europe/Zagreb (GMT+01:00)

Tagged: 

This topic contains 7 replies, has 2 voices.

Last updated by Bruno Kos 9 months, 1 week ago.

Assisted by: Bruno Kos.

Author Posts
May 6, 2024 at 8:44 am

paulW-38

Germanized refund email mixed translations

May 6, 2024 at 9:27 am
May 6, 2024 at 10:37 am #15596559

Bruno Kos
Supporter

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

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

hidden link

On this sandbox, can you see if the issue happens with and without Germanized?

I believe I set it all up, if something else is needed by all means.

May 6, 2024 at 11:04 am #15596768

paulW-38

Hi Bruno!

Germanized Pro was missing. I installed it now.
But it looks like the sandbox site is not sending out any eMails.
--> I installed "Check & Log Email" to see the email log.

I created a de and en order and refunded them.
You can see the eMails on "Check & Log Email" --> "View Logs"

The refund emails are correct in en and de on this sandbox site!!

When you got to WooCommcer--> Settings--> eMails--> Refunded Order and then click to the "transactions" link beside the "We hope to see you again soon." Now entry shows up. The in the refund eMails the text "We hope to see you again soon." is correct translated to de when you create a de order: "Wir hoffen, bald wieder von dir zu hören."

Do you need access to my staging site?

kind regards

:: Paul

May 6, 2024 at 11:54 am #15597052

Bruno Kos
Supporter

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

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

Thank you for testing - yes, I will need an access.

To troubleshoot this problem, I'll install the Duplicator plugin and generate packages for further debugging purposes. I'll ensure to exclude all media files to maintain a minimal package size. You can find more information about the process here: [link](https://wpml.org/faq/provide-supporters-copy-site/). Please confirm if this approach is acceptable to you.

May 6, 2024 at 12:22 pm
May 7, 2024 at 5:36 am #15599786

Bruno Kos
Supporter

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

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

I see you are on Kinsta so I can't install any backup plugins because Kinsta banned them.

Can you download this and send us?
hidden link

May 7, 2024 at 7:43 am
May 8, 2024 at 12:40 pm #15606162

Bruno Kos
Supporter

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

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

I am checking this with our 2nd tier and will keep you posted.

May 16, 2024 at 5:48 am #15632955

paulW-38

Hi Bruno!

I also had a support case with Germanized for that issue.
Their developer debugged the problem.
This is was their answer (sorry it's in German - please translate it if needed):

Hi,

ich habe das jetzt gedebugged. Das Problem scheint darin zu liegen, dass das WooCommerce Multilingual Plugin nicht damit klarkommt, wenn im selben Request (des Versands der Mail) die Sprache bereits einmal verändert wurde und sich damit auch die locale verändert hat. WCML nutzt hier den Filter plugin_locale - der Filter wird aber nur aufgerufen, wenn die locale auch wirklich (neu) geladen wird, was in diesem Request nicht mehr der Fall ist. In diesem Zusammenhang gab es einige Änderungen in WP 6.5 - möglicherweise ist WPML damit nicht voll kompatibel? https://make.wordpress.org/core/2024/02/27/i18n-improvements-6-5-performant-translations/

can your forward that to your development. I looks like this is an issue in the WPML core?

kind regards

:: Paul

May 16, 2024 at 6:32 am #15633045

Bruno Kos
Supporter

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

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

I sent this information to our developers. Although we don't have a solution yet, we were able to trace the issue. If you enable the Refund and Invoice emails, they will override the normal emails and attach a PDF file to the user's email.

Attaching that PDF results in the locale being somewhat changed, causing the current user locale to be used. This results in mixed languages in the user's email.

We managed to trace the issue to `\Vendidero\StoreaBill\WooCommerce\Order::maybe_cancel` in `wp-content/plugins/woocommerce-germanized-pro/packages/storeabill/src/WooCommerce/Order.php`, which calls `\Vendidero\StoreaBill\Invoice\Simple::cancel` in `wp-content/plugins/woocommerce-germanized-pro/packages/storeabill/src/Invoice/Simple.php` but the whole case is still being checked by our developers and I'm not sure when it will be resolved.