Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to remove a translation in a multilingual field #728

Open
monsieurtanuki opened this issue Apr 26, 2023 · 0 comments
Open

Comments

@monsieurtanuki
Copy link
Contributor

For some reason, there may be a translation that has nothing to do here (e.g. a product name translated in English, but it was a typo as the language has no translation in English and the user meant a translation in another language).

We should be able to remove it

  • for consistency (e.g. no corrupted English product name translation here)
  • and for side effects (e.g. the English product name taking precedency, it becomes the de facto translation for other languages).

We cannot remove a translation today: if we put an empty string the translation becomes a "populated" empty string.
I also tried to put explicitly a null value instead of an empty string, but got rejected by /cgi/product_jqm2.pl: "Could not save product - null".

The problem should be dealt with on the server side, cf. openfoodfacts/openfoodfacts-server#8367

@teolemon teolemon changed the title Add the ability to remove a translation Add the ability to remove a translation in a multilingual field Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants