[gnome-2048] Improve translators comments.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-2048] Improve translators comments.
- Date: Sat, 2 Feb 2019 11:42:45 +0000 (UTC)
commit b4edc8bf197e5772df5205d6eaba95090ffc7f5b
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Sat Feb 2 12:40:50 2019 +0100
Improve translators comments.
And change a translation in the
keyboard shorcuts dialog: using
"Play with arrows" for emphasis
on the fact that's not the only
way to play (gestures or WASD).
data/congrats.ui | 2 +-
data/help-overlay.ui | 19 +++++++++++--------
data/mainwindow.ui | 2 +-
src/application.vala | 16 +++++++++++++---
4 files changed, 26 insertions(+), 13 deletions(-)
---
diff --git a/data/congrats.ui b/data/congrats.ui
index 3f109cf..64ac731 100644
--- a/data/congrats.ui
+++ b/data/congrats.ui
@@ -50,7 +50,7 @@
<child type="action">
<object class="GtkButton" id="continue-button">
<property name="visible">True</property>
- <!-- Translators: button in the "Congratulations" dialog that appears (with default settings) when
you reach 2048; the player can continue playing after 2048 (with a mnemonic that appears pressing Alt) -->
+ <!-- Translators: button in the "Congratulations" dialog that appears (with default settings) when
you reach 2048; the player can continue playing after reaching 2048 (with a mnemonic that appears pressing
Alt) -->
<property name="label" translatable="yes">_Keep Playing</property>
<property name="use-underline">True</property>
<property name="can-default">True</property>
diff --git a/data/help-overlay.ui b/data/help-overlay.ui
index 421df08..5fa936b 100644
--- a/data/help-overlay.ui
+++ b/data/help-overlay.ui
@@ -25,12 +25,13 @@
<child>
<object class="GtkShortcutsGroup">
<property name="visible">True</property>
+ <!-- Translators: header of the "Play" and "Undo (if enabled)" shortcuts section -->
<property name="title" translatable="yes" context="shortcut window">Game</property>
<child>
<object class="GtkShortcutsShortcut">
<property name="visible">True</property>
<!-- Translators: the application has no help, so the use of arrows for playing is
documented here -->
- <property name="title" translatable="yes" context="shortcut window">Play</property>
+ <property name="title" translatable="yes" context="shortcut window">Play with
arrows</property>
<property name="accelerator">Left Up Right Down</property>
</object>
</child>
@@ -47,11 +48,12 @@
<child>
<object class="GtkShortcutsGroup">
<property name="visible">True</property>
+ <!-- Translators: header of the "Choose a new game" and "Start a new game" shortcuts section -->
<property name="title" translatable="yes" context="shortcut window">New game</property>
<child>
<object class="GtkShortcutsShortcut">
<property name="visible">True</property>
- <!-- Translators: that opens the New Game menu, that allow to choose the board size of the
next game -->
+ <!-- Translators: shortcut that opens the New Game menu, allowing to choose the board size
of the next game -->
<property name="title" translatable="yes" context="shortcut window">Choose a new
game</property>
<property name="accelerator"><Primary>n</property>
</object>
@@ -59,7 +61,7 @@
<child>
<object class="GtkShortcutsShortcut">
<property name="visible">True</property>
- <!-- Translators: that is an immediate start of a new game, with similar options -->
+ <!-- Translators: shortcut that starts immediately a new game, with similar options -->
<property name="title" translatable="yes" context="shortcut window">Start a new
game</property>
<property name="accelerator"><Shift><Primary>n</property>
</object>
@@ -69,11 +71,12 @@
<child>
<object class="GtkShortcutsGroup">
<property name="visible">True</property>
+ <!-- Translators: header of the "Toggle main menu," "Preferences," "Quit," etc. shortcuts
section -->
<property name="title" translatable="yes" context="shortcut window">Generic</property>
<child>
<object class="GtkShortcutsShortcut">
<property name="visible">True</property>
- <!-- Translators: toggles the hamburger menu -->
+ <!-- Translators: shortcut that toggles the hamburger menu -->
<property name="title" translatable="yes" context="shortcut window">Toggle main
menu</property>
<property name="accelerator">F10 Menu</property>
</object>
@@ -81,7 +84,7 @@
<child>
<object class="GtkShortcutsShortcut">
<property name="visible">True</property>
- <!-- Translators: opens Prefences dialog -->
+ <!-- Translators: shortcut that opens Prefences dialog -->
<property name="title" translatable="yes" context="shortcut window">Preferences</property>
<property name="accelerator"><Primary>e</property>
</object>
@@ -89,7 +92,7 @@
<child>
<object class="GtkShortcutsShortcut">
<property name="visible">True</property>
- <!-- Translators: opens Keyboard Shortcuts window -->
+ <!-- Translators: shortcut that opens Keyboard Shortcuts window -->
<property name="title" translatable="yes" context="shortcut window">Keyboard
shortcuts</property>
<property name="accelerator"><Primary>question <Primary>F1</property>
</object>
@@ -97,7 +100,7 @@
<child>
<object class="GtkShortcutsShortcut">
<property name="visible">True</property>
- <!-- Translators: opens About dialog -->
+ <!-- Translators: shortcut that opens About dialog -->
<property name="title" translatable="yes" context="shortcut window">About</property>
<property name="accelerator"><Shift>F1</property>
</object>
@@ -105,7 +108,7 @@
<child>
<object class="GtkShortcutsShortcut">
<property name="visible">True</property>
- <!-- Translators: quit application -->
+ <!-- Translators: shortcut that quits application -->
<property name="title" translatable="yes" context="shortcut window">Quit</property>
<property name="accelerator"><Primary>q</property>
</object>
diff --git a/data/mainwindow.ui b/data/mainwindow.ui
index d525ed7..224748b 100644
--- a/data/mainwindow.ui
+++ b/data/mainwindow.ui
@@ -28,7 +28,7 @@
<object class="GtkHeaderBar" id="headerbar">
<property name="visible">True</property>
<property name="can-focus">False</property>
- <!-- Translators: title of the window, displayed in the headerbar -->
+ <!-- Translators: title of the window, displayed in the headerbar (with a mnemonic that appears
pressing Alt) -->
<property name="title" translatable="yes">GNOME 2048</property>
<property name="show-close-button">True</property>
<child>
diff --git a/src/application.vala b/src/application.vala
index 54d3486..9442307 100644
--- a/src/application.vala
+++ b/src/application.vala
@@ -410,18 +410,28 @@ private class Application : Gtk.Application
GLib.Menu menu = new GLib.Menu ();
/* Translators: on main window, entry of the menu when clicking on the "New Game" button; to change
grid size to 3 × 3 */
- _append_new_game_item (_("3 × 3"), /* rows */ 3, /* cols */ 3, ref menu);
+ _append_new_game_item (_("3 × 3"),
+ /* rows */ 3,
+ /* cols */ 3,
+ ref menu);
/* Translators: on main window, entry of the menu when clicking on the "New Game" button; to change
grid size to 4 × 4 */
- _append_new_game_item (_("4 × 4"), /* rows */ 4, /* cols */ 4, ref menu);
+ _append_new_game_item (_("4 × 4"),
+ /* rows */ 4,
+ /* cols */ 4,
+ ref menu);
/* Translators: on main window, entry of the menu when clicking on the "New Game" button; to change
grid size to 5 × 5 */
- _append_new_game_item (_("5 × 5"), /* rows */ 5, /* cols */ 5, ref menu);
+ _append_new_game_item (_("5 × 5"),
+ /* rows */ 5,
+ /* cols */ 5,
+ ref menu);
int rows = _settings.get_int ("rows");
int cols = _settings.get_int ("cols");
bool disallowed_grid = is_disallowed_grid_size (ref rows, ref cols);
if (disallowed_grid)
+ /* Translators: command-line warning displayed if the user manually sets a invalid grid size */
warning (_("Grids of size 1 by 2 are disallowed."));
if (((rows != cols) && !disallowed_grid)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]