Difference between revisions of "OBF:Global periods after opening taxonomy"

From Open Food Facts wiki
Jump to navigation Jump to search
obf>Tacite
m
m (12 revisions imported: Import OBF 3/n)
 
(6 intermediate revisions by 2 users not shown)
Line 27: Line 27:
 
my $entry_format = <<TXT
 
my $entry_format = <<TXT
 
en:<i> months, <i>months, <i> M, <i>M, <i>
 
en:<i> months, <i>months, <i> M, <i>M, <i>
 +
de:<i> Monate, <i>Monate
 
fr:<i> mois, <i>mois
 
fr:<i> mois, <i>mois
 
nl:<i> maanden, <i>maanden
 
nl:<i> maanden, <i>maanden
Line 41: Line 42:
 
}
 
}
  
 +
</pre>
 +
===Singular===
 +
<pre>
 +
de:1 Monat
 +
en:1 month, 1month
 +
fr:1 mois, 1mois
 +
nl:1 maand, 1maand
 
</pre>
 
</pre>
  
Support for traditional chinese:
+
=== Unsupported languages ===
 +
Support for traditional Chinese:
 
zh:<i> 個月
 
zh:<i> 個月
  
Line 56: Line 65:
 
en:1 month, 1month, 1 M, 1M, 1
 
en:1 month, 1month, 1 M, 1M, 1
 
fr:1 mois, 1mois
 
fr:1 mois, 1mois
 +
nl:1 maand, 1maand
 
numeric_number_of_months_after_opening:en:1
 
numeric_number_of_months_after_opening:en:1
  
 
en:2 months, 2months, 2 M, 2M, 2
 
en:2 months, 2months, 2 M, 2M, 2
 
fr:2 mois, 2mois
 
fr:2 mois, 2mois
 +
nl:2 maanden, 2maanden
 
numeric_number_of_months_after_opening:en:2
 
numeric_number_of_months_after_opening:en:2
  
 
en:3 months, 3months, 3 M, 3M, 3
 
en:3 months, 3months, 3 M, 3M, 3
 
fr:3 mois, 3mois
 
fr:3 mois, 3mois
 +
nl:3 maanden, 3maanden
 
numeric_number_of_months_after_opening:en:3
 
numeric_number_of_months_after_opening:en:3
  
 
en:4 months, 4months, 4 M, 4M, 4
 
en:4 months, 4months, 4 M, 4M, 4
 
fr:4 mois, 4mois
 
fr:4 mois, 4mois
 +
nl:4 maanden, 4maanden
 
numeric_number_of_months_after_opening:en:4
 
numeric_number_of_months_after_opening:en:4
  

Latest revision as of 10:19, 30 April 2020


How it works

Taxonomy for the Period (of time) After Opening (PAO).

https://en.wikipedia.org/wiki/Period-after-opening_symbol

For more details, see OBF:Global taxonomies


Current status

  • Feb 26th 2016: started

Script

The taxonomy is generated with this script:


#!/usr/bin/perl -w

use strict;

my $entry_format = <<TXT
en:<i> months, <i>months, <i> M, <i>M, <i>
de:<i> Monate, <i>Monate
fr:<i> mois, <i>mois
nl:<i> maanden, <i>maanden
zh:<i> 个月
numeric_number_of_months_after_opening:en:<i>
TXT
;

for (my $i = 1; $i <= 4 * 12; $i++) {

	my $entry = $entry_format;
	$entry =~ s/<i>/$i/g;
	print $entry . "\n";
}

Singular

de:1 Monat
en:1 month, 1month
fr:1 mois, 1mois
nl:1 maand, 1maand

Unsupported languages

Support for traditional Chinese: zh: 個月

Taxonomy definition

Note:

numeric_number_of_months_after_opening:en:1 will assign value 1 to the field number_of_months_after_opening of the product when a product has the corresponding tag.


en:1 month, 1month, 1 M, 1M, 1
fr:1 mois, 1mois
nl:1 maand, 1maand
numeric_number_of_months_after_opening:en:1

en:2 months, 2months, 2 M, 2M, 2
fr:2 mois, 2mois
nl:2 maanden, 2maanden
numeric_number_of_months_after_opening:en:2

en:3 months, 3months, 3 M, 3M, 3
fr:3 mois, 3mois
nl:3 maanden, 3maanden
numeric_number_of_months_after_opening:en:3

en:4 months, 4months, 4 M, 4M, 4
fr:4 mois, 4mois
nl:4 maanden, 4maanden
numeric_number_of_months_after_opening:en:4

en:5 months, 5months, 5 M, 5M, 5
fr:5 mois, 5mois
numeric_number_of_months_after_opening:en:5

en:6 months, 6months, 6 M, 6M, 6
fr:6 mois, 6mois
numeric_number_of_months_after_opening:en:6

en:7 months, 7months, 7 M, 7M, 7
fr:7 mois, 7mois
numeric_number_of_months_after_opening:en:7

en:8 months, 8months, 8 M, 8M, 8
fr:8 mois, 8mois
numeric_number_of_months_after_opening:en:8

en:9 months, 9months, 9 M, 9M, 9
fr:9 mois, 9mois
numeric_number_of_months_after_opening:en:9

