summaryrefslogtreecommitdiff
path: root/src/dlg-update.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dlg-update.c')
-rw-r--r--src/dlg-update.c22
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);
}