[gnome-calculator] Fixed feet-based speed units name, added mph and kph shortcuts (fixes #180)



commit 7928315f6258f6d8d5dd3f39d43e4f6af4c846b8
Author: Robert Roth <robert roth off gmail com>
Date:   Thu Sep 24 09:37:10 2020 +0300

    Fixed feet-based speed units name, added mph and kph shortcuts (fixes #180)

 lib/unit.vala | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/lib/unit.vala b/lib/unit.vala
index 4552e4f9..153aff1f 100644
--- a/lib/unit.vala
+++ b/lib/unit.vala
@@ -58,10 +58,10 @@ public class UnitManager : Object
         length_category.add_unit (new Unit ("micrometer", _("Micrometers"), dpgettext2 (null, "unit-format", 
"%s μm"), "x/1000000", "1000000x", dpgettext2 (null, "unit-symbols", "micrometer,micrometers,um")));
         length_category.add_unit (new Unit ("nanometer", _("Nanometers"), dpgettext2 (null, "unit-format", 
"%s nm"), "x/1000000000", "1000000000x", dpgettext2 (null, "unit-symbols", "nanometer,nanometers,nm")));
         length_category.add_unit (new Unit ("point", _("Desktop Publishing Point"), dpgettext2 (null, 
"unit-format", "%s pt"), "0.000352777778x", "x/0.000352777778", dpgettext2 (null, "unit-symbols", 
"point,pt,points,pts")));
-        speed_category.add_unit (new Unit ("kilometers-hour", _("Kilometers per hour"), dpgettext2 (null, 
"unit-format", "%s km/h"), "x/3.6", "3.6x", dpgettext2 (null, "unit-symbols", "kilometers per 
hour,kmph,kmh")));
-        speed_category.add_unit (new Unit ("miles-hour", _("Miles per hour"), dpgettext2 (null, 
"unit-format", "%s miles/h"), "x/2.23693629", "2.23693629x", dpgettext2 (null, "unit-symbols", "milesph,miles 
per hour,mi/h,miph")));
+        speed_category.add_unit (new Unit ("kilometers-hour", _("Kilometers per hour"), dpgettext2 (null, 
"unit-format", "%s km/h"), "x/3.6", "3.6x", dpgettext2 (null, "unit-symbols", "kilometers per 
hour,kmph,kmh,kph")));
+        speed_category.add_unit (new Unit ("miles-hour", _("Miles per hour"), dpgettext2 (null, 
"unit-format", "%s miles/h"), "x/2.23693629", "2.23693629x", dpgettext2 (null, "unit-symbols", "milesph,miles 
per hour,mi/h,miph,mph")));
         speed_category.add_unit (new Unit ("meters-second", _("Meters per second"), dpgettext2 (null, 
"unit-format", "%s m/s"), "x", "x", dpgettext2 (null, "unit-symbols", "meters per second,mps")));
-        speed_category.add_unit (new Unit ("feet-second", _("Feets per second"), dpgettext2 (null, 
"unit-format", "%s feets/s"), "x/3.28084", "3.28084x", dpgettext2 (null, "unit-symbols", "fps,feets per 
second,feetsps")));
+        speed_category.add_unit (new Unit ("feet-second", _("Feet per second"), dpgettext2 (null, 
"unit-format", "%s feet/s"), "x/3.28084", "3.28084x", dpgettext2 (null, "unit-symbols", "fps,feet per 
second,feetps")));
         speed_category.add_unit (new Unit ("knot", _("Knots"), dpgettext2 (null, "unit-format", "%s kt"), 
"x/1.94384449", "1.94384449x", dpgettext2 (null, "unit-symbols", "kt,kn,nd,knot,knots")));
         area_category.add_unit (new Unit ("hectare", _("Hectares"), dpgettext2 (null, "unit-format", "%s 
ha"), "10000x", "x/10000", dpgettext2 (null, "unit-symbols", "hectare,hectares,ha")));
         area_category.add_unit (new Unit ("acre", _("Acres"), dpgettext2 (null, "unit-format", "%s acres"), 
"4046.8564224x", "x/4046.8564224", dpgettext2 (null, "unit-symbols", "acre,acres")));


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