en:10 months, 10months, 10 M, 10M, 10
fr:10 mois, 10mois
numeric_number_of_months_after_opening:en:10

en:11 months, 11months, 11 M, 11M, 11
fr:11 mois, 11mois
numeric_number_of_months_after_opening:en:11

en:12 months, 12months, 12 M, 12M, 12
fr:12 mois, 12mois
numeric_number_of_months_after_opening:en:12

en:13 months, 13months, 13 M, 13M, 13
fr:13 mois, 13mois
numeric_number_of_months_after_opening:en:13

en:14 months, 14months, 14 M, 14M, 14
fr:14 mois, 14mois
numeric_number_of_months_after_opening:en:14

en:15 months, 15months, 15 M, 15M, 15
fr:15 mois, 15mois
numeric_number_of_months_after_opening:en:15

en:16 months, 16months, 16 M, 16M, 16
fr:16 mois, 16mois
numeric_number_of_months_after_opening:en:16

en:17 months, 17months, 17 M, 17M, 17
fr:17 mois, 17mois
numeric_number_of_months_after_opening:en:17

en:18 months, 18months, 18 M, 18M, 18
fr:18 mois, 18mois
numeric_number_of_months_after_opening:en:18

en:19 months, 19months, 19 M, 19M, 19
fr:19 mois, 19mois
numeric_number_of_months_after_opening:en:19

en:20 months, 20months, 20 M, 20M, 20
fr:20 mois, 20mois
numeric_number_of_months_after_opening:en:20

en:21 months, 21months, 21 M, 21M, 21
fr:21 mois, 21mois
numeric_number_of_months_after_opening:en:21

en:22 months, 22months, 22 M, 22M, 22
fr:22 mois, 22mois
numeric_number_of_months_after_opening:en:22

en:23 months, 23months, 23 M, 23M, 23
fr:23 mois, 23mois
numeric_number_of_months_after_opening:en:23

en:24 months, 24months, 24 M, 24M, 24
fr:24 mois, 24mois
numeric_number_of_months_after_opening:en:24

en:25 months, 25months, 25 M, 25M, 25
fr:25 mois, 25mois
numeric_number_of_months_after_opening:en:25

en:26 months, 26months, 26 M, 26M, 26
fr:26 mois, 26mois
numeric_number_of_months_after_opening:en:26

en:27 months, 27months, 27 M, 27M, 27
fr:27 mois, 27mois
numeric_number_of_months_after_opening:en:27

en:28 months, 28months, 28 M, 28M, 28
fr:28 mois, 28mois
numeric_number_of_months_after_opening:en:28

en:29 months, 29months, 29 M, 29M, 29
fr:29 mois, 29mois
numeric_number_of_months_after_opening:en:29

en:30 months, 30months, 30 M, 30M, 30
fr:30 mois, 30mois
numeric_number_of_months_after_opening:en:30

en:31 months, 31months, 31 M, 31M, 31
fr:31 mois, 31mois
numeric_number_of_months_after_opening:en:31

en:32 months, 32months, 32 M, 32M, 32
fr:32 mois, 32mois
numeric_number_of_months_after_opening:en:32

en:33 months, 33months, 33 M, 33M, 33
fr:33 mois, 33mois
numeric_number_of_months_after_opening:en:33

en:34 months, 34months, 34 M, 34M, 34
fr:34 mois, 34mois
numeric_number_of_months_after_opening:en:34

en:35 months, 35months, 35 M, 35M, 35
fr:35 mois, 35mois
numeric_number_of_months_after_opening:en:35

en:36 months, 36months, 36 M, 36M, 36
fr:36 mois, 36mois
numeric_number_of_months_after_opening:en:36

en:37 months, 37months, 37 M, 37M, 37
fr:37 mois, 37mois
numeric_number_of_months_after_opening:en:37

en:38 months, 38months, 38 M, 38M, 38
fr:38 mois, 38mois
numeric_number_of_months_after_opening:en:38

en:39 months, 39months, 39 M, 39M, 39
fr:39 mois, 39mois
numeric_number_of_months_after_opening:en:39

en:40 months, 40months, 40 M, 40M, 40
fr:40 mois, 40mois
numeric_number_of_months_after_opening:en:40

en:41 months, 41months, 41 M, 41M, 41
fr:41 mois, 41mois
numeric_number_of_months_after_opening:en:41

en:42 months, 42months, 42 M, 42M, 42
fr:42 mois, 42mois
numeric_number_of_months_after_opening:en:42

en:43 months, 43months, 43 M, 43M, 43
fr:43 mois, 43mois
numeric_number_of_months_after_opening:en:43

en:44 months, 44months, 44 M, 44M, 44
fr:44 mois, 44mois
numeric_number_of_months_after_opening:en:44

en:45 months, 45months, 45 M, 45M, 45
fr:45 mois, 45mois
numeric_number_of_months_after_opening:en:45

en:46 months, 46months, 46 M, 46M, 46
fr:46 mois, 46mois
numeric_number_of_months_after_opening:en:46

en:47 months, 47months, 47 M, 47M, 47
fr:47 mois, 47mois
numeric_number_of_months_after_opening:en:47

en:48 months, 48months, 48 M, 48M, 48
fr:48 mois, 48mois
numeric_number_of_months_after_opening:en:48