Navigation überspringen

Dies ist das technische Support-Forum für WPML – das mehrsprachige WordPress-Plugin.

Mitlesen können alle, doch nur WPML-Kunden können hier Fragen veröffentlichen. Das WPML-Team antwortet im Forum an 6 Tagen pro Woche, 22 Stunden am Tag.

Bis dahin wenden Sie sich bitte an unseren englischen Support. Wir danken Ihnen für Ihr Verständnis und Ihre Geduld und wünschen Ihnen erholsame Feiertage!

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 -

Unterstützt die Zeitzone: Europe/Zagreb (GMT+02:00)

Schlagwörter: 

Dieses Thema enthält 27 Antworten, hat 0 Stimmen.

Zuletzt aktualisiert von Bruno Kos Vor 5 Stunden, 45 Minuten.

Assistiert von: Bruno Kos.

Verfasser Beiträge
März 13, 2025 at 8:53 pm #16813689

remigiusK

Hi Bruno, thank you I will check and let you know. Regards, Remy

März 14, 2025 at 7:17 am #16814655

Bruno Kos
WPML-Unterstützer seit 12/2018

Sprachen: Englisch (English ) Deutsch (Deutsch ) Französisch (Français )

Zeitzone: Europe/Zagreb (GMT+02:00)

Ok, let me know about the results.

März 15, 2025 at 2:12 pm #16819928

remigiusK

Hi Bruno,

I am afraid all email are now still being sent in German language (Page default language). I attached a screenshot of the email where you can clearly see that the booking was made on the translated page in English (Spain instead of Spanien).

Unfortunately I can no longer access the Sandbox. Please note that I have translated only a few strings at the Sandbox so when you look at the email log it may imply that the email was sent in English as opposed to German.

Thank you and regards, Remy

Screenshot 2025-03-15 150844.png
März 15, 2025 at 2:14 pm #16819946

remigiusK

What about the Goodlayers comment on März 8, 2025 7:40 pm?

März 17, 2025 at 11:29 am #16824118

Bruno Kos
WPML-Unterstützer seit 12/2018

Sprachen: Englisch (English ) Deutsch (Deutsch ) Französisch (Français )

Zeitzone: Europe/Zagreb (GMT+02:00)

Perhaps it would be best if we try to debug your site as is then. The sandbox has expired and is no longer available unfortunatelly (it expires if there are no logins in the previous 7 days).

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:
https://wpml.org/faq/checklist-before-opening-a-ticket-in-wpml-support/#get-help-from-support

Please confirm if this approach is acceptable to you!

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

I marked your next reply as private so that you can safely add credentials.

März 18, 2025 at 10:35 am #16829316

Bruno Kos
WPML-Unterstützer seit 12/2018

Sprachen: Englisch (English ) Deutsch (Deutsch ) Französisch (Français )

Zeitzone: Europe/Zagreb (GMT+02:00)

Can you assist with creating package on versteckter Link?

Make sure to exclude wp-content\uploads folder.

I tried few times with various Duplicator options but I get Error 500 in the console for the admin-ajax process.

März 26, 2025 at 6:15 am #16860573

remigiusK

Hi Bruno, sorry for the delay. I will try tonight. Regards, Remy

März 26, 2025 at 7:10 am #16860659

Bruno Kos
WPML-Unterstützer seit 12/2018

Sprachen: Englisch (English ) Deutsch (Deutsch ) Französisch (Français )

Zeitzone: Europe/Zagreb (GMT+02:00)

Ok.

März 28, 2025 at 8:37 am #16871540

remigiusK

Hi Bruno, I have tried several times but without success (I even tried to change settings memory_limit etc.)

I have another website which is not live and I don't need. The same theme and plugins are installed. Would you be ok to try it there and you can work on the live page?

Thank you.

Kind regards,
Remy

März 28, 2025 at 1:04 pm #16873056

Bruno Kos
WPML-Unterstützer seit 12/2018

Sprachen: Englisch (English ) Deutsch (Deutsch ) Französisch (Français )

Zeitzone: Europe/Zagreb (GMT+02:00)

Does the same issue happen there? If so, I marked your next reply as private so we could check there and so I could create Duplicator packages.

Please try to following scenario there:

E-Mail with invoice is sent in the correct language:
A booking which was made with an English language set browser and English translated tour, e.g. versteckter Link, works fine

E-Mail with invoice is sent in the incorrect language (default language of the WP site):
A booking which was made with a German language set browser and using the English translated tour, e.g. versteckter Link, does not work

And record emails using plugin such as Email Log.

April 8, 2025 at 9:40 am #16908117

Bruno Kos
WPML-Unterstützer seit 12/2018

Sprachen: Englisch (English ) Deutsch (Deutsch ) Französisch (Français )

Zeitzone: Europe/Zagreb (GMT+02:00)

On the versteckter Link

so in the file utility.php, line 36, can you set this and try then?

add_filter('wpml_user_language', 'tourmaster_get_email_locale', 20, 2);

it is:

add_filter('wpml_user_language', 'tourmaster_wpml_get_email_locale', 10, 2);

at the moment.

filter.png
April 15, 2025 at 10:27 am #16933287

remigiusK

Hi Bruno, thank you for your response. I changed it accordingly but the emails with the invoice are all sent in English even tough the client booked on a German translated site:
versteckter Link

Please note I used Chrome set with German language for the test booking. In any case, the language of the landing page should have priority over the browser language, correct?

Kind regards, Remy

April 16, 2025 at 12:05 pm #16938570

Bruno Kos
WPML-Unterstützer seit 12/2018

Sprachen: Englisch (English ) Deutsch (Deutsch ) Französisch (Français )

Zeitzone: Europe/Zagreb (GMT+02:00)

In WPML the language of the content is what should matter and not the browser language (for the email languages).

I am checking with with our compatibility team and will keep you posted.

April 22, 2025 at 10:36 am #16954487

Bruno Kos
WPML-Unterstützer seit 12/2018

Sprachen: Englisch (English ) Deutsch (Deutsch ) Französisch (Français )

Zeitzone: Europe/Zagreb (GMT+02:00)

Our compatiblity support checked and did the following:

1. In the file `utility.php`, line 36, your theme/plugin is using the `wpml_user_language` filter:

   add_filter('wpml_user_language', 'tourmaster_get_email_locale', 20, 2);

We’ve adjusted the filter’s priority to 20. This ensures that WPML’s language detection works properly before other filters run.

2. Test scenario:
- The URL format was switched from language parameters to directory-based format (e.g., `/de/` instead of `?lang=de`).
- Firefox was set to German.
- A German tour was booked through the frontend.
- The booking information in the confirmation email appeared in German, which is correct.
- However, some strings remained in English (these are translatable strings from the plugin/theme).

3. Cause:
- Those untranslated strings were missing translations in String Translation
- After adding translations for those strings in WPML > String Translation, the issue was resolved.

4. You can view a quick video summary of the test and fix here:
versteckter Link

Let me know if you have any questions or observations related to the above!