[five-or-more/gsoc-vala-port: 21/29] Rework translatable headbar hints
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [five-or-more/gsoc-vala-port: 21/29] Rework translatable headbar hints
- Date: Mon, 13 Aug 2018 05:50:57 +0000 (UTC)
commit 80a7bdce9ffca727e0272f91ff15cdfbad26d879
Author: Ruxandra Simion <ruxandra simion93 gmail com>
Date: Fri Aug 3 18:29:13 2018 +0300
Rework translatable headbar hints
src-vala/window.vala | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src-vala/window.vala b/src-vala/window.vala
index 9779ea0..0bff205 100644
--- a/src-vala/window.vala
+++ b/src-vala/window.vala
@@ -19,10 +19,10 @@ public class GameWindow : Gtk.ApplicationWindow
private ThemeRenderer? theme = null;
private Games.Scores.Context highscores;
- private const string status[] = {
- "Match five objects of the same type in a row to score!",
- "You can't move there!",
- "Game Over!",
+ private string[] status = {
+ _("Match five objects of the same type in a row to score!"),
+ _("You can't move there!"),
+ _("Game Over!"),
null
};
@@ -43,8 +43,8 @@ public class GameWindow : Gtk.ApplicationWindow
game.notify["n-cols"].connect ((s, p) => { grid_frame.set (game.n_cols, game.n_rows); });
game.notify["n-rows"].connect ((s, p) => { grid_frame.set (game.n_cols, game.n_rows); });
game.notify["score"].connect ((s, p) => { scorelabel.set_text (game.score.to_string ()); });
- game.notify["status-message"].connect ((s, p) => { set_status_message
(_(status[game.status_message])); });
- set_status_message (_(status[game.status_message]));
+ game.notify["status-message"].connect ((s, p) => { set_status_message (status[game.status_message]);
});
+ set_status_message (status[game.status_message]);
hbox.pack_start (grid_frame);
View game_view = new View (settings, game, theme);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]