[recipes] Add 'glass' as a unit



commit 4c37c87589eec59a0e433b0837fc2681da18a4db
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jan 3 12:23:18 2017 -0500

    Add 'glass' as a unit
    
    Not sure if this is ideal, but at least it lets us parse the
    Donauwellen recipe without losing the cherries.

 src/gr-unit.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gr-unit.c b/src/gr-unit.c
index 2b9d323..dce2e60 100644
--- a/src/gr-unit.c
+++ b/src/gr-unit.c
@@ -26,7 +26,7 @@
 
 static const char * const unit_names[] = {
         "g", "kg", "lb", "oz", "l", "dl", "ml", "fl oz", "pt", "qt", "gal", "cup",
-        "tbsp", "tsp", "box", "pkg",
+        "tbsp", "tsp", "box", "pkg", "glass",
         NULL
 };
 
@@ -53,6 +53,7 @@ static GrUnit units[] = {
         { "tsp",   NC_("unit abbreviation", "tsp"),   NC_("unit name", "teaspoon") },
         { "box",   NC_("unit abbreviation", "box"),   NC_("unit name", "box") },
         { "pkg",   NC_("unit abbreviation", "pkg"),   NC_("unit name", "package") },
+        { "glass", NC_("unit abbreviation", "glass"), NC_("unit name", "glass") },
 };
 
 const char **


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]