[gnome-games] chess: Add note about adding castling move strings
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] chess: Add note about adding castling move strings
- Date: Wed, 9 Mar 2011 00:17:55 +0000 (UTC)
commit e16e4ae6fdb3750e8c8934ade7d83b62095be1ef
Author: Robert Ancell <robert ancell canonical com>
Date: Wed Mar 9 11:17:43 2011 +1100
chess: Add note about adding castling move strings
glchess/src/glchess.vala | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/glchess/src/glchess.vala b/glchess/src/glchess.vala
index d97a30b..033940c 100644
--- a/glchess/src/glchess.vala
+++ b/glchess/src/glchess.vala
@@ -598,6 +598,8 @@ public class Application
if (move.piece.player.color == Color.BLACK)
index += 36;
+ // FIXME: Use castling text e.g. "White castles kingside" (do for next release, we are in a string freeze)
+
var start = "%c%d".printf ('a' + move.f0, move.r0 + 1);
var end = "%c%d".printf ('a' + move.f1, move.r1 + 1);
move_text = _(human_descriptions[index]).printf (start, end);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]