PrestaShop icon indicating copy to clipboard operation
PrestaShop copied to clipboard

After upgrade some parts of BO are in EN some parts in FR

Open Soonz opened this issue 1 year ago • 10 comments

Prerequisites

Describe the bug and add attachments

Hey,

I recently upgraded PrestaShop using the autoupgrade module, needless to say that I had a crazy amount of issue but I managed to most of them. But there's one that I can't fix, my back office is half english / half french.

The menu on the left is in English, the content itself is in French.

There's definitly something wrong during the update, how can I fix it ?

Thanks.

Expected behavior

No response

Steps to reproduce

  • Prestashop 1.7.6
  • Installed languages - Czech (active, store default, employee default), Slovak (not active)
  • Upgrade prestashop - left menu is in english. BUT, I can see translations for experimental features page. 🤔
  • Clean cache - nothing, still english.
  • Update language manually in backoffice - menu in czech.

PrestaShop version(s) where the bug happened

8.1

PHP version(s) where the bug happened

8.1

If your bug is related to a module, specify its name and its version

No response

Your company or customer's name goes here (if applicable).

No response

Soonz avatar Jul 20 '23 07:07 Soonz

Hi @Soonz, let's try few things.

  • Can you send screenshot of your BO > Localization > Languages page?
  • Did you try clearing cache? (I guess you did.)
  • Did you try to update language in BO > Translations > Add / Update language and clear cache?
  • Can you dump table ps_tab_lang and attach it here?

Hlavtox avatar Jul 20 '23 08:07 Hlavtox

Did you try to update language in BO > Translations > Add / Update language and clear cache?

This worked, thanks!

I think the upgrade documentation should be updated mentionning this could be an issue. There was also an SQL line that I had to execute to make it work, this wasn't mentionned in the doc but was a known issue. If I find it I'll link it.

Thanks again.

Soonz avatar Jul 20 '23 10:07 Soonz

@Soonz Perfect, but please, can you specify which was the exact version of Prestashop you upgraded from? There was only 1 language - French when you upgraded?

Hlavtox avatar Jul 20 '23 11:07 Hlavtox

There was two languages, French and English and I upgraded from 1.7.7.5 to 8.1.0 with the autoupgrader module.

If you don't mind, I don't want to open another ticket because I'm not sure if it comes from a specific theme or PrestaShop itself, I have another shop and this one ignores the manual product position inside each categories. It could be the theme but I don't get why a theme would interact with the product sorting.

Thanks again.

Soonz avatar Jul 25 '23 13:07 Soonz

@Soonz OK, thanks for the information, please:

  • Both languages are enabled? (International > Localization > Languages)
  • What is the default language? (International > Localization > Configuration > Default language)
  • Your employee language is French?

Hlavtox avatar Jul 25 '23 13:07 Hlavtox

  • Both languages are enabled
  • Default language is French
  • Employee language is French

Soonz avatar Jul 25 '23 13:07 Soonz

OK, I checked the code and it must have been some random error, but I found an improvement we can do https://github.com/PrestaShop/autoupgrade/pull/600.

However, your issue must have been some random error. Ping @PrestaShop/qa-functional - if upgrades in other languages have been tested and work fine, you can close this issue.

Hlavtox avatar Jul 25 '23 14:07 Hlavtox

Hello @Soonz and @Hlavtox ,

I have tested an upgrade from 1.7 to 8.1.

With Spanish and English language. After the upgrade, only my menu was in English, while the rest of the shop is in Spanish. After updating the language, all is fine.

florine2623 avatar Jul 27 '23 14:07 florine2623

After updating the language, all is fine.

Yes, same for me but i'm happy to read that you managed to reproduce it, I didn't like the fact that it could be "random" :)

Soonz avatar Jul 27 '23 17:07 Soonz

Just reproduced the same issue.

  • Prestashop 1.7.6
  • Installed languages - Czech (active, store default, employee default), Slovak (not active)
  • Upgrade prestashop - left menu is in english. BUT, I can see translations for experimental features page. 🤔
  • Clean cache - nothing, still english.
  • Update language manually in backoffice - menu in czech.

Hlavtox avatar Jul 29 '23 16:07 Hlavtox

Also a duplicate of this closed issue: https://github.com/PrestaShop/PrestaShop/issues/33647

venditdevs avatar Sep 11 '24 06:09 venditdevs

@venditdevs it was marked as invalid after you closed it, which basically means nothing

kpodemski avatar Sep 11 '24 12:09 kpodemski