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

Last updated by miguelS-26 1 year, 5 months ago.

Assisted by: Waqas Bin Hasan.

Author Posts
July 3, 2023 at 1:21 pm

miguelS-26

I installed the WPML to my website, but I dont know why all content (pages and posts) were added to the second original language instead of the original one. Now I have over 600 posts in the portuguese category, instead of english, which is the correct one.

July 3, 2023 at 2:38 pm
July 3, 2023 at 2:39 pm #13934043

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Reference to our recent chat, I've enabled your next reply as private to provide access details for the staging/dev site. So I can continue investigation without risking the live site.

Regards.

July 3, 2023 at 3:37 pm
July 4, 2023 at 5:04 am #13936901

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Looks like the password isn't correct as I am getting following error:

"Error: The password you entered for the username r******* is incorrect."

Please check again on your side and provide the updated/correct credentials.

I've enabled your next reply as private.

July 4, 2023 at 10:07 am
July 4, 2023 at 10:53 am #13939959

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the updated access, I was able to login.

Meanwhile I am working on this, can you please confirm that if it is OK to create a duplicator of the package? In case if it is needed by the 2nd tier team for installing and investigating in an other environment.

July 4, 2023 at 10:59 am #13940071

miguelS-26

Duplicator of what?

July 4, 2023 at 11:05 am #13940153

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Duplicator is a plugin (https://wordpress.org/plugins/duplicator/) which allows you to copy your site into an installable package. This package can be used to install the website at another place (i.e. on local or another host).

July 4, 2023 at 12:22 pm #13941139

miguelS-26

Yes, you may do that.

July 4, 2023 at 12:43 pm #13941235

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

I discussed with the team and this isn't generally possible to duplicate posts from Secondary Language to Primary Language using Translation Management (as we tried during the chat).

However, it can be achieved by running some queries directly on the DB. I tried these but looks like there's already content which you have translated.

So the question is, do you want to retain what you have already translated? We'll proceed accordingly. Otherwise 'll use different approach.

On the other hand, if you haven't much and it was a fresh site, perhaps you can try to reset WPML and try again? See https://wpml.org/documentation/getting-started-guide/language-setup/deleting-languages-and-plugin-data-by-doing-a-wpml-reset-on-your-site/ for details.

I'll advise if you want to reset, try it on the staging site first. However, if you don't reply me for the above mentioned and I'll continue with that DB approach on the staging site.

July 4, 2023 at 3:08 pm #13942601

miguelS-26

What it DB? I have translated a few pages, and some posts of the website are considered english, which is weird since I did nothing.
I really dont want to scrap all work done translating my pages, so that option isnt going to work...

July 5, 2023 at 7:17 am #13946175

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Alright thank you for confirmation, I'll proceed with DB (Database) process with direct queries, on staging site.

I'll update you soon on this.

July 5, 2023 at 2:22 pm #13951655

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

I, with the help of my team, have investigated the issue in very much detail. We also tried to fix the issue manually but it requires so much manual and custom work.

Let me explain:

- There are hundreds of posts in Secondary Language (Portuguese), without their counterparts in Primary Language (English).
- Also there are lot of translated content from English to Portuguese.
- This has created relevant (lot of) entries in the translation tables (in the database).

Given the situation, it is not easy to apply unified queries on the database to move posts from secondary language to the primary. While it requires to handle each post individually, thus needing custom work.

Unfortunately, this goes out of scope of this forum.

There are following alternatives to deal with this at this point:

A) Manually edit each Portuguese post and change the default language, see https://wpml.org/forums/topic/wpml-change-default-language-of-already-made-post/#post-3692807 for details.

B) Create the same post in English and connect it with Portuguese counterpart (https://wpml.org/faq/how-to-link-already-translated-pages/). Repeat for each post manually. Then either you can translate Portuguese posts manually by replacing their content or can delete Portuguese posts (from trash as well) and translate from English.

C) Start afresh:

- Reset WPML
- Do the cleanup
- Configure and set correct default language
- This moves all post to English
- Manually adjust and change language of post that need to be PT and connect manually to their original EN page

Besides the above, WPML offers filters and action hooks that can be used to achieve any custom requirements. Browse following resources for more information:

- https://wpml.org/documentation/support/wpml-coding-api/
- https://wpml.org/documentation/support/wpml-coding-api/wpml-hooks-reference/
- https://wpml.org/documentation/support/wpml-tables/

If you need additional custom work, we recommend you contact WPML Contractors at https://wpml.org/contractors/.

July 7, 2023 at 11:00 am #13967399

miguelS-26

The page I had for reviewing translation that was showing a page list isnt showing anything anymore. I need to use the automatic translation to only review, not manually translate everything by myself.
This is what I was using: hidden link