Skip to content Skip to sidebar

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

Problem:
The client discovered that all strings translated from English to Bulgarian were deleted and replaced by their translations, causing elements on English pages to appear in Bulgarian. The issue was also present on the staging site, ruling out a cache problem. Additionally, there was a concern about taxonomy translation where a sub-category was missing its parent category.

Solution:
1. We resolved the synchronization issue indicated by the warning at the top of the backend.
2. We navigated to WPML -> String Translation, searched for, and deleted the entries for 'grad'.
3. We went to WPML -> Settings -> Taxonomy translation, selected 'City', and added 'city' as a translation for the 'grad' slug, then saved the changes.
4. In the 'Real State' section under 'City', we fixed a sub-category that was missing its parent category in English.
5. We advised the client to follow these steps on the production site.
6. We also highlighted the importance of saving theme options in the correct backend language, as saving them in a secondary language might have caused the default language for strings to change.

Please note that this solution might not be relevant to your case, as it could be outdated or not applicable. If you're experiencing similar issues, we highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket with us.

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

Last updated by Carlos Rojas 1 year, 8 months ago.

Assisted by: Carlos Rojas.

Author Posts
March 14, 2024 at 11:50 am #15409552

damienC-18

I've discovered something new and even weirder:

hidden link

Those strings I've manually wrote them in English for the English translation and they are now considered Bulgarian?!! What's going on? lol

March 14, 2024 at 12:05 pm #15409650

damienC-18

Another issue, most probably related to the same problem, I explain it in video here: hidden link

March 14, 2024 at 1:05 pm #15410051

Carlos Rojas
WPML Supporter since 03/2017

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

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

Hi,
Thank you for sharing the credentials requested

1.- I have checked the WPML configuration on the site and looks correct. The string translations that you mentioned here: https://wpml.org/forums/topic/translated-stings-replaced-original-ones/page/2/#post-15409552 seem to belong to posts/pages so you shouldn't be worried about them because they should be translated when you translate the posts/pages.

Besides that, there is nothing to point to a problem in WPML.

2.- I have fixed the problem with the taxonomy slug (Grad/City). You might want to flush the cache memory before checking it.

Regards,
Carlos

March 14, 2024 at 1:21 pm #15410157

damienC-18

The taxonomy issue is another weird thing because by "fixing" it it's not equivalent to the Bulgarian version anymore where "ochusha-village" should have "kostenets" as parent.

Anyway we can address that once more another time because this is minor compared to the problem I'm facing here.

I don't see other option but to restore my website to a previous version unfortunately, my hoster don't see any problem on their side as well.

March 14, 2024 at 1:23 pm #15410160

Carlos Rojas
WPML Supporter since 03/2017

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

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

Hi,

I would recommend you restore a previous version of the site on a staging environment. Then start updating the outdated plugins and themes until you see the issue again and find the culprit.

March 14, 2024 at 2:49 pm #15410765

damienC-18

Hi,

OK I've reverted to a few days back the issue is resolved, I'll do the updates on staging version to see if the problem can be replicated and I'll report back.

In the meantime please check the screenshots about the city syncronization taxonomy.

It's well setup here yet it show an error and if we "fix" it it remove Kostenets as parent of Ochusha village, and it shouldn't be the case.

Can you please see what's going on there? Thank you.

english.png
bg.png
March 14, 2024 at 2:54 pm #15410841

Carlos Rojas
WPML Supporter since 03/2017

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

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

Hi,

Please check in the staging site if the taxonomy sync is still an issue. If so, then please share the access credentials so I can take a look.

I have set your next message private in case you need to share the credentials for the staging site.

March 15, 2024 at 9:12 am #15413434

Carlos Rojas
WPML Supporter since 03/2017

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

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

Thank you for sharing the credentials for the staging site.

Unfortunately, the credentials are incorrect, I'm getting this error message: "Грешка: Паролата, която въведохте за имейл адреса contact@dracolead.com, е невярна. Изгубена парола?"

Please double-check the credentials and edit your previous private message.

March 15, 2024 at 9:42 am #15413654

damienC-18

Sorry about that here are the right ones:
***

March 15, 2024 at 10:30 am #15413837

Carlos Rojas
WPML Supporter since 03/2017

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

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

Thanks, this time I was able to access the staging site.

However, I tried to update all outdated plugins and I got an error. Please try to update the outdated plugins in this link: hidden link or contact your hosting provider and ask them to check the problem.

March 15, 2024 at 11:48 am #15414116

damienC-18

I guess the error you faced was trying to update the theme, it has to be done with the plugin EnvatoMarket, which is not intuitive I concurr.

All plugins have been updated. Kindly check.

March 15, 2024 at 12:09 pm #15414137

Carlos Rojas
WPML Supporter since 03/2017

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

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

Thanks!

I have fixed the City taxonomy. Could you confirm it is correct in both languages?

March 15, 2024 at 12:15 pm #15414217

damienC-18

Hi, great job, I wonder how you did it because whenever I tried to do it it wasn't working.
The hierarchy is respected here.
Can you tell me what happened and what you did so that the issue won't appear again?
Also so that I'll try to fix it myself on the live website. Thanks.

March 15, 2024 at 12:21 pm #15414230

Carlos Rojas
WPML Supporter since 03/2017

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

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

Hi,

These are the steps I followed:
- Fixed the sync problem that appears in the banned at the top of the backend
- WPML -> String Translation -> Searched and deleted the two entries 'grad'
- WPML -> Settings -> Taxonomy translation -> City -> Added 'city' as a translation for the 'grad' slug -> Save the changes
- Real State -> City -> Fixed one sub-category that was missing the parent category in EN

Please follow the same steps on the production site and let me know if you need further assistance.

Important note: Once of my colleagues suspects that the change in the default language for the strings that come from the theme options could be caused because the theme options were saved in the secondary language. Please make sure to save the theme options in the correct backend language (check the language switcher in the admin bar at the top).

March 15, 2024 at 12:29 pm #15414258

damienC-18

I'm at step 3 (screenshot) and don't understand why the slug for city is grad instead of city, it has to be changed, how can I do that please?

slug.png