Skip Navigation

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

Problem:
The client needed to change the language code for Ukrainian from "UK" to "UA".
Solution:
We explained that the official ISO language code for Ukrainian is "UK" and that WPML adheres to WordPress global standards, which cannot be altered. We provided links for further information:

We suggested creating a new custom language with the code "UA" using WPML's GUI, as detailed in our documentation:
https://wpml.org/documentation/support/editing-wpmls-languages-table/#adding-your-own-languages-using-wpmls-gui

We also informed the client that translations would not be automatically available for the new custom language. However, they could duplicate posts or pages from the Ukrainian language with code "UK" to the new language with code "UA". For instructions on duplicating content in bulk, we provided the following link:
https://wpml.org/documentation/translating-your-contents/displaying-untranslated-content-on-pages-in-secondary-languages/#how-to-duplicate-pages-and-posts-in-bulk

If this solution is not relevant to your case, because it's outdated or not applicable, 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 visit our support forum: https://wpml.org/forums/forum/english-support/.

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.

No supporters are available to work today on this forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

This topic contains 3 replies, has 2 voices.

Last updated by Andrey 8 months, 3 weeks ago.

Assisted by: Andrey.

Author Posts
February 24, 2024 at 11:18 am #15340207

valmirR

Ukraine code is not UK, is UA, how and where can i change it?

Screenshot 2024-02-24 081700.png
February 24, 2024 at 1:09 pm #15340378

Andrey
Supporter

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

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

Thank you for contacting WPML support. I am glad to assist you with this.

The official ISO language code for Ukrainian is "UK." At WPML, we comply with the WordPress global standards for the language code. You can find more information on this in the following URLs:

hidden link

hidden link

It's important to note that the language code is unique and cannot be changed from "UK" to "UA". This is because it's a part of the database connected to multiple tables. Attempting to change it directly from the database may break the site.

However, there is a workaround solution. You can create a new custom language named Ukrainian with the language code UA. Please refer to the following documentation for more details:

https://wpml.org/documentation/support/editing-wpmls-languages-table/#adding-your-own-languages-using-wpmls-gui

February 24, 2024 at 2:08 pm #15340527

valmirR

Hello, I really need more instructions, will all the content already translated and revised be lost? Will I have to pay for a new translation into the language created?

February 26, 2024 at 9:58 am #15343336

Andrey
Supporter

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

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

If you create a new custom language, the translations won't be available as it's a new language.

However, you can duplicate posts or pages from the Ukrainian language with code UK to the language with code UA. This will help you have content in the new language without translating it from scratch.

For more information on how to duplicate pages and posts in bulk, please visit https://wpml.org/documentation/translating-your-contents/displaying-untranslated-content-on-pages-in-secondary-languages/#how-to-duplicate-pages-and-posts-in-bulk.