-
-
Notifications
You must be signed in to change notification settings - Fork 406
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
taxonomy: Pl ingredients #7791
taxonomy: Pl ingredients #7791
Conversation
Kudos, SonarCloud Quality Gate passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a new mechanism to handle things like "dried something", we should not add them to the ingredients taxonomy, and instead we can enrich the ingredients_processing.txt taxonomy to add translations of "dried" etc. in other languages.
@moon-rabbitOFF is right, it does not work for all languages. Polish, for example: https://pl.openfoodfacts.org/cgi/test_ingredients_analysis.pl?ingredients_text=liofilizowane+ananasy&type=add&action=process&submit=Envoyer @moon-rabbitOFF, you have to edit the file lib/ProductOpener/ingredients.pm. That can be tackled in a different pull request (you will have merge conflict if you do it from this actual branch). For this current pull request, make sure you keep only ingredients in this ingredients.txt file and processing method in ingredients_processing.txt and that should be fine. |
@stephanegigandet, please review the last changes Thank you @Teiron for your pull request related to this one |
Codecov Report
@@ Coverage Diff @@
## main #7791 +/- ##
=======================================
Coverage 48.16% 48.16%
=======================================
Files 109 109
Lines 21015 21015
Branches 4739 4739
=======================================
Hits 10122 10122
Misses 9618 9618
Partials 1275 1275 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
taxonomies/ingredients.txt
Outdated
fr:graines de tournesol décortiquées | ||
it:semi di girasole sbucciati | ||
pl:nasiona słonecznika łuskane, łuskane nasiona słonecznika | ||
# en:shelled sunflower seeds |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If everything is commented out, we need to remove the <en:sunflower seed on top
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<en:sunflower seed
is now commented as well (not removed, if future contributor see it commented that will be a hint to understand that they are handled using processing taxonomy. Whereas if we remove the whole block there is risk that a future contributor add it in the taxonomy (although it should be noticed during code review))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah ok my bad, I didn't look correctly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thank you!
Kudos, SonarCloud Quality Gate passed! |
No description provided.