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
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - -
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - -

Supporter timezone: Asia/Jerusalem (GMT+03:00)

This topic contains 3 replies, has 2 voices.

Last updated by Itamar 3 years ago.

Assisted by: Itamar.

Author Posts
April 6, 2021 at 4:56 pm #8475545

michaelR-105

At the moment my content is GER, ENG and FRE
When exporting the po file from a post i ony can select to include French or German.
No English but why to include German as this is the base language
If i disable "Also include translations" i download the german version by default
So how can i download the base (german) and english po file

Kind regards,
Mike

export-po.png
April 7, 2021 at 8:30 am #8479737

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi, Mike.

The strings that you want to export are in German, but their source language is English. You need to change the source language of those strings into German, and then you will be able to export them where the source language is German, and the target language is English. Please read our guide at the following link to understand how to do that.

https://wpml.org/documentation/getting-started-guide/string-translation/how-to-change-the-source-language-of-strings/

Regards,
Itamar.

April 7, 2021 at 8:55 am #8480087

michaelR-105

Hello Itamar,

i do not think that the source language of my posts is english. The default WPML language is german (please see added screenshot 244 - Languages.png). We write the posts in german and then we translate them into english.
Here is a bigger piccture of my string translation (241 - String Translation.png)
The default string is flagged as german and the english and french translation is already complete.

Best regards,
Mike

241 - String Translation.png
244 - Languages.png
April 7, 2021 at 11:32 am #8481959

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi, Mike and thanks for the further information you provided.

Apparently, this issue is known to us and already escalated to our developers. Luckily there is a workaround that you can implement to fix this issue. Here is what you need to do.

1. Open the following file with a code editor.

/wp-content/plugins/wpml-string-translation/menu/string-translation.php

2. Find the following piece of code in two placed in this file. The first place will be line number 644. And the second place will line number 722.

										foreach ( $active_languages as $al ) :
											if ( $al['code'] == $string_settings['strings_language'] ) {
												continue;}

3. Change this pisce of code to:

									foreach ( $active_languages as $al ) :

The change is actually to delete the two lines under the above line.

4. Save the changes.

**** Important! Please make a full site backup (files and DB) before you proceed with those steps****

5. Now, you should be able to export the file with the English translation.

When I have news regarding this issue, I'll update you here.

Regards,
Itamar.