Prestashop: Problem with French Canada local settings on 1.7.5.1

Created on 17 Oct 2019  路  34Comments  路  Source: PrestaShop/PrestaShop


Steps To Reproduce the issue

  1. Go to BO => International => Localization page
  2. Import the Canada Package
  3. Go to your Profile employee
  4. Change the languge of the employee to Fran莽ais CA (French)
  5. Go to BO => Catalog => Products => Edit a product
  6. See error in the console

Describe the bug
From the begining of using vers 1.7.5.X, i have some main.bundle.js errors with French Quebec's locales.

The error happen in BackEnd, and sometimes FrontEnd.

I also test in the past to change locales. Prestashop 1.7.5.1 default installer, configure French Canada for iso "qc" and language "qc". It's clear supposed to be "fr" and "ca" (see screenshots).

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'PS Back Office'
  2. Click on 'Advanced Settings'
  3. Scroll down to 'Logs'
  4. See error in navigation

Screenshots
2019-10-17_10h34_36

2019-10-17_10h36_13

2019-10-17_10h38_11

Additional information
PrestaShop version: 1.7.5.1 (updated from 1.7.5.0 last year)
PHP version: 7.2.23
MySQLa version: 5.5.64-MariaDB

1.7.5.1 1.7.6.1 1.7.6.2 1.7.7.0 BO Bug International Minor Products To Do waiting for PM

Most helpful comment

@8ternity Hi, there is something that I fail to understand here. Please allow me to explain.

PrestaShop is opensource software. This means that you paid nothing to get it. Zero dollars, zero euros, zero whatever.

This is a software that, from what I can see, receives regularly new features.
And you get these features for free. Zero dollars.

This is a software that, from what I can see, receives regularly bug fixes.
And you get these bug fixes for free. Zero dollars.

This is a software that, from what I can see, receives regularly security updates.
And you get these security patches for free. Zero dollars.

Did you ever consider how expensive it would be to do this all by yourself ? If you could not rely on an opensource e-commerce website, if you had to write all this code by yourself, and add new features by yourself and fix issues by yourself and check the security by yourself ? How much time and money you would actually spend ? Well, thanks to the fact that this is open source, you get all of this in zero seconds and for zero dollars.

So ... on what ground can you actually threaten those fine foks from PrestaShop ? What do you plan to put in this Youtube video, "How I try to give a bad image to the people who gave me so much for free" ? (I assume this Youtube video you speak about aims to give bad image of prestashop)

What is the next step ? Will you find an issue in PHP and, if PHP team does not fix it, you make a Youtube video about it ? Then will you find an issue in Linux and, if Linux team does not fix it, you make a Youtube video about it ?

Be careful, I heard that Linus Torvalds is not the kind of man you want to mess with.

If you're not happy with open source software, there are alternatives: nobody is forcing you to use it. You have multiple options: use one of the competitors (WooCommerce, Magento are the 1st I can think of) or fork this project and start your own better version!

But rather than doing that, you're complaining here, threatening people who, again, are giving you so much for free, because it does not work for you! What went so wrong that you believe this is the right attitude.

What you will likely achieve is simply kill whatever motivation these people have and kill the project. You think this will never happen ? Read about that:
https://nolanlawson.com/2017/03/05/what-it-feels-like-to-be-an-open-source-maintainer/
https://www.theregister.com/2020/01/21/rust_actix_web_framework_maintainer_quits/

In this world, open source is one of the best things we have. You have a website ? Great, it runs because of hundred of open source projects. Apache, mysql, PHP, C, all of this you can use it for free and some people update/fix/secure it for you. For zero dollars, once again.

I think you should rather be thanking them for all of the stuff you got for free rather than complaining about one single issue.

All 34 comments

Hi @8ternity,

Could you please navigate to your BO => International => Translations => Add / Update a language section => select "Fran莽ais CA (French)" & click on the button "Add / Update a language".
image

Thanks to check & feedback.

@8ternity, using the PrestaShop version 1.7.5.1., in the Back office => International => Localization => when you try to import Canada pack, the French CA is not added?
https://drive.google.com/file/d/1YmGdNfkE-LrzUW8vNrnm3o4ZiJyHO_Np/view

Thanks!

@8ternity, this is an issue with PHP and sessions folder, you need to check the error with your host
Thanks to check with them & feedback

