Skip Navigation

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

Problem:
The client has numerous categories in a bilingual GA/EN setup, where categories are randomly set with their original language instead of all being set to GA as intended. Manually adjusting each category's original language for about 150 categories is impractical.
Solution:
We recommend the following steps to streamline the process of setting GA as the original language for all categories:
1. Delete the translations, keeping only the categories in the default language.
2. Create a dummy product and add all the categories to it.
3. Use the translation editor to translate these categories. If using the advanced translation editor and the categories were previously translated, they should appear translated.
4. Save the product to set GA as the default language for these categories.
5. Navigate to WooCommerce Multilingual > Categories, scroll to the bottom of the page, and click the button to synchronize the categories across all products.
Before proceeding, ensure you back up your site and perhaps start with just one or two categories to familiarize yourself with the process and check for any unexpected issues.

If this solution does not resolve your issue or seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML support forum.

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

Last updated by Alejandro 5 months ago.

Assisted by: Alejandro.

Author Posts
June 18, 2024 at 10:35 am #15748432

David Henry

Background of the issue:
I have lots of categories and two languages GA/EN. Each language should have been set as original for GA, but they are all randomly set with their original language. I want to change this so all are originally in GA and translated to EN. I can do this by opening each category and changing all details, but there are about 150 categories, so this is not practical.

Symptoms:
Categories are randomly set with their original language instead of being set to GA.

Questions:
Is there an easier way to change the original language of all categories to GA?

June 18, 2024 at 10:37 am #15748450

David Henry

I should add that these are Product Categories.

See: hidden link

Also, does it actually make a difference on a practical level, is there any advantage to what I'm trying to do other than clarity?

June 18, 2024 at 10:51 am #15748547

David Henry

testing email notifications.

Edit - nothing received.

June 18, 2024 at 12:41 pm #15749045

Alejandro
Supporter

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Rome (GMT+01:00)

If you have them all translated, i think the best thing you can do is the following:

- delete the translations and leave only the ones in the default language
- Now create a dummy product and add all the categories to it
- try to translate them via the translation editor. If you're using the advanced one and you had translated the categories in the past, then you'll likely see everything translated!

- Save the product and then you should have the categories ordered where the main language will be the default one for the categories

- Now go to WooCommerce Multilingual > Categories > Go to the bottom of the page and click the button to synchronize the categories on all the products.

Once you've done this, things should be ok in all fronts.

---------------------------

I suggest, that you try the above only after having a backup of the site and maybe start with just one or 2 categories to get the hang of the workflow and to check if there were things that happened that shouldn't have. Just to take the safe route.

Try it out and let me know how it goes.

June 18, 2024 at 12:43 pm #15749078

David Henry

Thanks Alejandro, will give it a go.

June 18, 2024 at 12:57 pm #15749196

Alejandro
Supporter

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Rome (GMT+01:00)

Try it out and let me know how it goes.