diff options
author | rbuj <[email protected]> | 2021-02-08 12:21:57 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2021-02-09 10:27:40 +0100 |
commit | 259e70cab9bbcaec93b106df587f33681238ba50 (patch) | |
tree | 9021c748ea5c328a8b6176437b6aac5a057f0c39 /src/dlg-update.c | |
parent | 0ff5527f5b057d26e75ea7c44ec4ea809c140cdc (diff) | |
download | engrampa-259e70cab9bbcaec93b106df587f33681238ba50.tar.bz2 engrampa-259e70cab9bbcaec93b106df587f33681238ba50.tar.xz |
i18n: use g_dngettext instead of ngettext
Diffstat (limited to 'src/dlg-update.c')
-rw-r--r-- | src/dlg-update.c | 22 |
1 files changed, 13 insertions, 9 deletions
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 <config.h> +#include <glib/gi18n.h> + #include <string.h> #include <gtk/gtk.h> #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); } |