Skip Navigation

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

Problem:
The client is developing a WooCommerce shop and wants to translate WooCommerce strings from English to Serbian-Latin using WPML's String Translation. They are unsure if they can export these strings, translate them, and then import them back.
Solution:
We explained that the export functionality in WPML > String Translation is based on the text domain, allowing the inclusion of translations for one language per file. Each string has a source language, and translations can only be made from this source language to another language. Most strings are registered in English by default, meaning they can only be translated from English to another language. If the client needs to translate from Serbian Cyrillic to Serbian Latin, the strings must originally be in Serbian Cyrillic. Since most strings are likely in English, translating directly from Serbian Cyrillic to Serbian Latin isn't possible unless the strings are originally registered in Serbian Cyrillic. For more details on changing the source language of strings, visit this documentation.

If this solution does not apply to your case, or if it seems outdated, we recommend opening a new support ticket. We also highly suggest checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. For further assistance, please contact us through the 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 3 replies, has 1 voice.

Last updated by Andreas W. 1 month ago.

Assisted by: Andreas W..

Author Posts
January 27, 2025 at 4:17 pm #16638637

tihomirM

Background of the issue:
I am developing a site and want to have a Serbian-Latin WooCommerce shop. The current language is English, and I want to translate WooCommerce strings to Serbian.

Symptoms:
I am unsure if I can export WooCommerce strings, translate them, and then import the translated strings using WPML's String Translation.

Questions:
Is it possible to export WooCommerce strings, translate them, and import the translated strings using WPML's String Translation?

January 28, 2025 at 8:26 am #16640293

Dražen
Supporter

Languages: English (English )

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

Hello,

Thanks for contacting us.

While you wait for my colleague to take over the ticket, let me try to help you with the issue quickly.

Yes, that is possible there is an option at the bottom at the WPML String translation page to import or export translation.

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

Let me know if any doubts.

Regards,
Drazen

January 29, 2025 at 2:19 pm #16647274

tihomirM

It would be even better if I could get a PO file for Serbian Cirilyc and then translate it to Serbian Latin.

Could you explain to me how I can accomplish that?

In the link provided, I can see that I should export POT file and then inport PO file with the translations.

Must I use WPML, or can I add the language as default directly to Woocommerce?
I had issues with WPML in the past, and I will only have 1 language, so I don't need any translations.

January 31, 2025 at 9:08 pm #16657214

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

The export on WPML > String Translation for PO files is based on the text domain and you will be able to include one language for translations into the file.

Each string on WPML > String Translation has a source language and you can only translate from the source language to a second language.

Each text domain can have strings with different source languages.

Most strings by default are registered in English and you will only be able to translate them from English into another language.

There might be edge cases, where a string value is not using English and in such case, you need to switch the string's source language:
https://wpml.org/documentation/getting-started-guide/string-translation/how-to-change-the-source-language-of-strings/

Finally:

To translate from Serbian Cyrillic to Serbian Latin the strings would be originally assigned to Serbian Cyrillic.

As I suppose that most of your strings are originally using English, it will not be possible to translate from Serbian Cyrillic to Serbian Latin. You will only be able to translate such strings if the originally registered strings use Serbian Cyrillic.

Best regards
Andreas