Changes

Jump to navigation Jump to search
194 bytes added ,  20:46, 14 July 2020
Line 81: Line 81:  
It's now possible to add categories to labels to help the apps and website display it in a nicer way. Categorizing environmental labels will greatly help with that.
 
It's now possible to add categories to labels to help the apps and website display it in a nicer way. Categorizing environmental labels will greatly help with that.
 
[https://github.com/openfoodfacts/openfoodfacts-server/blob/master/taxonomies/labels.txt Categorize environmental labels on GitHub]
 
[https://github.com/openfoodfacts/openfoodfacts-server/blob/master/taxonomies/labels.txt Categorize environmental labels on GitHub]
 +
<pre>
 +
en:Label Rouge
 +
ca:Etiqueta Vermella
 +
de:Label Rouge
 +
es:Label Rouge
 +
fi:Label Rouge
 +
fr:Label Rouge
 +
nl:Label Rouge
 +
wikidata:en:Q3214309
 +
label_categories:en: en:Quality, en:Environment
 +
</pre>
 +
 
==== Getting information and logos for environmental labels ====
 
==== Getting information and logos for environmental labels ====
 
* Get the logo in SVG (or PNG otherwise): If we don't have a SVG logo, we'd need one, if possible like this: label-name-as-it-is-in-the-openfoodfacts-url.123x90.svg The height comes in second and should always be 90. You need to calculate the ratio to find out the width. if the logo is 246x180, you need to divide the height by 2 to get to 90, so you need to put height 90, and width 246/2=123.
 
* Get the logo in SVG (or PNG otherwise): If we don't have a SVG logo, we'd need one, if possible like this: label-name-as-it-is-in-the-openfoodfacts-url.123x90.svg The height comes in second and should always be 90. You need to calculate the ratio to find out the width. if the logo is 246x180, you need to divide the height by 2 to get to 90, so you need to put height 90, and width 246/2=123.

Navigation menu