[gnome-calculator] Adds metric cups to the volume conversions.\n\nThe reason I did not use American cups is due to the



commit d7f5e83654b63de2d67e3cfe3ac6dc2ca17fcc2e
Author: Lucy Coleclough <coleclough lucy gmail com>
Date:   Thu Oct 15 12:21:43 2020 +0000

    Adds metric cups to the volume conversions.\n\nThe reason I did not use American cups is due to the 
relatively small difference between the sizes, especially due to it being a rough unit in the first 
place.\n\nMetric cups seem the most internationally agreed standard of this useful measurement

 lib/unit.vala | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/lib/unit.vala b/lib/unit.vala
index 153aff1f..4d42f7b1 100644
--- a/lib/unit.vala
+++ b/lib/unit.vala
@@ -74,6 +74,7 @@ public class UnitManager : Object
         volume_category.add_unit (new Unit ("litre", _("Liters"), dpgettext2 (null, "unit-format", "%s L"), 
"x", "x", dpgettext2 (null, "unit-symbols", "litre,litres,liter,liters,L")));
         volume_category.add_unit (new Unit ("quart", _("US Quarts"), dpgettext2 (null, "unit-format", "%s 
qt"), "0.9463529x", "x/0.9463529", dpgettext2 (null, "unit-symbols", "quart,quarts,qt")));
         volume_category.add_unit (new Unit ("pint", _("US Pints"), dpgettext2 (null, "unit-format", "%s 
pt"), "0.4731765x", "x/0.4731765", dpgettext2 (null, "unit-symbols", "pint,pints,pt")));
+        volume_category.add_unit (new Unit ("cup", _("Metric Cups"), dpgettext2 (null, "unit-format", "%s 
cup"), "0.25x", "4x", dpgettext2 (null, "unit-symbols", "cup,cups,cp")));
         volume_category.add_unit (new Unit ("millilitre", _("Milliliters"), dpgettext2 (null, "unit-format", 
"%s mL"), "0.001x", "1000x", dpgettext2 (null, "unit-symbols", 
"millilitre,millilitres,milliliter,milliliters,mL,cm³")));
         volume_category.add_unit (new Unit ("microlitre", _("Microliters"), dpgettext2 (null, "unit-format", 
"%s μL"), "0.000001x", "1000000x", dpgettext2 (null, "unit-symbols", "mm³,μL,uL")));
         weight_category.add_unit (new Unit ("tonne", _("Tonnes"), dpgettext2 (null, "unit-format", "%s T"), 
"1000x", "x/1000", dpgettext2 (null, "unit-symbols", "tonne,tonnes")));


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