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 8 replies, has 3 voices.

Last updated by ivanS-69 1 year, 3 months ago.

Assisted by: Ahmed Mamdouh.

Author Posts
July 19, 2023 at 2:22 pm #14067033

ivanS-69

We want to create a language for the Portuguese language. Currently, there are 2 options: Portuguese (Brazil) and Portuguese (Portugal), with the language codes '/pt-br/' and '/pt-pt/'.

We'd like to have a language with the language code '/pt/' only. We couldn't succeed in doing it on our own since the content fails to be sent to the translation service.

I read recently in the docs that there's something you need to enable from your side. Can you help us with the issue?

July 20, 2023 at 5:10 am #14069141

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

For a custom language to work with automatic translation, you need to perform a language mapping so the automatic system understands which language to translate to.

For more information:

https://wpml.org/documentation/automatic-translation/using-automatic-translation-with-custom-languages/

Thanks.

July 24, 2023 at 3:38 pm #14091081

ivanS-69

Hi Christopher.
We're using Smartcat as a translation tool, not automatic translation. So we're sending all the content to the service where it's translated and then synced back to the database.

Even after mapping the language, it seems like wpml has trouble recognizing it as the Portuguese language. Is there anything else I should do in order for it to work?

July 25, 2023 at 8:28 am #14093813

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

Let's check on your website.

I'd appreciate it if you could give me the URL/User/Pass of your WordPress dashboard after you make sure that you have a backup of your website.
It is absolutely important that you give us a guarantee that you have a backup so if something happens you will have a point of restore.

Make sure you set the next reply as private.

July 26, 2023 at 8:18 am #14100847

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Also it would be helpful if you provide a screenshot of WPML Languages page to see if we can find a clue.

thanks.

July 26, 2023 at 3:08 pm #14105401

ivanS-69

Hi Christopher.
I'm sending a screenshot of the language page. Please give me a couple of days to check with the content team. It looks like some progress is made. I want to check that out before continuing with access on site.

wpml-languages.png
July 27, 2023 at 6:28 am #14107813

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

Sure thing. please get back to us if you need our help.

July 27, 2023 at 12:25 pm #14110709

Ahmed Mamdouh
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hello,

This is Ahmed Mamdouh from the translation proxy team and I'll help you with this ticket.

As I can see in the screenshot you provided, the Portuguese language code on the website is "pt", and you want it to be received as "pt-pt" in Smartcat.

So I added the needed mapping from "pt" to "pt-PT" and this should solve the issue, please try to resend the jobs again and let me know how it goes.

If you still have an issue sending the pages, please send me a screenshot of the error you see to check it.

Best regards,
Ahmed Mamdouh.

August 1, 2023 at 9:36 am #14132335

ivanS-69

Hello!
I got notified by the content team that everything now works as expected. Thank you for your help!