[gnome-tetravex] Translate CLI strings.



commit 9f9b484e97810c5f3b76f479803c3cc9cd800eca
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Sat Nov 23 17:46:18 2019 +0100

    Translate CLI strings.

 src/cli.vala                |  49 ++++++++++++++-------
 src/gnome-tetravex-cli.vala | 101 ++++++++++++++++++++++++++++++++------------
 src/gnome-tetravex.vala     |  85 +++++++++++++++++++++++++------------
 3 files changed, 165 insertions(+), 70 deletions(-)
---
diff --git a/src/cli.vala b/src/cli.vala
index d156296..d745177 100644
--- a/src/cli.vala
+++ b/src/cli.vala
@@ -31,7 +31,9 @@ namespace CLI
 
         if ((game_size != int.MIN || colors != 10) && cli != "new")
         {
-            warning ("Game size and colors number can only be given for new puzzles.\n");
+            /* Translators: command-line error message, displayed if the user plays in CLI and tries to use 
the change the number of colors or the game size while not specifying a new game; try `gnome-tetravex --cli 
show --size 3` */
+            warning (_("Game size and colors number can only be given for new puzzles.") + "\n");
+            puzzle = new Puzzle (2, 10); /* garbage */
             return Posix.EXIT_FAILURE;
         }
 
@@ -83,39 +85,47 @@ namespace CLI
 
             case "up":
             case "l-up":
