Skip Navigation

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

Problem:
The client needed to change the URL of the Ukrainian language to "ua" for SEO purposes and wanted to know how to transfer all translated strings to the custom Ukrainian language (UA) from the original Ukrainian (UK).
Solution:
We recommended using the WPML → String Translation module to export and import strings between languages. First, export the strings from the language with the code UK and then import them to the language with the code UA. For detailed steps, please visit https://wpml.org/documentation/getting-started-guide/string-translation/#import-export-po-files.
Additionally, if you're using WooCommerce or any other plugins that contain Ukrainian translation files, ensure your custom language has the correct Ukrainian locale with the code "UK." This setup will allow the plugins to detect your custom language as Ukrainian with the language code "UA" and apply the necessary string translations accordingly.

If this solution does not resolve your issue or seems outdated, we highly recommend 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. If further assistance is needed, please open a new support ticket at 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 7 replies, has 2 voices.

Last updated by Andrey 6 months, 4 weeks ago.

Assisted by: Andrey.

Author Posts
May 3, 2024 at 5:20 pm #15592407

danielB-262

Hi team,

I have used automatic translation to translate website (and theme) from English to Russian and Ukrainian. Now I need to change url of Ukrainian language to "ua" for SEO purposes. Was greatly surprised, there is no easy way to do it.

As I understand from the documentation, I need to create "custom Ukrainian" language (UA), and use it instead of "original Ukrainian" (UK). Okay, I was also able to use "Translation Management" to duplicate page/post content from UK to UA.

My question is now, how can I transfer all the translated strings to "UA" custom language?

Please kindly advise!

May 3, 2024 at 9:33 pm #15592907

Andrey
Supporter

Languages: English (English ) Russian (Русский )

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

Thank you for contacting WPML support.

You can use the export and import feature in WPML → String Translation to transfer strings from one language to another. Firstly, export the strings from the language with the code UK and then import them to the language with the code UA.

For further information, please visit https://wpml.org/documentation/getting-started-guide/string-translation/#import-export-po-files.

May 3, 2024 at 9:41 pm #15592910

danielB-262

Thank you for the fast response!

WPML identified about 100 domains of strings. Doest it mean, I have to do 100 import/exports steps? 🙂

May 4, 2024 at 7:13 am #15593151

Andrey
Supporter

Languages: English (English ) Russian (Русский )

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

Unfortunately, there is no way around it. But maybe you do not need all 100 domains, just those that affect your site's frontend.

I hope you have a lovely weekend.

May 4, 2024 at 12:33 pm #15593425

danielB-262

I see... Have a great weekend as well!

Unfortunately, I got the problem during the PO import/export process. For some reason the generated PO for "woocommerce" domain doesn't contain any translation (though I checked "add translation" field and selected Ukrainian). Because of that naturally I am not able to import the language.

What could be the issue?

May 6, 2024 at 8:45 am #15595931

Andrey
Supporter

Languages: English (English ) Russian (Русский )

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

Hi! I hope you had a good weekend.

If you're using Woocommerce or any other plugins that contain Ukrainian translation files, you don't need to export or import standard translations in WPML → String Translations. You must ensure your custom language has the correct Ukrainian locale with the code "UK." This will let the plugins detect your custom language as Ukrainian with language code "UA" and apply the necessary string translations accordingly.

Languages-‹-WCML-Plugin-GUI-—-WordPress(4).png
May 7, 2024 at 11:40 am #15601652

danielB-262

That made it. Thank you!

May 7, 2024 at 12:02 pm #15601736

Andrey
Supporter

Languages: English (English ) Russian (Русский )

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

Great! I am happy that it works now.