[gimp] Bug 788175 - New string in file-pdf-load.c needs plurals.



commit f4d9aa00f12e5c7515c0aa363a176244f687453d
Author: Jehan <jehan girinstud io>
Date:   Tue Sep 26 23:43:55 2017 +0200

    Bug 788175 - New string in file-pdf-load.c needs plurals.

 plug-ins/common/file-pdf-load.c |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/plug-ins/common/file-pdf-load.c b/plug-ins/common/file-pdf-load.c
index 84febfb..5989ba0 100644
--- a/plug-ins/common/file-pdf-load.c
+++ b/plug-ins/common/file-pdf-load.c
@@ -491,9 +491,16 @@ run (const gchar      *name,
                                 {
                                   status = GIMP_PDB_EXECUTION_ERROR;
                                   g_set_error (&error, 0, 0,
-                                               _("PDF document '%s' has %d pages. Page %d is out of range."),
-                                               param[1].data.d_string, doc_n_pages,
-                                               param[5].data.d_int32array[i]);
+                                               /* TRANSLATORS: first argument is file name,
+                                                * second is out-of-range page number, third is
+                                                * number of pages. Specify order as in English if needed.
+                                                */
+                                               ngettext ("PDF document '%1$s' has a single page. Page %2$d 
is out of range.",
+                                                         "PDF document '%1$s' has %3$d pages. Page %2$d is 
out of range.",
+                                                         doc_n_pages),
+                                               param[1].data.d_string,
+                                               param[5].data.d_int32array[i],
+                                               doc_n_pages);
                                   break;
                                 }
                               else


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]