Skip to content

Commit

Permalink
Merge pull request #818 from pando85/master
Browse files Browse the repository at this point in the history
Fixed translation
  • Loading branch information
ockham committed Nov 10, 2015
2 parents 4debc31 + bee19ef commit af1e0f9
Show file tree
Hide file tree
Showing 2 changed files with 117 additions and 133 deletions.
20 changes: 10 additions & 10 deletions gourmet/defaults/defaults_es.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
## files.

# TRANSLATOR WARNING: DO NOT TRANSLATE THE FIELD NAMES: ONLY THE VALUES!!!
fields={'cuisine': ['Español','Mejicano','Cubano','Argentino','Brazileño','Italiano','Griego',
'Chino','Francés','Vasco','Indio'],
fields={'cuisine': ['Española','Mejicana','Cubana','Argentina','Brazileña','Italiana','Griega',
'China','Francesa','Vasca','India', 'Inglesa'],
'rating' : ['Excelente','Muy Bueno','Bueno','Así Así','Malo'],
'source' : [],
'category' : ['Postre','Aperitivo','Ensalada','Sopa',
Expand Down Expand Up @@ -282,7 +282,7 @@
CONVERTER_TABLE = {
("tazas", "tbs."):16,
("libra", "onza"):16,
("cuchara", "cucharilla"):3,
("cucharada", "cucharadita"):3,
("pt.", "tazas"):2,
("qt.", "tazas"):4,
("galón", "quarto de galón"):4,
Expand All @@ -293,7 +293,7 @@
("onza", "g"):28.35,
("kg", "g"):1000,
("g", "mg"):1000,
("cucharilla", "drop"):76,
("cucharadita", "drop"):76,
# Are there translations for these units? Not really, they're english-imperial units, not adopted by Spain... :-)
# ("onza", "dram"):16,
# ("dram", "grains"):27.34375,
Expand Down Expand Up @@ -321,8 +321,8 @@
],
'imperial volume':[
#('drop',(0,10)),
('cucharilla',(0.125,3)),
('cuchara',(1,4)),
('cucharadita',(0.125,3)),
('cucharada',(1,4)),
('taza',(0.25,4)),
# ('pt.',(1,1)),
('quarto de galón',(1,3)),
Expand Down Expand Up @@ -368,8 +368,8 @@
# ["bushel", ["bushel", "bushels", "bsh.", "bu.", "bu", "bsh", "bshl", "bshl."]],
# ["grains", ["grain", "grains"]],
# ["dram", ["dram", "drams"]],
["cucharilla", ["cucharilla"]],
["cuchara", ["cuchara","tbs", "tbsp","tbsp.", "tablespoon", "table spoon", "tbsps.", "tablespoons", "Tablespoon", "T"]],
["cucharadita", ["cucharadita"]],
["cucharada", ["cucharada","tbs", "tbsp","tbsp.", "tablespoon", "table spoon", "tbsps.", "tablespoons", "Tablespoon", "T"]],
["libra", ["libra","libras"]],
["onza", ["onza","onzas"]],
["taza", ["taza","tazas"]],
Expand All @@ -394,14 +394,14 @@
## up in the dictionary referenced here (i.e. the density_table)
## currently, 'density' is the only keyword used
("pt.", "lb."):['density',1],
("cuchara", "onza"):['density',0.5],
("cucharada", "onza"):['density',0.5],
("taza", "onza"):['density',8],
# ("pt.", "onza"):['density',16],
("ml", "g"):['density',1]}

VOL_TO_MASS_TABLE = {
("pt.", "lb.") : 1,
("cuchara", "onza") : 0.5,
("cucharada", "onza") : 0.5,
("tazas", "onza") : 8,
("pt.", "onza") : 16,
("ml", "g") : 1,
Expand Down
Loading

0 comments on commit af1e0f9

Please sign in to comment.