Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Europe/Kyiv (GMT+02:00)

This topic contains 2 replies, has 1 voice.

Last updated by Andrey 1 day, 11 hours ago.

Assisted by: Andrey.

Author Posts
November 28, 2025 at 9:39 pm #17619050

milijanM

Background of the issue:
I have a website where I am currently working on a translation. The client wanted the site to be in the Serbian language, but instead of the Serbian flag, the Bosnian flag should stand. Since Bosnian and Serbian are almost the same languages ​​as writing, I did as he wanted, set Bosnian as a secondary language and started translating.

However, when the client saw that the link contains the "bs" code instead of "sr" when the country flag is clicked, he gave up and now asks me to switch everything to the Serbian language, to set the flag of Serbia and that it now contains the "rs" code.

Is there an easier way to solve this, to just replace the images of the countries and the code, or do I have to translate everything from the beginning in Serbian?

Symptoms:
The client is dissatisfied with the current language code 'bs' and flag setup, wanting it changed to 'rs' and the Serbian flag.

Questions:
Is there an easier way to switch the language code and flag without re-translating everything in WPML?
Can I just replace the images of the countries and the code?

November 28, 2025 at 9:42 pm #17619067

milijanM

I would love to hear from the real person if this is the only solution suggested by the Chatbot...

November 29, 2025 at 12:03 am #17619183

Andrey
WPML Supporter since 06/2013

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

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

Thank you for contacting WPML support.

Unfortunately, there is no simple solution. You can change the country flag, but you cannot alter the existing language code. The steps are the same as those already suggested.

To avoid re-translating everything, you need to:

1. Add the Serbian language in WPML → Languages

https://wpml.org/documentation/getting-started-guide/language-setup/editing-wpmls-languages-table/

2. Duplicate content from Bosnian to Serbian in WPML → Translation Dashboard

https://wpml.org/documentation/translating-your-contents/displaying-untranslated-content-on-pages-in-secondary-languages/#duplicating-content