[gnome-calculator] Added option to convert units of time: - Century - Decade
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calculator] Added option to convert units of time: - Century - Decade
- Date: Mon, 1 Feb 2021 07:42:32 +0000 (UTC)
commit 486d5c4b2310758a7265a4f6675a39bd46340426
Author: dave90dave <dave hulst gmail com>
Date: Sun Jan 31 18:07:38 2021 +0100
Added option to convert units of time:
- Century
- Decade
lib/unit.vala | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/lib/unit.vala b/lib/unit.vala
index 59e72027..73d73a18 100644
--- a/lib/unit.vala
+++ b/lib/unit.vala
@@ -84,6 +84,8 @@ public class UnitManager : Object
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 ("century", _("Centuries"), dpgettext2 (null, "unit-format",
"%s centuries"), "3155760000x", "x/3155760000", dpgettext2 (null, "unit-symbols", "century,centuries")));
+ duration_category.add_unit (new Unit ("decade", _("Decades"), dpgettext2 (null, "unit-format", "%s
decades"), "315576000x", "x/315576000", dpgettext2 (null, "unit-symbols", "decade,decades")));
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 ("month", _("Months"), dpgettext2 (null, "unit-format", "%s
months"), "2629800x", "x/2629800", dpgettext2 (null, "unit-symbols", "month,months")));
duration_category.add_unit (new Unit ("week", _("Weeks"), dpgettext2 (null, "unit-format", "%s
weeks"), "604800x", "x/604800", dpgettext2 (null, "unit-symbols", "week,weeks")));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]