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.

This topic contains 3 replies, has 2 voices.

Last updated by Bigul 1 year, 11 months ago.

Assisted by: Bigul.

Author Posts
August 2, 2023 at 3:51 am #14138485

hugyakA

Hi, we imported the site content from Polylang and we see that the language Default locale of the Belgien content is nl_BE, but we need currently ft_BE for this, because we would like to add also the NL version in the future.
Please be so kind and let me know, how can we change / modify it?
BE url:
hidden link
Thank you.

August 2, 2023 at 8:38 am #14139959

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hello,

Welcome to the WPML support forum. I will do my best to help you to resolve the issue.

We are following the WordPress global standards for the language code. The language code is unique and it will not be possible to change the language code from the *nl_BE* to *ft_BE*. Because it is stored in the database and connected with multiple tables. And also there are high chances of breaking the site if we change it directly from the database.

Therefore as a workaround, you can create a new custom language Belgien with language code *ft_BE*. Then bulk duplicates the contents from *nl_BE* to *ft_BE*. 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

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

--
Thanks!

Bigul

August 2, 2023 at 3:16 pm #14143623

hugyakA

Hi, but we have already Belgian language!

August 3, 2023 at 4:39 am #14145513

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hello,

Thank you for the updates. We can update the language names & locale from WPML>>Languages>>Site Languages by clicking the *Edit Languages* link. But we can't change the language code because it is unique.

As a workaround, you can try the following steps after a full site backup{madatory}

1) Visit WPML>>Languages>>Site Languages>>Edit Languages
2) Rename the current Belgian language to *Belgian OLD* and save the changes
3) Refresh the page
4) Create a new Belgian language with the language code *ft_BE*
5) Visit WPML>>Translation Management dashboard
6) Filter the posts and pages by *Belgian OLD* language
7) Duplicate it to the new Belgian language(*ft_BE*)
8) WPML>>Languages>>Hide languages
9) Hide *Belgian OLD* language

Please try it and let us know your feedback.

--
Thanks!

Bigul