[gimp] app, po: revert commit a0724783d8 and add a TRANSLATORS comment.



commit 9adeee9d25324f59b273216f5fa413d04f2a0bf1
Author: Jehan <jehan girinstud io>
Date:   Sat Mar 24 02:59:02 2018 +0100

    app, po: revert commit a0724783d8 and add a TRANSLATORS comment.
    
    Not using %d in the singular form of English does not prevent other
    languages to use %d in any form they wish to. This will still work and
    will still be replaced by the relevant number of images.
    So I revert commit a0724783d8 because it is just prettier (in English)
    to write "An image" rather than "1 image", but this does not mean you
    have to do the same in other languages! Adding a comment so that
    translators know about it.
    
    Also directly modify the msgid in the Polish and Russian translations
    which already translated this string, so that the translations does not
    end up unnecessarily fuzzy.

 app/gui/gui.c |    8 +++++++-
 po/pl.po      |    2 +-
 po/ru.po      |    2 +-
 3 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/app/gui/gui.c b/app/gui/gui.c
index bcbbb39..b23e4cb 100644
--- a/app/gui/gui.c
+++ b/app/gui/gui.c
@@ -340,7 +340,13 @@ gui_recover (gint n_recoveries)
                                      _("Eeek! It looks like GIMP recovered from a crash!"));
 
   gimp_message_box_set_text (GIMP_MESSAGE_BOX (box),
-                             ngettext ("%d image was salvaged from the crash. "
+                             /* TRANSLATORS: even if English singular form does
+                              * not use %d, you can use %d for translation in
+                              * any singular/plural form of your language if
+                              * suited. It will just work and be replaced by the
+                              * number of images as expected.
+                              */
+                             ngettext ("An image was salvaged from the crash. "
                                        "Do you want to try and recover it?",
                                        "%d images were salvaged from the crash. "
                                        "Do you want to try and recover them?",
diff --git a/po/pl.po b/po/pl.po
index f0bf053..fbf7bda 100644
--- a/po/pl.po
+++ b/po/pl.po
@@ -18222,7 +18222,7 @@ msgstr "GIMP został otwarty po awarii."
 #: ../app/gui/gui.c:343
 #, c-format
 msgid ""
-"%d image was salvaged from the crash. Do you want to try and recover it?"
+"An image was salvaged from the crash. Do you want to try and recover it?"
 msgid_plural ""
 "%d images were salvaged from the crash. Do you want to try and recover them?"
 msgstr[0] "%d obraz został uratowany z awarii. Spróbować go odzyskać?"
diff --git a/po/ru.po b/po/ru.po
index cace4b6..d2bbe9b 100644
--- a/po/ru.po
+++ b/po/ru.po
@@ -18071,7 +18071,7 @@ msgstr "Ох, кажется, GIMP в прошлый раз упал!"
 #: ../app/gui/gui.c:343
 #, c-format
 msgid ""
-"%d image was salvaged from the crash. Do you want to try and recover it?"
+"An image was salvaged from the crash. Do you want to try and recover it?"
 msgid_plural ""
 "%d images were salvaged from the crash. Do you want to try and recover them?"
 msgstr[0] "%d изображение было спасено после падения. Попробовать восстановить?"


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