Skip to content

Commit

Permalink
fix: ingredient additions to norwegian bokmål (#9439)
Browse files Browse the repository at this point in the history
ingredient additions to norwegian bokmål
  • Loading branch information
odin-h authored Dec 1, 2023
1 parent 47be619 commit be477d2
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions lib/ProductOpener/Ingredients.pm
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,17 @@ my %abbreviations = (
["zgrud.", "zgrudnjavanja"],
],

nb => [["bl. a.", "blant annet"], ["inkl.", "inklusive"], ["papr.", "paprika"],],
nb => [
["bl. a.", "blant annet"],
["inkl.", "inklusive"],
["papr.", "paprika"],
["fullherdet kokos - og rapsolje", "fullherdet kokosolje og fullherdet rapsolje"],
["kons.middel", "konserveringsmiddel"],
["surhetsreg.midde", "surhetsregulerende middel"],
["mod.", "modifisert"],
["fort.middel", "fortykningsmiddel"],
["veg.", "vegetabilsk"],
],

ru => [
["в/с", "высшего сорта"], # or "высший сорт". = top grade, superfine. applied to flour.
Expand Down Expand Up @@ -2596,7 +2606,7 @@ sub parse_ingredients_text_service ($product_ref, $updated_product_fields_ref) {
'その他', # etc.
],

'nb' => ['^Pakket i beskyttende atmosfære$',],
'nb' => ['^Pakket i beskyttende atmosfære$', '^Minst \d+ ?% kakao',],

'nl' => [
'^allergie.informatie$', 'in wisselende verhoudingen',
Expand Down Expand Up @@ -4749,7 +4759,7 @@ my %phrases_after_ingredients_list = (
'Да се чува на темно место и на температура до', # Store in a dark place at a temperature of up to
],

nb => ['netto(?:innhold|vekt)', 'oppbevar(?:ing|es)', 'næringsinnhold', 'kjølevare',],
nb => ['netto(?:innhold|vekt)', 'oppbevar(?:ing|es)', 'næringsinnh[oa]ld', 'kjølevare',],

nl => [
'Beter Leven keurmerk 1 ster.',
Expand Down

0 comments on commit be477d2

Please sign in to comment.