@khouloudbelguith problem submited to my hosting provider. Will update post upon status.

@8ternity, thanks!
Waiting for your feedback.

@khouloudbelguith Resolved. But French Canada not available, but i was able to import "French" again and with writing authorsation it's resolved.

@8ternity, thanks for your feedback.
So, now after importing the Canada Package, all seems ok => no exception displayed?
image

Thanks!

Hi @8ternity,

Thanks for your feedback.
I found an error with PS1.7.5.1 & PS1.7.6.1 in the BO => Catalog => Product details page
image

qc.js:1 Uncaught ReferenceError: file_not_found is not defined
    at qc.js:1

This issue occurs when Fran莽ais CA (French) is the language selected by the employee.
I鈥檒l add this to the debug roadmap so that it鈥檚 fixed. If you have already fixed it on your end or if you think you can do it, please do send us a pull request!
Thanks!

@8ternity, This issue is different, can you open a new ticket.

Thanks!

It's not just different, language is bad configured in all version up to 1.7.6.2. Jquery will call same files when you edit a product to be translated.

@8ternity, yes, I have the same issue with PS1.7.6.2
image

Thanks!

@marionf @khouloudbelguith I was renamed into MySQL ps_lang has follow, and Product Page error has been fixed.

iso has fr and language_code to fr-CA

Language Patch in DB

But, now, when i edit translations in "Conception > Internationalisation" and save a French label, i get a locale error.

Error on French Canada label Saving

IMPORTANT: I was modify the locales, iso and language code because Google Search Console is rejecting my French URL because it wasn't recognized by their bot for Organic Search.

2020-02-17_12h00_26

It must have a solution just to inject locales fron fr_CA to be fixed after that?

Thank You.

@marionf @khouloudbelguith Since i start to build our store in 2019, this issue wasn't resolved. I made 3 sales in the last 8 months. Today, im still getting issues with Prestashop locales. Im struggling to update product editor for english version and locales are causing error to update translations on modules and also on product editor. I get no help from prestashop community support, on Github, on Gitter, i can't get help to get rid off. Since 2019, i try update on test store a migration to 1.7.6.X and still getting issue if i migrate with 1-click upgrade. Its doesn't resolved the lcoales error for French Canada. I also, get developement request quotation with a developer company who can migrate our store from version 1.7.5.1 to 1.7.6.5. Im struggling to know if you resolve the issue on version 1.7.6.5 or i migrate to Magento CMS 2.X. I do undestand it's an Open Source software, but i maybe need to wait upon resolution, but we invest more than 1500$ USD in modules in your addons store. Now, then, is locales fully supported on version 1.7.6.5 and can i migrate all data (orders, products, features, theme) to newer version?

@LouiseBonnard @Junebyun It seems a localization Problem, and you don't have been pinged on it.

Hi @8ternity, and thanks @Progi1984, it looks like the problem has been solved in 1.7.6.5 because I can't reproduce this issue, I have qc as the language ISO code and fr-CA as the language code and the locale. Unless I did not properly follow the steps...

In any case, you can check in the TranslationFiles, the all_languages file, and locales file. Let me know if I got it wrong and I'll try again.

@8ternity, localization stands for localization packs and they are based on countries.

Regarding your first issue, I think I can see where the error is coming from in the file that installs the language, cf. https://github.com/PrestaShop/PrestaShop/blob/develop/install-dev/langs/qc/language.xml. Indicated language code should be

<language_code>fr-ca</language_code>

instead of

<language_code>qc</language_code>

@PrestaShop/prestashop-core-developers, can you confirm?

@LouiseBonnard I think qc directory should be renamed in fr-CA which is the ISO code. What do you think, team @PrestaShop/prestashop-core-developers ?

The language code is fr
The country code is ca.

The locale is so fr-CA.

@Progi1984 I confirm too. This is the good and proper language and iso code.

@Progi1984, thanks for the feedback! But renaming the directory would be considered as a breaking change, wouldn't it?

Hi @8ternity, if it does not introduce any breaking change (still checking with the dev team to have a clue), it will be part of a future version. We keep you posted!

@LouiseBonnard Any updates on the last comment?

