[gimp] Bug 668077 - Plural forms



commit c02170391466b74f34a76053c5e7a8afcba19e51
Author: Michael Natterer <mitch gimp org>
Date:   Wed Jan 18 20:53:42 2012 +0100

    Bug 668077 - Plural forms
    
    The two plurals are always constant numbers, but use %d to substitute
    the constant. Add translator comments.

 plug-ins/common/file-gif-save.c |   10 +++++++---
 plug-ins/common/file-xmc.c      |    3 ++-
 2 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/plug-ins/common/file-gif-save.c b/plug-ins/common/file-gif-save.c
index 486a5c9..44285c3 100644
--- a/plug-ins/common/file-gif-save.c
+++ b/plug-ins/common/file-gif-save.c
@@ -2377,11 +2377,15 @@ comment_entry_callback (GtkTextBuffer *buffer)
   gtk_text_buffer_get_bounds (buffer, &start_iter, &end_iter);
   text = gtk_text_buffer_get_text (buffer, &start_iter, &end_iter, FALSE);
 
-  if (strlen (text) > 240)
+#define MAX_COMMENT 240
+
+  if (strlen (text) > MAX_COMMENT)
     {
-      g_message (_("The default comment is limited to %d characters."), 240);
+      /* translators: the %d is *always* 240 here */
+      g_message (_("The default comment is limited to %d characters."),
+                 MAX_COMMENT);
 
-      gtk_text_buffer_get_iter_at_offset (buffer, &start_iter, 240 - 1);
+      gtk_text_buffer_get_iter_at_offset (buffer, &start_iter, MAX_COMMENT - 1);
       gtk_text_buffer_get_end_iter (buffer, &end_iter);
 
       /*  this calls us recursivaly, but in the else branch
diff --git a/plug-ins/common/file-xmc.c b/plug-ins/common/file-xmc.c
index f358b07..56a07ce 100644
--- a/plug-ins/common/file-xmc.c
+++ b/plug-ins/common/file-xmc.c
@@ -2159,8 +2159,9 @@ make_framename (guint32   size,
       if (Counter[i].size == 0) /* the end of Counter elements */
         {
           if (i > MAX_SIZE_NUM)
-            { /* the number of different nominal size is over MAX_SIZE_NUM! */
+            {
               g_set_error (errorp, 0, 0,
+                           /* translators: the %i is *always* 8 here */
                            _("Sorry, this plug-in cannot handle a cursor "
                              "which contains over %i different nominal sizes."),
                            MAX_SIZE_NUM);



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