Skip Navigation

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 Diego Pereira 3 years, 6 months ago.

Assisted by: Diego Pereira.

Author Posts
December 11, 2021 at 8:43 pm #10167913

alexD-44

I need to add a custom "language" name titled Canada with code "ca"

The problem is, I try to click "edit languages", "add language", fill out the details, press save and it says the CA language code already exists.

1] "Canada" does not show under "Add/Remove Languages" section
2] I may have added CA when I first installed WPML and then deleted. Not sure if this is causing an issue
3] I've added custom "UK", "AU" and "USA" languages just fine, but I cannot add "CA" for some reason

Link to my site: hidden link

Screen Shot 2021-12-11 at 3.40.57 PM.png
December 13, 2021 at 12:49 pm #10175443

Diego Pereira
Supporter

Languages: English (English ) Spanish (Español ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello, welcome to the WPML support Forum!

The issue here is that "CA" is the official lang code for "Catalan" and that is why WPML tells you that this already exists and you can't use it.

So, as a workaround, if you want to use "CA" as a language code would be to add the "Catalan" language and then edit the name and all the other properties in "Edit" languages.

Please let me know if it worked for you.

All the best,
Diego