Skip Navigation

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

Problem:
I want to setup translation for Serbian Latin lang, but currently, you have only Cyrillic.

Solution:
You can add it as a custom language.

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

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 6 replies, has 2 voices.

Last updated by ivanR-35 3 years, 2 months ago.

Assisted by: Mohamed Sayed.

Author Posts
April 9, 2022 at 7:40 pm #10987185

ivanR-35

I want to setup translation for Serbian latin lang, but currently you have only Cyrilic.

Please send instractions how to do this.

Kind regards,
Ivan

April 10, 2022 at 3:38 pm #10989789

Mohamed Sayed

Hi Ivan,
Thanks for contacting WPML support.

Please follow our documentation guide about how to add a new language from here: https://wpml.org/documentation/support/editing-wpmls-languages-table/#adding-your-own-languages-using-wpmls-gui

Let me know please if that helps.

Regards,
Mohamed

April 10, 2022 at 9:05 pm #10990351

ivanR-35

Hi Mohamed,

But you have Serbian Cyrilic. Can I just choose Serbian Latin for latinization?

In case I need to set up custom language - do I need to translate all the strings for website and WooCommerce? This is something I have translated for english and russian from WPML.

Kind regards,
Ivan

April 11, 2022 at 11:32 am #10994427

Mohamed Sayed

Hi Ivan,

Unfortunately, it's not possible to transliterate from Cyrillic to Latin in WPML directly.
You might try something like this plugin https://wordpress.org/plugins/serbian-transliteration/ but I'm not sure how it works with our translations.

In case you've added the Latin Serbian as a custom language, you'll need to add the translation for any string that is already translated to the other languages.

Please also note that you won't be able to use the automatic translation with this language because it's not supported by any of the translation engines hidden link

Regards,
Mohamed

April 11, 2022 at 8:45 pm #10998449

ivanR-35

Hi Mohamed again,

One more question.

I added Croatian language instead of Serbian, because it's similar to Montenegrin, and it's Latinization.

Now my website has /hr/ code in URL. Can I change this to /me/?
hidden link

Attached is the screenshot where I edited hreflang, flag and name.

montenegrin-custom.png
April 12, 2022 at 10:28 am #11002399

Mohamed Sayed

Hi Ivan,

The URLs of your site are getting the language part from the value of the Code field. For example, http://wpml.org/es-mx/, http://wpml.org/?lang=es-mx. It's the name for this language in the database. Once you set this value and add content, you should never change it, or the language content will be lost.

This value cannot be changed, so for example, If you want to have the Chinese language with 'cn' as the code instead of 'zh-hans' you will need to create a new custom language.

Please review our guide for more details: https://wpml.org/documentation/support/editing-wpmls-languages-table/

Regards,
Mohamed