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.

Tagged: 

This topic contains 3 replies, has 3 voices.

Last updated by Bigul 1 year, 10 months ago.

Assisted by: Bigul.

Author Posts
August 7, 2023 at 4:34 pm #14165459

jean-paulC

Hi,

I need to add another language which is Argentina, however I cannot find it in the list, how can I add an argentinian language with domain.com/ar/ extension?

August 7, 2023 at 6:29 pm #14165917

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

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

Hi there.

Before this ticket gets assigned to my colleagues, I will try to help.

Please take a look over this ticket here:
hidden link

Kind regards,
Mihai Apetrei

August 7, 2023 at 8:36 pm #14166191

jean-paulC

I check however it seems that I need to use arabic to get /ar/ now the problem is that all the text is right to left instead of left to right and another problem I have is that when I change hreflang to es-ar I get an error mesage saying that hreflang already exist, this could be due that before I added spanish with that hreflang but now I deleted, please help me fix these issues since I need to publish the ar site

August 8, 2023 at 4:37 pm #14171283

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hello,

Thank you for the updates. We are following the WordPress global standards for the language code. The language code for Arabic is *ar*. Please refer to the following URLs for more details.

hidden link

hidden link

The language code is unique and it will not be possible to change the language code. Because it is stored in the database and connected with multiple tables. And also there are high chances of breaking the site if we change it directly from the database.

Therefore as a workaround, you can create a new custom language *Argentina* with a different language code. Please refer to the following documentation for more details.

https://wpml.org/documentation/support/editing-wpmls-languages-table/#adding-your-own-languages-using-wpmls-gui

Or you can change the language direction for the Arabic language from RTL or LTR. Refer to the following documentation for more details.

https://wpml.org/documentation/theme-compatibility/build-rtl-wordpress-themes/

hidden link

hidden link

--
Thanks!

Bigul