[libshumate/tintou/i18n-fix: 3/3] scale: Add comments for translators to understand what m/km/ft/mi mean here
- From: Corentin Noël <corentinnoel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libshumate/tintou/i18n-fix: 3/3] scale: Add comments for translators to understand what m/km/ft/mi mean here
- Date: Sun, 15 May 2022 09:47:56 +0000 (UTC)
commit 7a5b4da1002266a3222441da0af113703b1fb5a7
Author: Corentin Noël <corentin noel collabora com>
Date: Sun May 15 11:36:56 2022 +0200
scale: Add comments for translators to understand what m/km/ft/mi mean here
shumate/shumate-scale.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/shumate/shumate-scale.c b/shumate/shumate-scale.c
index 1062383..ecf020e 100644
--- a/shumate/shumate-scale.c
+++ b/shumate/shumate-scale.c
@@ -193,15 +193,19 @@ shumate_scale_on_scale_changed (ShumateScale *self)
gtk_widget_set_size_request (self->imperial_label, imperial_scale_width, -1);
if (metric_is_small_unit)
+ // m is the unit for meters
metric_label = g_strdup_printf (_("%d m"), (int) metric_base);
else
+ // km is the unit for kilometers
metric_label = g_strdup_printf (_("%d km"), (int) metric_base);
gtk_label_set_label (GTK_LABEL (self->metric_label), metric_label);
if (imperial_is_small_unit)
+ // ft is the unit for feet
imperial_label = g_strdup_printf (_("%d ft"), (int) imperial_base);
else
+ // mi is the unit for miles
imperial_label = g_strdup_printf (_("%d mi"), (int) imperial_base);
gtk_label_set_label (GTK_LABEL (self->imperial_label), imperial_label);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]