Skip Navigation

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

Problem:
The client is looking to import translations from an old site into a new one, specifically for string translations and not page content.

Solution:
We recommend the following steps for importing string translations:
1. Use the WPML String Translation module to export and import .po files. Detailed documentation can be found here: Importing and Exporting String Translations.
2. When exporting, select the text-domain of the plugin from which you wish to export the strings.
3. If you want to include existing translations in the file, ensure to select the appropriate option.
4. Be aware that importing a .po file will overwrite any existing translations in the String Translation module.

If you encounter issues or the solution provided does not seem relevant, please do not hesitate to open a new support ticket for further assistance. You can do so here: WPML Support Forum.

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

Last updated by Dražen 1 year, 5 months ago.

Assisted by: Dražen.

Author Posts
January 17, 2024 at 3:38 am #15192562

ernestD

Tell us what you are trying to do? I translated one site into Thai already. There is some overlap with a new site I'm working on. Can I import the old translation and use it for the new site? And then clean it up to remove all the superfluous translations I don't need?

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site? Old site: hidden link Current site: hidden link

January 17, 2024 at 8:06 am #15193225

Dražen
Supporter

Languages: English (English )

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

Hello,

I am not sure what you mean exactly, but you can either import translated pages from other website and then use those pages, but note the translation will not show in the WPML editor and you need to continue with manual method.

You also need to import default language pages and then 2nd language page to be connected, or connect them manually.

- https://wpml.org/documentation/plugins-compatibility/export-multilingual-websites-using-wp-all-export-wpml/
- https://wpml.org/faq/how-to-link-already-translated-pages/

Other way is connecting translation memory from different websites, and then when you translate pages translation memory will be used for the same sentences.

- https://wpml.org/documentation/automatic-translation/automatic-translation-subscription-for-multiple-sites/

Regards,
Drazen

January 17, 2024 at 9:44 am #15193762

ernestD

Thanks. I thought there might be a file with all the translations of the old site I could import to the new site and use in (string) translation.

Maybe I'll try the translation memory option, see if that works?

January 17, 2024 at 10:15 am #15193962

Dražen
Supporter

Languages: English (English )

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

Hello,

you can do that but only for string translation (page / theme files), not page content.

- https://wpml.org/documentation/getting-started-guide/string-translation/#import-export-po-files

As for translation memory, sure you can try that, but note that then these 2 websites will share translation memory and credits. Also for translation memory to work sentence needs to be 100% the same.

Regards,
Drazen

January 20, 2024 at 5:53 am #15206857

ernestD

Hi & Thanks. I only want the translations, not the content / pages.

I need some guidance beyond the brief blurb on the link you sent me.

For EXPORT:

1) Export strings into .po/.pot file Select domain ... ? WPML string translation? Or WPML? Or what?

For IMPORT:

1) What does "Also create translations according to the .po file mean? I plan to keep translating in the new site. Should I check this box?

2) Select what the strings are for: Same question as above. WPML string translation? Or WPML? Or what? Include Thai translations - yes that's what I want.

Thanks for guiding me & advising.

screenshot-amysmekongresort.com-2024.01.20-12_35_18.png
January 21, 2024 at 8:41 am #15208080

ernestD

A couple quick questions:

1) If I have translations done already, if I import a .po file, will it overwrite those already done?

2) I have a very small site with limited text. Why can't I find much of this text in String Translation? I've tried many of the suggestions you've given to other users to no avail.

Must it be marked for translation or something first? Before being searchable in string translation?

Thanks.

January 22, 2024 at 7:49 am #15209620

Dražen
Supporter

Languages: English (English )

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

Hello,

first, you need to understand difference between the translation of page/content and the translation of strings that are there from plugin files, for example, WooCommerce.

Import / export of translation of pages is not possible other then WP All Import / export.

1) Export - you need to select text-domain (plugin) from which you wish to export translation fo strings, that you added via WPML String translation.

2) If you want to include translations that are in the file, then yes you need to select that box.

3) You need to select text-domain (plugin)

4) Yes it will overwrite translation done in WPML String translation plugin

5) Depending how they are added and translated. If you have issues nad need our further help please open new ticket and we will be glad to help.

6) You need to scan plugin files for translation:

- https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#strings-arent-selected-for-translation

Regards,
Drazen

January 24, 2024 at 11:47 am #15221448

ernestD

Decided against importing the .po file. Did it otherwise.