[gnome-sudoku] Fix translation of about dialog



commit cc828d13f414f6a7c0655159f5b71da113e040c9
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Sun Oct 1 13:31:46 2017 +0200

    Fix translation of about dialog
    
    Vala unhelpfully translates the result of g_strdup_printf, rather than
    the input as we would expect. That's not very useful.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=788387

 src/gnome-sudoku.vala |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-sudoku.vala b/src/gnome-sudoku.vala
index d7fa514..8f268a7 100644
--- a/src/gnome-sudoku.vala
+++ b/src/gnome-sudoku.vala
@@ -598,12 +598,14 @@ public class Sudoku : Gtk.Application
 
     private void about_cb ()
     {
+        var localized_comments_format = _("The popular Japanese logic puzzle\n\nPuzzles generated by QQwing 
%s");
+
         show_about_dialog (window,
                                "program-name", _("Sudoku"),
                                "logo-icon-name", "gnome-sudoku",
                                "version", VERSION,
                                /* Appears on the About dialog. %s is the version of the QQwing puzzle 
generator in use. */
-                               "comments", _("The popular Japanese logic puzzle\n\nPuzzles generated by 
QQwing %s".printf (SudokuGenerator.qqwing_version ())),
+                               "comments", localized_comments_format.printf (SudokuGenerator.qqwing_version 
()),
                                "copyright", "Copyright © 2005–2008 Thomas M. Hinkle\nCopyright © 2010–2011 
Robert Ancell\nCopyright © 2014 Parin Porecha",
                                "license-type", License.GPL_3_0,
                                "authors", authors,


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