-                if (!cli_move_tiles (puzzle, new_puzzle, /* left board */ true, Direction.UP, "Cannot move 
up left-board tiles."))
+                /* Translators: command-line error message, displayed if the user plays in CLI and tries to 
use the “up” command while it cannot be performed; try `gnome-tetravex --cli new; gnome-tetravex --cli up` */
+                if (!cli_move_tiles (puzzle, new_puzzle, true, Direction.UP, _("Cannot move up left-board 
tiles.")))
                     return Posix.EXIT_FAILURE;
                 break;
             case "down":
             case "l-down":
-                if (!cli_move_tiles (puzzle, new_puzzle, /* left board */ true, Direction.DOWN, "Cannot move 
down left-board tiles."))
+                /* Translators: command-line error message, displayed if the user plays in CLI and tries to 
use the “down” command while it cannot be performed; try `gnome-tetravex --cli new; gnome-tetravex --cli 
down` */
+                if (!cli_move_tiles (puzzle, new_puzzle, true, Direction.DOWN, _("Cannot move down 
left-board tiles.")))
                     return Posix.EXIT_FAILURE;
                 break;
             case "left":
             case "l-left":
-                if (!cli_move_tiles (puzzle, new_puzzle, /* left board */ true, Direction.LEFT, "Cannot move 
left left-board tiles."))
+                /* Translators: command-line error message, displayed if the user plays in CLI and tries to 
use the “left” command while it cannot be performed; try `gnome-tetravex --cli new; gnome-tetravex --cli 
left` */
+                if (!cli_move_tiles (puzzle, new_puzzle, true, Direction.LEFT, _("Cannot move left 
left-board tiles.")))
                     return Posix.EXIT_FAILURE;
                 break;
             case "right":
             case "l-right":
-                if (!cli_move_tiles (puzzle, new_puzzle, /* left board */ true, Direction.RIGHT, "Cannot 
move right left-board tiles."))
+                /* Translators: command-line error message, displayed if the user plays in CLI and tries to 
use the “right” command while it cannot be performed; try `gnome-tetravex --cli new; gnome-tetravex --cli 
right` */
+                if (!cli_move_tiles (puzzle, new_puzzle, true, Direction.RIGHT, _("Cannot move right 
left-board tiles.")))
                     return Posix.EXIT_FAILURE;
                 break;
 
             case "r-up":
-                if (!cli_move_tiles (puzzle, new_puzzle, /* left board */ false, Direction.UP, "Cannot move 
up right-board tiles."))
+                /* Translators: command-line error message, displayed if the user plays in CLI and tries to 
use the “r-up” command while it cannot be performed; try `gnome-tetravex --cli new; gnome-tetravex --cli 
r-up` */
+                if (!cli_move_tiles (puzzle, new_puzzle, false, Direction.UP, _("Cannot move up right-board 
tiles.")))
                     return Posix.EXIT_FAILURE;
                 break;
             case "r-down":
-                if (!cli_move_tiles (puzzle, new_puzzle, /* left board */ false, Direction.DOWN, "Cannot 
move down right-board tiles."))
+                /* Translators: command-line error message, displayed if the user plays in CLI and tries to 
use the “r-down” command while it cannot be performed; try `gnome-tetravex --cli new; gnome-tetravex --cli 
r-down` */
+                if (!cli_move_tiles (puzzle, new_puzzle, false, Direction.DOWN, _("Cannot move down 
right-board tiles.")))
                     return Posix.EXIT_FAILURE;
                 break;
             case "r-left":
-                if (!cli_move_tiles (puzzle, new_puzzle, /* left board */ false, Direction.LEFT, "Cannot 
move left right-board tiles."))
+                /* Translators: command-line error message, displayed if the user plays in CLI and tries to 
use the “r-left” command while it cannot be performed; try `gnome-tetravex --cli new; gnome-tetravex --cli 
r-left` */
+                if (!cli_move_tiles (puzzle, new_puzzle, false, Direction.LEFT, _("Cannot move left 
right-board tiles.")))
                     return Posix.EXIT_FAILURE;
                 break;
             case "r-right":
-                if (!cli_move_tiles (puzzle, new_puzzle, /* left board */ false, Direction.RIGHT, "Cannot 
move right right-board tiles."))
+                /* Translators: command-line error message, displayed if the user plays in CLI and tries to 
use the “r-right” command while it cannot be performed; try `gnome-tetravex --cli new; gnome-tetravex --cli 
r-right` */
+                if (!cli_move_tiles (puzzle, new_puzzle, false, Direction.RIGHT, _("Cannot move right 
right-board tiles.")))
                     return Posix.EXIT_FAILURE;
                 break;
 
@@ -131,7 +141,8 @@ namespace CLI
                     puzzle.finish (/* duration */ 0);
                 else if (!puzzle.move_last_tile_if_possible ())
                 {
-                    warning ("Cannot finish automatically. If you want to give up and view the solution, use 
“solve”." + "\n");
+                    /* Translators: command-line error message, displayed if the user plays in CLI and tries 
to use the “finish” command while the saved puzzle cannot be automatically finished; try `gnome-tetravex 
--cli new; gnome-tetravex --cli finish` */
+                    warning (_("Cannot finish automatically. If you want to give up and view the solution, 
use “solve”.") + "\n");
                     return Posix.EXIT_FAILURE;
                 }
                 break;
@@ -159,18 +170,21 @@ namespace CLI
                 uint8 tile_2_y;
                 if (!parse_cli (cli, size, out tile_1_x, out tile_1_y, out tile_2_x, out tile_2_y))
                 {
-                    warning ("Cannot parse “--cli” command, aborting." + "\n");
+                    /* Translators: command-line error message, displayed if the string is not a known 
command nor a valid move instruction; try `gnome-tetravex --cli new; gnome-tetravex --cli A2838I8U` */
+                    warning (_("Cannot parse instruction, aborting.") + "\n");
                     return Posix.EXIT_FAILURE;
                 }
                 if (puzzle.get_tile (tile_1_x, tile_1_y) == null
                  && puzzle.get_tile (tile_2_x, tile_2_y) == null)
                 {
-                    warning ("Both given tiles are empty, aborting." + "\n");
+                    /* Translators: command-line error message, displayed if the user plays in CLI and tries 
to invert two empty tiles */
+                    warning (_("Both given tiles are empty, aborting.") + "\n");
                     return Posix.EXIT_FAILURE;
                 }
                 if (!puzzle.can_switch (tile_1_x, tile_1_y, tile_2_x, tile_2_y))
                 {
-                    warning ("Cannot swap the given tiles, aborting." + "\n");
+                    /* Translators: command-line error message, displayed if the user plays in CLI and tries 
to do an invalid move */
+                    warning (_("Cannot swap the given tiles, aborting.") + "\n");
                     print_board (puzzle, size);
                     return Posix.EXIT_FAILURE;
                 }
@@ -212,9 +226,11 @@ namespace CLI
     private static void puzzle_is_solved_message (bool alternative_message = false)
     {
         if (alternative_message)
-            warning ("Puzzle is already solved! If you want to start a new one, use “new”." + "\n");
+            /* Translators: command-line error message, displayed if the user tries to solve the puzzle 
using CLI (with the “solve” or “finish” commands), while the puzzle is already solved */
+            warning (_("Puzzle is already solved! If you want to start a new one, use “new”.") + "\n");
         else
-            warning ("Puzzle is solved! If you want to start a new one, use “new”." + "\n");
+            /* Translators: command-line error message, displayed if the user tries to do a move using CLI, 
while the puzzle is solved */
+            warning (_("Puzzle is solved! If you want to start a new one, use “new”.") + "\n");
     }
 
     private static void print_board (Puzzle puzzle, uint8 size)
@@ -258,7 +274,8 @@ namespace CLI
         }
         stdout.printf ("\n");
         if (puzzle.is_solved)
-            stdout.printf ("Puzzle is solved!\n\n");
+            /* Translators: command-line message, displayed when playing Tetravex in CLI under the board, if 
the puzzle was solved */
+            stdout.printf (_("Puzzle is solved!") + "\n\n");
     }
 
     private static bool parse_cli (string cli, uint8 size,
diff --git a/src/gnome-tetravex-cli.vala b/src/gnome-tetravex-cli.vala
index 129f9d3..dcc0ded 100644
--- a/src/gnome-tetravex-cli.vala
+++ b/src/gnome-tetravex-cli.vala
@@ -20,28 +20,9 @@
 
 private class TetravexCli : GLib.Application
 {
-    private string help_text = "\n  A1b2          " + "Invert two tiles, the one in A1, and the one in b2."
-                             + "\n                " + "An uppercase targets a tile from the initial board."
-                             + "\n                " + "A lowercase targets a tile in the left/final board."
-                             + "\n                " + "Digits specify the rows of the two tiles to invert."
-                             + "\n"
-                             + "\n  (nothing)     " + "Show the current puzzle. Alias: “status” or “show”."
-                             + "\n  new           " + "Create a new puzzle; for changing size, use --size."
-                             + "\n  solve         " + "Give up with current puzzle, and view the solution."
-                             + "\n"
-                             + "\n  finish        " + "Finish current puzzle, automatically. Alias: “end”."
-                             + "\n                " + "Works for puzzles solved right or if one tile left."
-                             + "\n"
-                             + "\n  up            " + "Move all left-board tiles up by one."
-                             + "\n  down          " + "Move all left-board tiles down by one."
-                             + "\n  left          " + "Move all left-board tiles left by one."
-                             + "\n  right         " + "Move all left-board tiles right by one."
-                             + "\n"
-                             + "\n  r-up          " + "Move all right-board tiles up by one."
-                             + "\n  r-down        " + "Move all right-board tiles down by one."
-                             + "\n  r-left        " + "Move all right-board tiles left by one."
-                             + "\n  r-right       " + "Move all right-board tiles right by one."
-                             + "\n";
+    /* Translators: command-line help message, seen when running `gnome-tetravex-cli help`; introduces an 
explaination of what will happen when no command is given; would be similar to “(no command)” or “(empty)”, 
for example */
+    private string nothing_text = _("(nothing)");
+    private string help_text;
 
     private const string KEY_GRID_SIZE = "grid-size";
 
@@ -93,8 +74,71 @@ private class TetravexCli : GLib.Application
     {
         Object (application_id: "org.gnome.TetravexCli", flags: ApplicationFlags.FLAGS_NONE);
 
-        set_option_context_parameter_string ("[COMMAND]");
-        set_option_context_description ("Available commands:" + help_text);
+        /* pad nothing_text with spaces */
+        if (nothing_text.length > 13)
+            nothing_text = "()";
+        nothing_text = "  " + nothing_text;
+        for (int x = nothing_text.length; x < 16; x++)
+            nothing_text += " ";
+
+        help_text = ""
+            /* Translators: command-line help message, seen when running `gnome-tetravex-cli help`; 
description of the action of the (as an example) “A1b2” command */
+            + "\n" + "  A1b2          " + _("Invert two tiles, the one in A1, and the one in b2.")
+
+            /* Translators: command-line help message, seen when running `gnome-tetravex-cli help`; 
explaination of the behavior of the (as an example) “A1b2” command; the meanings of a lowercase and of the 
digits are explained after */
+            + "\n" + "                " + _("An uppercase targets a tile from the initial board.")
+
+            /* Translators: command-line help message, seen when running `gnome-tetravex-cli help`; 
explaination of the behavior of the (as an example) “A1b2” command; the meanings of an uppercase and of the 
digits are explained before and after */
+            + "\n" + "                " + _("A lowercase targets a tile in the left/final board.")
+
+            /* Translators: command-line help message, seen when running `gnome-tetravex-cli help`; 
explaination of the behavior of the (as an example) “A1b2” command; the meanings of uppercases and lowercases 
are explained before */
+            + "\n" + "                " + _("Digits specify the rows of the two tiles to invert.")
+            + "\n"
+            /* Translators: command-line help message, seen when running `gnome-tetravex-cli help`; 
description of the action when no command is given or when the “show” or “status” commands are given */
+            + "\n" + nothing_text       + _("Show the current puzzle. Alias: “status” or “show”.")
+
+            /* Translators: command-line help message, seen when running `gnome-tetravex-cli help`; 
description of the action of the “new” command */
+            + "\n" + "  new           " + _("Create a new puzzle; for changing size, use --size.")
+
+            /* Translators: command-line help message, seen when running `gnome-tetravex-cli help`; 
description of the action of the “solve” command */
+            + "\n" + "  solve         " + _("Give up with current puzzle, and view the solution.")
+            + "\n"
+            /* Translators: command-line help message, seen when running `gnome-tetravex-cli help`; 
description of the action of the “finish” or “end” commands */
+            + "\n" + "  finish        " + _("Finish current puzzle, automatically. Alias: “end”.")
+
+            /* Translators: command-line help message, seen when running `gnome-tetravex-cli help`; 
explaination of the behavior of the “finish” or “end” commands; the command does something in two situations: 
if the puzzle has been solved in the right part of the board, and if there is only one tile remaining 
(“left”) on the right part of the board that could be moved automatically */
+            + "\n" + "                " + _("Works for puzzles solved right or if one tile left.")
+            + "\n"
+            /* Translators: command-line help message, seen when running `gnome-tetravex-cli help`; 
description of the action of the “up” command */
+            + "\n" + "  up            " + _("Move all left-board tiles up by one.")
+
+            /* Translators: command-line help message, seen when running `gnome-tetravex-cli help`; 
description of the action of the “down” command */
+            + "\n" + "  down          " + _("Move all left-board tiles down by one.")
+
+            /* Translators: command-line help message, seen when running `gnome-tetravex-cli help`; 
description of the action of the “left” command */
+            + "\n" + "  left          " + _("Move all left-board tiles left by one.")
+
+            /* Translators: command-line help message, seen when running `gnome-tetravex-cli help`; 
description of the action of the “right” command */
+            + "\n" + "  right         " + _("Move all left-board tiles right by one.")
+            + "\n"
+            /* Translators: command-line help message, seen when running `gnome-tetravex-cli help`; 
description of the action of the “r-up” command */
+            + "\n" + "  r-up          " + _("Move all right-board tiles up by one.")
+
+            /* Translators: command-line help message, seen when running `gnome-tetravex-cli help`; 
description of the action of the “r-down” command */
+            + "\n" + "  r-down        " + _("Move all right-board tiles down by one.")
+
+            /* Translators: command-line help message, seen when running `gnome-tetravex-cli help`; 
description of the action of the “r-left” command */
+            + "\n" + "  r-left        " + _("Move all right-board tiles left by one.")
+
+            /* Translators: command-line help message, seen when running `gnome-tetravex-cli help`; 
description of the action of the “r-right” command */
+            + "\n" + "  r-right       " + _("Move all right-board tiles right by one.")
+            + "\n";
+
+        /* Translators: command-line message, seen when running `gnome-tetravex-cli --help` */
+        set_option_context_parameter_string (_("[COMMAND]"));
+
+        /* Translators: command-line help message, seen when running `gnome-tetravex-cli --help`; 
introduction of a list of options */
+        set_option_context_description (_("Available commands:") + help_text);
         add_main_option_entries (option_entries);
     }
 
@@ -111,21 +155,21 @@ private class TetravexCli : GLib.Application
         if (game_size != int.MIN && (game_size < 2 || game_size > 6))
         {
             /* Translators: command-line error message, displayed on invalid game size request; see 
'gnome-tetravex-cli -s 1' */
-            stderr.printf (N_("Size could only be from 2 to 6.\n"));
+            stderr.printf (_("Size could only be from 2 to 6.") + "\n");
             return Posix.EXIT_FAILURE;
         }
 
         if (colors < 2 || colors > 10)
         {
             /* Translators: command-line error message, displayed for an invalid number of colors; see 
'gnome-tetravex-cli -c 1' */
-            stderr.printf (N_("There could only be between 2 and 10 colors.\n"));
+            stderr.printf (_("There could only be between 2 and 10 colors.") + "\n");
             return Posix.EXIT_FAILURE;
         }
 
         if (remaining [1] != null)
         {
             /* Translators: command-line error message, displayed for an invalid CLI command; see 
'gnome-tetravex-cli new A1b2' */
-            stderr.printf (N_("Failed to parse command-line arguments.\n"));
+            stderr.printf (_("Failed to parse command-line arguments.") + "\n");
             return Posix.EXIT_FAILURE;
         }
 
@@ -134,7 +178,8 @@ private class TetravexCli : GLib.Application
         if ((!) cli == "help" || (!) cli == "HELP")
         {
             stdout.printf ("\n");
-            stdout.printf ("To use `gnome-tetravex-cli`, pass as arg:");
+            /* Translators: command-line help message, seen when running `gnome-tetravex-cli help`; 
introduction of a list of options */
+            stdout.printf (_("To use `gnome-tetravex-cli`, pass as argument:"));
             stdout.printf (help_text);
             stdout.printf ("\n");
             return Posix.EXIT_SUCCESS;
diff --git a/src/gnome-tetravex.vala b/src/gnome-tetravex.vala
index 104d078..22fa996 100644
--- a/src/gnome-tetravex.vala
+++ b/src/gnome-tetravex.vala
@@ -164,21 +164,21 @@ private class Tetravex : Gtk.Application
         if (game_size != int.MIN && (game_size < 2 || game_size > 6))
         {
             /* Translators: command-line error message, displayed on invalid game size request; see 
'gnome-tetravex -s 1' */
-            stderr.printf (N_("Size could only be from 2 to 6.\n"));
+            stderr.printf (_("Size could only be from 2 to 6.") + "\n");
             return Posix.EXIT_FAILURE;
         }
 
         if (colors < 2 || colors > 10)
         {
             /* Translators: command-line error message, displayed for an invalid number of colors; see 
'gnome-tetravex -c 1' */
-            stderr.printf (N_("There could only be between 2 and 10 colors.\n"));
+            stderr.printf (_("There could only be between 2 and 10 colors.") + "\n");
             return Posix.EXIT_FAILURE;
         }
 
         if (remaining [0] != null)
         {
             /* Translators: command-line error message, displayed for an invalid CLI command; see 
'gnome-tetravex --cli new A1b2' */
-            stderr.printf (N_("Failed to parse command-line arguments.\n"));
+            stderr.printf (_("Failed to parse command-line arguments.") + "\n");
             return Posix.EXIT_FAILURE;
         }
 
@@ -186,29 +186,62 @@ private class Tetravex : Gtk.Application
         {
             if ((!) cli == "help" || (!) cli == "HELP")
             {
-                stdout.printf ("\n" + "To play GNOME Tetravex in command-line:");
-                stdout.printf ("\n  --cli A1b2    " + "Invert two tiles, the one in A1, and the one in b2.");
-                stdout.printf ("\n                " + "An uppercase targets a tile from the initial board.");
-                stdout.printf ("\n                " + "A lowercase targets a tile in the left/final board.");
-                stdout.printf ("\n                " + "Digits specify the rows of the two tiles to invert.");
-                stdout.printf ("\n");
-                stdout.printf ("\n  --cli         " + "Show the current puzzle. Alias: “status” or “show”.");
-                stdout.printf ("\n  --cli new     " + "Create a new puzzle; for changing size, use --size.");
-                stdout.printf ("\n  --cli solve   " + "Give up with current puzzle, and view the solution.");
-                stdout.printf ("\n");
-                stdout.printf ("\n  --cli finish  " + "Finish current puzzle, automatically. Alias: “end”.");
-                stdout.printf ("\n                " + "Works for puzzles solved right or if one tile left.");
-                stdout.printf ("\n");
-                stdout.printf ("\n  --cli up      " + "Move all left-board tiles up by one.");
-                stdout.printf ("\n  --cli down    " + "Move all left-board tiles down by one.");
-                stdout.printf ("\n  --cli left    " + "Move all left-board tiles left by one.");
-                stdout.printf ("\n  --cli right   " + "Move all left-board tiles right by one.");
-                stdout.printf ("\n");
-                stdout.printf ("\n  --cli r-up    " + "Move all right-board tiles up by one.");
-                stdout.printf ("\n  --cli r-down  " + "Move all right-board tiles down by one.");
-                stdout.printf ("\n  --cli r-left  " + "Move all right-board tiles left by one.");
-                stdout.printf ("\n  --cli r-right " + "Move all right-board tiles right by one.");
-                stdout.printf ("\n\n");
+                string help_string = ""
+                /* Translators: command-line help message, seen when running `gnome-tetravex --cli help`; 
introduction of a list of options */
+                    + "\n" + _("To play GNOME Tetravex in command-line:")
+
+                /* Translators: command-line help message, seen when running `gnome-tetravex --cli help`; 
description of the action of the “--cli A1b2” command */
+                    + "\n" + "  --cli A1b2    " + _("Invert two tiles, the one in A1, and the one in b2.")
+
+                /* Translators: command-line help message, seen when running `gnome-tetravex --cli help`; 
explaination of the behavior of the “--cli A1b2” command; the meanings of a lowercase and of the digits are 
explained after */
+                    + "\n" + "                " + _("An uppercase targets a tile from the initial board.")
+
+                /* Translators: command-line help message, seen when running `gnome-tetravex --cli help`; 
explaination of the behavior of the “--cli A1b2” command; the meanings of an uppercase and of the digits are 
explained before and after */
+                    + "\n" + "                " + _("A lowercase targets a tile in the left/final board.")
+
+                /* Translators: command-line help message, seen when running `gnome-tetravex --cli help`; 
explaination of the behavior of the “--cli A1b2” command; the meanings of uppercases and lowercases are 
explained before */
+                    + "\n" + "                " + _("Digits specify the rows of the two tiles to invert.")
+                    + "\n"
+                /* Translators: command-line help message, seen when running `gnome-tetravex --cli help`; 
description of the action of the “--cli” or “--cli show” or “--cli status” commands */
+                    + "\n" + "  --cli         " + _("Show the current puzzle. Alias: “status” or “show”.")
+
+                /* Translators: command-line help message, seen when running `gnome-tetravex --cli help`; 
description of the action of the “--cli new” command */
+                    + "\n" + "  --cli new     " + _("Create a new puzzle; for changing size, use --size.")
+
+                /* Translators: command-line help message, seen when running `gnome-tetravex --cli help`; 
description of the action of the “--cli solve” command */
+                    + "\n" + "  --cli solve   " + _("Give up with current puzzle, and view the solution.")
+                    + "\n"
+                /* Translators: command-line help message, seen when running `gnome-tetravex --cli help`; 
description of the action of the “--cli finish” or “--cli end” commands */
+                    + "\n" + "  --cli finish  " + _("Finish current puzzle, automatically. Alias: “end”.")
+
+                /* Translators: command-line help message, seen when running `gnome-tetravex --cli help`; 
explaination of the behavior of the “--cli finish” command; the command does something in two situations: if 
the puzzle has been solved in the right part of the board, and if there is only one tile remaining (“left”) 
on the right part of the board that could be moved automatically */
+                    + "\n" + "                " + _("Works for puzzles solved right or if one tile left.")
+                    + "\n"
+                /* Translators: command-line help message, seen when running `gnome-tetravex --cli help`; 
description of the action of the “--cli up” command */
+                    + "\n" + "  --cli up      " + _("Move all left-board tiles up by one.")
+
+                /* Translators: command-line help message, seen when running `gnome-tetravex --cli help`; 
description of the action of the “--cli down” command */
+                    + "\n" + "  --cli down    " + _("Move all left-board tiles down by one.")
+
+                /* Translators: command-line help message, seen when running `gnome-tetravex --cli help`; 
description of the action of the “--cli left” command */
+                    + "\n" + "  --cli left    " + _("Move all left-board tiles left by one.")
+
+                /* Translators: command-line help message, seen when running `gnome-tetravex --cli help`; 
description of the action of the “--cli right” command */
+                    + "\n" + "  --cli right   " + _("Move all left-board tiles right by one.")
+                    + "\n"
+                /* Translators: command-line help message, seen when running `gnome-tetravex --cli help`; 
description of the action of the “--cli r-up” command */
+                    + "\n" + "  --cli r-up    " + _("Move all right-board tiles up by one.")
+
+                /* Translators: command-line help message, seen when running `gnome-tetravex --cli help`; 
description of the action of the “--cli r-down” command */
+                    + "\n" + "  --cli r-down  " + _("Move all right-board tiles down by one.")
+
+                /* Translators: command-line help message, seen when running `gnome-tetravex --cli help`; 
description of the action of the “--cli r-left” command */
+                    + "\n" + "  --cli r-left  " + _("Move all right-board tiles left by one.")
+
+                /* Translators: command-line help message, seen when running `gnome-tetravex --cli help`; 
description of the action of the “--cli r-right” command */
+                    + "\n" + "  --cli r-right " + _("Move all right-board tiles right by one.")
+                    + "\n\n";
+                stdout.printf (help_string);
                 return Posix.EXIT_SUCCESS;
             }
             return CLI.play_cli ((!) cli, "org.gnome.Tetravex", out settings, out saved_game, out 
can_restore, out puzzle, ref colors, ref game_size);


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