@LouiseBonnard @Progi1984 Im sorry to write again, but i have problem reported with French customers that some importants parts are not translated in French. Here in Canada, in Quebec, we have the French Office Law Government that are obligated to offer to Quebec's residents a website available in French. It's the law and we can have fine if we don't resolved it. Since i report the problem last year, i do need that you focus on resolving this issue and find a solution, or resolve it quickly. You must also understand that my job is at risk. I can't tell another year to the company owner they need to wait again over and over for having a resolution.

Could you please take this issue in priority? Thank you. Stephen.

@LouiseBonnard Can we have an answer please? Could you please try to reproduce with the step explain in reply here

Hello @8ternity if this is a critical issue for your business, you could have proposed a pull request, or, if your company devs can't do it, you could have hired someone to fix it in a pull request. There are freelancers that can solve this kind of issue.

Please note that PrestaShop is an open source project. Anyone is welcome to improve it. It's not just the job of the PrestaShop company team.

The developers team working for the PrestaShop company is focused on specific priorities, selected after interviews with agencies, merchants, and other people from the ecosystem. Then, their priorities are defined by the Product Management team, based on identified needs for the company, its business model, partners, etc.

Of course, people using the PrestaShop project to build solutions and products for their customers might have specific use cases that needs specific fixes of custom development. That's what open source projects are for.

That said, if you need help to get started as a contributor, please let me know.

I hope that you understand that this issue need to be fixed by dev's, not reresenting to be customisation.

Well, that's the point. The problem, here, is that this issue is critical for you. However, the PrestaShop devs team will handle in priority issues that are critical for a loooooot of end users (merchants) or developers (modules developers, themes developers, ...).

That's why in this kind of case, the pull request to fix this issue should be written by the people with the need: you, or someone you hire. That's basically how open source projects are working: serious companies invest in the open source projects they use to build solutions and products to grow their business, because it's strategic for them. That means, among others, hiring developers to fix issues and contributing new features. Keep in mind: because most of the time, downloading open source software is free of charge, people think that the cost of ownership is zero. It's not true, and certainly the biggest misunderstandig.

The PrestaShop company is currently the biggest contributor to the PrestaShop open source project. But, it's not the role of the PrestaShop company to fix everything, free of charge: it would not be sustainable. We fix what is important for most users, we manage the road map for the sustainability of the project with a long term insight, and our developers spend a lot of time on review of the code. We are also managing the promotion of the project (events, marketing, ...). It's impossible to do everything. That's why many merchants (like you), agencies, freelancers, who built their business with the PrestaShop software are also contributing to it in many ways, including fixing issues.

