[recipes] Add mm, cm and m to the units



commit 8f0dcc7a66b0b5563a43bebf0caaaf75eeca73bc
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue May 16 22:07:20 2017 -0400

    Add mm, cm and m to the units
    
    We have a recipe that uses cm, already.

 src/gr-unit.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gr-unit.c b/src/gr-unit.c
index dce2e60..7adf0a0 100644
--- a/src/gr-unit.c
+++ b/src/gr-unit.c
@@ -54,6 +54,9 @@ static GrUnit units[] = {
         { "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") },
+        { "mm",    NC_("unit abbreviation", "mm"),    NC_("unit name", "millimeter") },
+        { "cm",    NC_("unit abbreviation", "cm"),    NC_("unit name", "centimeter") },
+        { "m",     NC_("unit abbreviation", "m"),     NC_("unit name", "meter") },
 };
 
 const char **


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