[gnome-software/gnome-3-26] lib: Add a comment for translators
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-26] lib: Add a comment for translators
- Date: Mon, 8 Jan 2018 20:31:07 +0000 (UTC)
commit 409d12f393bfd55fa2e668b16fb39146b0f91152
Author: Piotr Drąg <piotrdrag gmail com>
Date: Mon Dec 4 19:30:26 2017 +0100
lib: Add a comment for translators
Explaining how you can switch the currency order
to your locale’s convention.
https://bugzilla.gnome.org/show_bug.cgi?id=786704
lib/gs-price.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/lib/gs-price.c b/lib/gs-price.c
index 698d897..a0589b2 100644
--- a/lib/gs-price.c
+++ b/lib/gs-price.c
@@ -126,6 +126,8 @@ gs_price_to_string (GsPrice *price)
} else if (g_strcmp0 (price->currency, "USD") == 0) {
return g_strdup_printf (_("US$%.2f"), price->amount);
} else {
+ /* Translators: %s is the currency, and %f is the amount.
+ * You can switch the order by using “%2$f %1$s” instead. */
return g_strdup_printf (_("%s %f"), price->currency, price->amount);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]