Skip Navigation

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

Problem:
I want to show the country code in the language switcher. For example DE FR instead of Deutsch Francais or flags. Currently, I cannot find any options to do that.

Solution:
You can achieve this by editing the values of the "Translation" column in WPML > Languages > Edit Languages. Please check here: https://cdn.wpml.org/wp-content/uploads/2022/05/11225047-Change_lang_names.png

Relevant Documentation:
https://wpml.org/documentation/support/editing-wpmls-languages-table/#language-configuration-fields-defined

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 4 replies, has 2 voices.

Last updated by antonD-14 2 years, 7 months ago.

Assisted by: Mohamed Sayed.

Author Posts
May 14, 2022 at 9:23 pm #11222527

antonD-14

I want to show the country code in the language switcher. For example DE FR instead of Deutsch Francais or flags. Currently I cannot find any options to do that.

Is there any documentation that you are following?
Languages Settings page

Is there a similar example that we can see?
hidden link

What is the link to your site?
hidden link

May 15, 2022 at 6:30 pm #11224761

Mohamed Sayed

Hi Anton,
Thanks for contacting WPML support.

Could you please tell me if you managed to replace the language names with code? I checked the site and the language switcher already shows the codes DE/FR. Please check the attached image.

Regards,
Mohamed

Lang codes.png
May 15, 2022 at 7:15 pm #11224819

antonD-14

The screenshot is from vespa.swiss. Thats a Joomla page. I‘m recreating a similar page in WP which is currently running under vespa.preview.anton.bz
I couldn‘t find a solution.

May 15, 2022 at 10:25 pm #11225047

Mohamed Sayed

Hi,

You can achieve this by editing the values of the "Translation" column in WPML > Languages > Edit Languages (Please check the attached screenshot).

Kindly note that those changes will be applied to all the language switchers on your site.

Regards,
Mohamed

Change lang names.png