[gnome-klotski] Translate all the About dialog.



commit a7b210d515429954f0339cb2a72164ea375a89a4
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Fri Feb 7 19:53:08 2020 +0100

    Translate all the About dialog.

 src/gnome-klotski.vala | 25 +++++++++++++++++++++----
 1 file changed, 21 insertions(+), 4 deletions(-)
---
diff --git a/src/gnome-klotski.vala b/src/gnome-klotski.vala
index 45e27f7..a960f3f 100644
--- a/src/gnome-klotski.vala
+++ b/src/gnome-klotski.vala
@@ -123,13 +123,30 @@ private class Klotski : Gtk.Application
 
     private void about_cb ()
     {
-        const string authors [] = { "Lars Rydlinge (original author)", "Robert Ancell (port to vala)", "John 
Cheetham (port to vala)", null };
-        const string documenters [] = { "Andrew Sobala", null };
+        string [] authors = {
+        /* Translators: text crediting an author, in the about dialog */
+            _("Lars Rydlinge (original author)"),
+
+
+        /* Translators: text crediting an author, in the about dialog */
+            _("Robert Ancell (port to vala)"),
+
+
+        /* Translators: text crediting an author, in the about dialog */
+            _("John Cheetham (port to vala)")
+        };
+
+        /* Translators: text crediting a documenter, in the about dialog */
+        string [] documenters = { _("Andrew Sobala") };
 
         show_about_dialog (get_active_window (),
+                           /* Translators: name of the program, seen in the About dialog */
                            "program-name", _("Klotski"),
+
                            "version", VERSION,
+                           /* Translators: small description of the game, seen in the About dialog */
                            "comments", _("Sliding block puzzles"),
+
                            "copyright",
                              /* Translators: text crediting a maintainer, seen in the About dialog */
                              _("Copyright \xc2\xa9 1999-2008 – Lars Rydlinge") + "\n"+
@@ -144,10 +161,10 @@ private class Klotski : Gtk.Application
                            "license-type", License.GPL_3_0,
                            "authors", authors,
                            "documenters", documenters,
+                           /* Translators: about dialog text; this string should be replaced by a text 
crediting yourselves and your translation team, or should be left empty. Do not translate literally! */
                            "translator-credits", _("translator-credits"),
                            "logo-icon-name", "org.gnome.Klotski",
-                           "website", "https://wiki.gnome.org/Apps/Klotski";,
-                           null);
+                           "website", "https://wiki.gnome.org/Apps/Klotski";);
     }
 
     private void quit_cb ()


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