Skip Navigation

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

Problem:
You are working on a site using the WPML plugin and need to configure the language strings for the shortcode language switcher [wpml_language_selector_widget]. Specifically, you want to correct the display of 'Österreich (Österreich(Austria))' to just 'Österreich' across all languages.
Solution:
First, review the documentation on configuring the WPML shortcode for the language switcher here: WPML Shortcode API.
Next, navigate to WPML > Languages > Custom language switcher settings in your WPML dashboard. Here, you should uncheck the box labeled "language name in current language" to ensure the language names display correctly.

If this solution does not resolve your issue or seems outdated, we recommend opening a new support ticket. Additionally, please check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. For further assistance, you can also visit our support forum 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.

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Mihai Apetrei 9 months, 2 weeks ago.

Assisted by: Mihai Apetrei.

Author Posts
September 23, 2024 at 11:53 am #16209298

Jörg Bröker

Background of the issue:
I am working on a site under development and using the WPML plugin. I want to configure the language strings used for the shortcode language switcher [wpml_language_selector_widget].

Symptoms:
On all languages, the strings are shown as 'Deutschland', 'Österreich', and 'Schweiz'. However, on a newly added language, the string 'Österreich' appears as 'Österreich (Österreich(Austria))'.

Questions:
Where can I configure the language strings used for the shortcode language switcher [wpml_language_selector_widget]?
How can I change 'Österreich (Österreich(Austria))' to just 'Österreich'?

September 23, 2024 at 12:05 pm #16209327

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there.

Please take a quick look over the documentation that we have available here:
https://wpml.org/documentation/support/wpml-coding-api/shortcodes/#wpml_language_selector_widget

I think that should help you configure the output as you wish.

I think you will need to uncheck the box for "language name in current language" from inside WPML > Languages > Custom language switcher settings area.

Please let me know how things go.

Mihai Apetrei

language-switcher-styling-1024x694.png
September 23, 2024 at 2:05 pm #16210226

Jörg Bröker

Thanx!