Skip to content

Commit

Permalink
fix: "Dry" not being recognized as a processing type (#6636)
Browse files Browse the repository at this point in the history
* Add test to replicate the issue with "Dry"

* Add dry as a synonym for dried processing type
  • Loading branch information
yuktea authored Apr 17, 2022
1 parent 3a96a38 commit 554f69a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
12 changes: 11 additions & 1 deletion t/ingredients_processing.t
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ my @tests = (
'text' => 'haricots blancs'
}
]
],
],

# test for jus and concentré with extra "de"
# [ { lc => "fr", ingredients_text => "jus concentré de baies de sureau"},
Expand Down Expand Up @@ -1368,6 +1368,16 @@ my @tests = (
],


[ { lc => "en", ingredients_text => "dry whey" },
[
{
'id' => 'en:whey',
'processing' => 'en:dried',
'text' => 'whey'
}
]
],

[ { lc => "es", ingredients_text => "pimientos amarillos deshidratados" },
[
{
Expand Down
8 changes: 4 additions & 4 deletions taxonomies/ingredients_processing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ ro:din concentrat
sk:z koncentrátu
sv:från koncentrat

en:dried
en:dried, dry
ar:مجف
bg:изсушен, изсушено, изсушена, изсушени, сушен, сушено, сушена, сушени
ca:dessecade, dessecades, dessecats, dessecat
Expand Down Expand Up @@ -1120,7 +1120,7 @@ de:parboiled
es:parboiled
fi:parboil-käsitelty
it:parboiled
pt:parboilizado, parboilizada, parboilizados, parboilizadas,
pt:parboilizado, parboilizada, parboilizados, parboilizadas,

# prepare (vegetables) for freezing or further cooking by immersing briefly in boiling water.
# comment:sometimes it seems to mean "the skin removed", used for almonds. Related to en:bleached?
Expand Down Expand Up @@ -1363,7 +1363,7 @@ bg:захаросано, захаросан, захаросана, захаро
de:gezuckert, gezuckerte, gezuckerter, gezuckertes
es:azucarado,azucarada,azucarados,azucaradas
fi:sokeroitu, sokeroidut, sokeroitua, sokeroituja
fr:sucré, sucrée, sucrés, sucrées, sucree, sucrees
fr:sucré, sucrée, sucrés, sucrées, sucree, sucrees
#better not add fr:sucre and fr:sucres
hu:cukrozott
nl:gesuikerd, gesuikerde
Expand Down Expand Up @@ -1497,7 +1497,7 @@ en:fermented
bg:ферментирало, ферментирал, ферментирала, ферментирали
es:fermentado
hu:fermentált
pt:fermentado, fermentada, fermentados, fermentadas
pt:fermentado, fermentada, fermentados, fermentadas

en:marinated
bg:мариновано, маринован, маринована, мариновани
Expand Down

0 comments on commit 554f69a

Please sign in to comment.