Skip Navigation

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

Problem:
The client reported that the Vietnamese language code in WPML is set to

vi_VN

, while WordPress and all other plugins use

vi

. This discrepancy causes automatically loaded translations for plugins not to appear on Vietnamese pages.
Solution:
We acknowledged the issue and informed the client that we are aware of the mismatch and are working to resolve it. The default locale will eventually be set to

vi

, as recommended by WordPress. In the meantime, we advised the client to avoid renaming .po/.mo files in plugin directories, as these changes would be lost on the next update. Instead, we suggested going to WPML->Languages->Edit languages and changing the default locale from

vi_VN

to

vi

.
We also mentioned that this fix is included in our release log for upcoming updates, but we could not provide an estimated time of arrival.

Please note that this solution might be outdated or not applicable to your case. If the issue persists, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please open a new support ticket.

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

Last updated by hyung suk 1 year, 8 months ago.

Assisted by: Bobby.

Author Posts
April 18, 2023 at 12:12 am #13491049

hyung suk

Hi! there

Vietnamese language code of WPML is "vi_VN" but those of all the plugins and WordPress are "vi".

Hence, automatically loaded translations of all the plugins are not showing up on Vietnamese pages.

Furthermore, if I manually change the names of all the plugins' mo and po files from "vi" to "vi_VN", the automatically loaded translations show up normally.

hidden link

Example of  woocommerce login page.png
April 18, 2023 at 6:17 pm #13498875

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Thank you for bringing this to our attention.

Our team is currently aware of this mismatch -- once resolved the default locale will be set to 'vi' which is the one that WP recommends here:
https://make.wordpress.org/polyglots/teams/

In the meantime, I'd recommend instead of changing the .po/.mo files in the plugins directories (they will be overwritten on the next update), go to WPML->Languages->Edit languages and change the default locale from vi_VN to vi.

April 19, 2023 at 1:45 am #13500617

hyung suk

Thank you for the fast response.

I changed Vietnamese lang code to “vi” as you said and now the translations show up normally.

By the way, the “mo” files in WPML directory are still “vi_VN”.

So do I need to change to “vi” manually?

Further, does WPML plan to update?

WPML directory mo files.png
April 19, 2023 at 2:40 am #13500893

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

You could change the ones in the WPML, as we indeed use the locale vi_VN.

At the moment this is in our release log for the next releases, however, I cannot provide an eta at the moment.

Once it is done we will update you here

April 19, 2023 at 5:37 am #13501545

hyung suk

Thank you for your assistance.

I hope the update for the issue would be soon.

Best regards
Moon