[gnome-calculator/leo.gillot/gnome-calculator-patch-1: 1/25] Add Rack Units to the unit conversions
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calculator/leo.gillot/gnome-calculator-patch-1: 1/25] Add Rack Units to the unit conversions
- Date: Thu, 30 Jan 2020 22:42:35 +0000 (UTC)
commit 287a33b77858bdd1e297fb387f8747c9de416b70
Author: Léo Gillot-Lamure <leo gillot navaati net>
Date: Fri Dec 6 16:47:52 2019 +0000
Add Rack Units to the unit conversions
lib/unit.vala | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/lib/unit.vala b/lib/unit.vala
index a211a769..6f75e6ea 100644
--- a/lib/unit.vala
+++ b/lib/unit.vala
@@ -42,6 +42,7 @@ public class UnitManager : Object
length_category.add_unit (new Unit ("parsec", _("Parsecs"), dpgettext2 (null, "unit-format", "%s
pc"), "30857000000000000x", "x/30857000000000000", dpgettext2 (null, "unit-symbols", "parsec,parsecs,pc")));
length_category.add_unit (new Unit ("lightyear", _("Light Years"), dpgettext2 (null, "unit-format",
"%s ly"), "9460730472580800x", "x/9460730472580800", dpgettext2 (null, "unit-symbols",
"lightyear,lightyears,ly")));
length_category.add_unit (new Unit ("astronomical-unit", _("Astronomical Units"), dpgettext2 (null,
"unit-format", "%s au"), "149597870691x", "x/149597870691", dpgettext2 (null, "unit-symbols", "au")));
+ length_category.add_unit (new Unit ("rack-unit", _("Rack Units"), dpgettext2 (null, "unit-format",
"%sU"), "x/22.4972", "22.4972x", dpgettext2 (null, "unit-symbols", "U")));
length_category.add_unit (new Unit ("nautical-mile", _("Nautical Miles"), dpgettext2 (null,
"unit-format", "%s nmi"), "1852x", "x/1852", dpgettext2 (null, "unit-symbols", "nmi")));
length_category.add_unit (new Unit ("mile", _("Miles"), dpgettext2 (null, "unit-format", "%s mi"),
"1609.344x", "x/1609.344", dpgettext2 (null, "unit-symbols", "mile,miles,mi")));
length_category.add_unit (new Unit ("kilometer", _("Kilometers"), dpgettext2 (null, "unit-format",
"%s km"), "1000x", "x/1000", dpgettext2 (null, "unit-symbols", "kilometer,kilometers,km,kms")));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]