[epiphany/wip/exalm/firefox-sync-min: 3/3] firefox-sync-dialog: Make %u min translatable
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/wip/exalm/firefox-sync-min: 3/3] firefox-sync-dialog: Make %u min translatable
- Date: Wed, 23 Feb 2022 18:37:15 +0000 (UTC)
commit f0c5b952934b9de88c30643c329b84f289e99862
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Wed Feb 23 16:24:45 2022 +0500
firefox-sync-dialog: Make %u min translatable
Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1078>
src/ephy-firefox-sync-dialog.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/ephy-firefox-sync-dialog.c b/src/ephy-firefox-sync-dialog.c
index 870ac997e..7d5b58d8c 100644
--- a/src/ephy-firefox-sync-dialog.c
+++ b/src/ephy-firefox-sync-dialog.c
@@ -699,7 +699,10 @@ create_sync_frequency_minutes_model ()
static gchar *
get_sync_frequency_minutes_name (HdyValueObject *value)
{
- return g_strdup_printf ("%u min", g_value_get_uint (hdy_value_object_get_value (value)));
+ guint n_minutes = g_value_get_uint (hdy_value_object_get_value (value));
+ const char *minutes_text = ngettext ("%u min", "%u mins", n_minutes);
+
+ return g_strdup_printf (minutes_text, n_minutes);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]