From 259e70cab9bbcaec93b106df587f33681238ba50 Mon Sep 17 00:00:00 2001 From: rbuj Date: Mon, 8 Feb 2021 12:21:57 +0100 Subject: i18n: use g_dngettext instead of ngettext --- src/dlg-update.c | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'src/dlg-update.c') diff --git a/src/dlg-update.c b/src/dlg-update.c index 177dfdb..2ceb675 100644 --- a/src/dlg-update.c +++ b/src/dlg-update.c @@ -21,6 +21,8 @@ */ #include +#include + #include #include #include "dlg-update.h" @@ -119,7 +121,7 @@ update_cb (GtkWidget *widget, static void update_file_list (DialogData *data) { - gboolean n_files; + guint n_files; GList *scan; GtkTreeIter iter; @@ -172,10 +174,11 @@ update_file_list (DialogData *data) /* secondary text */ - label = g_strdup_printf (ngettext ("The file has been modified with an external application. If you don't update the file in the archive, all of your changes will be lost.", - "%d files have been modified with an external application. If you don't update the files in the archive, all of your changes will be lost.", - n_files), - n_files); + label = g_strdup_printf (g_dngettext (GETTEXT_PACKAGE, + "The file has been modified with an external application. If you don't update the file in the archive, all of your changes will be lost.", + "%u files have been modified with an external application. If you don't update the files in the archive, all of your changes will be lost.", + (gulong) n_files), + n_files); gtk_label_set_text (GTK_LABEL (data->update_file_secondary_text_label), label); g_free (label); } @@ -200,10 +203,11 @@ update_file_list (DialogData *data) /* secondary text */ - label = g_strdup_printf (ngettext ("The file has been modified with an external application. If you don't update the file in the archive, all of your changes will be lost.", - "%d files have been modified with an external application. If you don't update the files in the archive, all of your changes will be lost.", - n_files), - n_files); + label = g_strdup_printf (g_dngettext (GETTEXT_PACKAGE, + "The file has been modified with an external application. If you don't update the file in the archive, all of your changes will be lost.", + "%u files have been modified with an external application. If you don't update the files in the archive, all of your changes will be lost.", + (gulong) n_files), + n_files); gtk_label_set_text (GTK_LABEL (data->update_files_secondary_text_label), label); g_free (label); } -- cgit v1.2.1