Last thing about understanding open source: read the license. When you are using the PrestaShop software (note that it's the same for any other open source software), you, the user, are responsible of the use you have of the software. The PrestaShop company (or the editors of other open source software) is not accountable for issues you find. That's also why companies who use open source softwares are working with agencies or freelancers, or hire devs: to have a good technical support.

If you are a too small company to have a full time dev, go with freelancers. And, if you struggle to find someone who has the skill and experience to fix such an issue, then let me now. Maybe one of our partner can help you with that.

@8ternity Unfortunately, we don't plan to resolve this issue right now.
There are a lot of issues due to bad coding, legacy, wrong choices, etc. And this one is not our priority, because even if it concerns your business, we must fix more important problems before. When I use the terms "more import problems", it's not that yours is not important, it's only regarding what the agencies have told us.

As @ttoine said, it's an open-source project and everyone can contribute, if you can hire a developer to fix this issue, we will be glad to review and merge it as fast as possible.

@8ternity do you use some module to advertise?

This is exactly what i've deduce from all your answers! From that situation, i will make a YouTube video about the situation. Thanks for answering and confirming it.

Also, i'm receiving email from Prestashop with "How to advertise on Google Shopping and Facebook via PrestaShop Ads?" But it's not possible in French Canada because wrong locales. Google Shopping has refused all my pages due to wrong locales (which i submit in this issue Here.

ITs look like you don't know how this issue is affecting a lot of things, just no translations. Google has answered me that i do need to have the proper iso code for getting Google Shopping.

Feel free to create a YouTube video about the situation if it can help you to find someone to fix this bug.

I will quote @ttoine:

_The PrestaShop software is a project anyone can download to use as a base. It is not at all a ready to use the product with support and SLA, not at all a SaaS, not at all a freeware. So, you are actually using the project to build a solution to buy/sell online. And by the license, you are responsible for the use you have of the software._

_Well, again, if this is a serious problem for your business, you can fix it (the code is open and the license allows you to modify it) and, eventually be fair with the project and share the fix in a contribution to the project (the license is made to manage collaborative writing of the software)_

_There are currently around 300000 online shops running PrestaShop globally. Small, medium, but also very big companies. So it means that accountants and merchants have found a way to work with it unless it's fixed. That's why using open source software is interesting._

Please, just keep in mind this is an open-source project, as far as I know you don't pay me, or anyone here to do a job :sweat_smile:.
This is why, if you need something specific, or want that old bug to be fixed as soon as possible, you must do it yourself, or if you're not able to do it, pay someone for this task.

@8ternity Hi, there is something that I fail to understand here. Please allow me to explain.

PrestaShop is opensource software. This means that you paid nothing to get it. Zero dollars, zero euros, zero whatever.

This is a software that, from what I can see, receives regularly new features.
And you get these features for free. Zero dollars.

This is a software that, from what I can see, receives regularly bug fixes.
And you get these bug fixes for free. Zero dollars.

This is a software that, from what I can see, receives regularly security updates.
And you get these security patches for free. Zero dollars.

Did you ever consider how expensive it would be to do this all by yourself ? If you could not rely on an opensource e-commerce website, if you had to write all this code by yourself, and add new features by yourself and fix issues by yourself and check the security by yourself ? How much time and money you would actually spend ? Well, thanks to the fact that this is open source, you get all of this in zero seconds and for zero dollars.

So ... on what ground can you actually threaten those fine foks from PrestaShop ? What do you plan to put in this Youtube video, "How I try to give a bad image to the people who gave me so much for free" ? (I assume this Youtube video you speak about aims to give bad image of prestashop)

What is the next step ? Will you find an issue in PHP and, if PHP team does not fix it, you make a Youtube video about it ? Then will you find an issue in Linux and, if Linux team does not fix it, you make a Youtube video about it ?

Be careful, I heard that Linus Torvalds is not the kind of man you want to mess with.

If you're not happy with open source software, there are alternatives: nobody is forcing you to use it. You have multiple options: use one of the competitors (WooCommerce, Magento are the 1st I can think of) or fork this project and start your own better version!

But rather than doing that, you're complaining here, threatening people who, again, are giving you so much for free, because it does not work for you! What went so wrong that you believe this is the right attitude.

What you will likely achieve is simply kill whatever motivation these people have and kill the project. You think this will never happen ? Read about that:
https://nolanlawson.com/2017/03/05/what-it-feels-like-to-be-an-open-source-maintainer/
https://www.theregister.com/2020/01/21/rust_actix_web_framework_maintainer_quits/

In this world, open source is one of the best things we have. You have a website ? Great, it runs because of hundred of open source projects. Apache, mysql, PHP, C, all of this you can use it for free and some people update/fix/secure it for you. For zero dollars, once again.

I think you should rather be thanking them for all of the stuff you got for free rather than complaining about one single issue.

Who threatened you and where ?

Be careful, I heard that Linus Torvalds is not the kind of man you want to mess with.

Sorry for problems and please just close the case. Thanks for your time.

@8ternity, I think you misunderstood @prestaforum's message.

You may not know who Linus Torvalds is: he's the creator of Linux and he's known for being very intolerant and hard on people. @prestaforum used him to illustrate that compared to other very well known figures of the open source community, we're actually quite nice.

For what is worth, to the best of my knowledge, neither him nor @prestaforum are directly affiliated with the PrestaShop project nor the PrestaShop company.

The bottom line is: yes we understand there is a problem, and that it's important to some people. But we can do only so much and it's not currently in our top priority list, so like in every other open source project, you can either patiently wait for someone to fix it for free, or find the way to fix it on your own (eg. pay an expert).

Hello,

I managed to reproduce the issue with PS1.7.6.9, PS1.7.7.0-rc.1+build.4 and develop, see the attached screen record below:

https://drive.google.com/file/d/11OSBXUhE2Y2Svu0HgIO3K0Gsf3zhgBIb/view

@PrestaShop/product-team what we should choose as status for this issue? ToDo or TBS?

Thanks!

Just a reminder, locales code and language code need to changed like this :
Refer to here

Was this page helpful?
0 / 5 - 0 ratings