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 1 reply, has 2 voices.

Last updated by Bobby 6 months, 3 weeks ago.

Assigned support staff: Bobby.

Author Posts
March 28, 2019 at 12:01 pm #3480537

sepasS

Hi,

We've recently updated WPML Multilingual CMS from 3.5.3.1 to 4.2.1 and have noticed a change in behaviour.

Previously we were able to use uk for 'United Kingdom' (rather than Ukrainian) by setting the translation name to 'United Kingdom' (WPML > Languages > Edit Languages). But now it appears that the language name (e.g. Ukrainian) is being displayed in WordPress rather than the translation name (e.g. United Kingdom).

Do you have any idea why this might be? Also, can I simply change the name in the icl_languages_translations table in order to fix this.

Thanks
Sepas

March 28, 2019 at 10:25 pm #3485849

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hello,

WPML does not offer a default language named United Kingdom and didn't offer one in WPML version 3.5.3.

We usually recommend adding custom languages by going to WPML->languages->Edit languages->add new language.

You cant add a language with the language code 'uk' as it is reserver for the Ukrainian language by default

additionally if you are going to be using the default locale 'uk' instead of 'en_GB' you are going to be pulling automatic transaltions (for wordpress strings and backend) from WP in Ukrainian since it does not correspond to the English language as seen here
=> https://make.wordpress.org/polyglots/teams/

It is not recommend by our developers to change the structure of the default languages , but it does seem this is what was done on your site before as there is no other way to have got the 'uk' language code for a language other than Ukrainian

The topic ‘[Closed] Unexpected behaviour’ is closed to new replies.