Global labels taxonomy: Difference between revisions

From Open Food Facts wiki
(Refactor)
Line 1: Line 1:
See [[Global taxonomies]] for instructions.
You can add anything if it makes sense as a label: Open Food facts will keep it, but it's better to add it to the label taxonomy:
[[Category:Global_Taxonomies]]
It is possible to display logos for labels, you can add them to [[Global labels taxonomy logos]]


== Current status ==
* next users will be able to choose this label, thanks to the autocompletion, without making mistakes
* it allows to add the logo of the label
* it allows to make link with the corresponding wikidata category
* etc.


Last sync to Open Food Facts: June 24th 2016.
== How to add a label in the taxonomy? ==


== Note ==
* just edit the [https://github.com/openfoodfacts/openfoodfacts-server/blob/main/taxonomies/labels.txt labels.txt] file (see [[Global taxonomies]] for instructions)
* It is possible to display logos for labels, you can add them to [[Global labels taxonomy logos]] and file https://github.com/openfoodfacts/openfoodfacts-server/tree/main/html/images/lang/fr/labels


If a label exists only in one language (e.g. French "AB Agriculture Biologique"), put that language only.
[[Category:Global Taxonomies]]
=== Note ===


Otherwise always put the English en: version first.
If a label exists only in one language (e.g. French "<code>AB Agriculture Biologique</code>"), put that language only.


== Taxonomy ==
Otherwise always put the English <code>en:</code> version first.
 
The taxonomy is now managed directly on github: https://github.com/openfoodfacts/openfoodfacts-server/blob/master/taxonomies/labels.txt


== Taxonomy translation ==
== Taxonomy translation ==
Replace XX by your language.
Replace XX by your language.
https://world-XX.openfoodfacts.org/labels?translate=1
https://world-XX.openfoodfacts.org/labels?translate=1

Revision as of 11:03, 19 May 2021

You can add anything if it makes sense as a label: Open Food facts will keep it, but it's better to add it to the label taxonomy:

  • next users will be able to choose this label, thanks to the autocompletion, without making mistakes
  • it allows to add the logo of the label
  • it allows to make link with the corresponding wikidata category
  • etc.

How to add a label in the taxonomy?

Note

If a label exists only in one language (e.g. French "AB Agriculture Biologique"), put that language only.

Otherwise always put the English en: version first.

Taxonomy translation

Replace XX by your language. https://world-XX.openfoodfacts.org/labels?translate=1