Home›Support›English Support›[Resolved] To change an existing translation to a new target language in WPML without losing content
[Resolved] To change an existing translation to a new target language in WPML without losing content
This thread is resolved. Here is a description of the problem and solution.
Problem: The client needs to switch the language setup from Bosnian ('bs') to Serbian ('sr'), including changing the flag and the language code on their website. Solution: We recommend the following steps to address this issue without needing to re-translate the content: 1. Add the Serbian language in WPML under 'Languages'. For detailed instructions, visit Editing WPML's Languages Table. 2. Duplicate the content from Bosnian to Serbian using the WPML 'Translation Dashboard'. For more information on how to do this, please see Duplicating Content.
If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you need further assistance, please do not hesitate to open a new support ticket 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.
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?
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 be honest I don't know how to do this, I followed the instructions given by your AI but when I duplicated one Post from Bosnian to Serbian, I got a page in Serbian with the original language text which is English...why didn't it show the text in Bosnian if I duplicated the Post in Bosnian???
You can delete that page by following these steps:
1. Go to Pages → All Pages.
2. Switch to the Serbian language (assuming this is where the duplicate English page appears).
3. Move the unwanted page to the Trash.
4. Open the Trash and click Empty Trash to remove it completely.
I still have some difficulties with the translation, it is related that I have to translate the Footer complete and I have to set a different logo when the language is changed in both Header and Footer.
New threads created by Andrey and linked to this one are listed below: