[gnome-calculator] Added stone unit (bgo#789333)



commit 9006338ade1171bf9ca6628c964e170a96b702ee
Author: Robert Roth <robert roth off gmail com>
Date:   Wed Nov 1 16:24:37 2017 +0200

    Added stone unit (bgo#789333)

 lib/unit.vala |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/lib/unit.vala b/lib/unit.vala
index f4e0d49..66347d5 100644
--- a/lib/unit.vala
+++ b/lib/unit.vala
@@ -73,6 +73,7 @@ public class UnitManager : Object
         weight_category.add_unit (new Unit ("pound", _("Pounds"), dpgettext2 (null, "unit-format", "%s lb"), 
"0.45359237x", "x/0.45359237", dpgettext2 (null, "unit-symbols", "pound,pounds,lb")));
         weight_category.add_unit (new Unit ("ounce", _("Ounces"), dpgettext2 (null, "unit-format", "%s oz"), 
"0.02834952x", "x/0.02834952", dpgettext2 (null, "unit-symbols", "ounce,ounces,oz")));
         weight_category.add_unit (new Unit ("gram", _("Grams"), dpgettext2 (null, "unit-format", "%s g"), 
"0.001x", "1000x", dpgettext2 (null, "unit-symbols", "gram,grams,gramme,grammes,g")));
+        weight_category.add_unit (new Unit ("stone", _("Stone"), dpgettext2 (null, "unit-format", "%s st"), 
"6.350293x", "x/6.350293", dpgettext2 (null, "unit-symbols", "stone,st,stones")));
         duration_category.add_unit (new Unit ("year", _("Years"), dpgettext2 (null, "unit-format", "%s 
years"), "31557600x", "x/31557600", dpgettext2 (null, "unit-symbols", "year,years")));
         duration_category.add_unit (new Unit ("day", _("Days"), dpgettext2 (null, "unit-format", "%s days"), 
"86400x", "x/86400", dpgettext2 (null, "unit-symbols", "day,days")));
         duration_category.add_unit (new Unit ("hour", _("Hours"), dpgettext2 (null, "unit-format", "%s 
hours"), "3600x", "x/3600", dpgettext2 (null, "unit-symbols", "hour,hours")));


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