[gnome-chess] timer: use LTR character and mark for translation
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-chess] timer: use LTR character and mark for translation
- Date: Sat, 21 Jun 2014 23:07:28 +0000 (UTC)
commit bf73f7c85b776f935249e42ce284e638907e46a3
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sat Jun 21 18:06:21 2014 -0500
timer: use LTR character and mark for translation
src/gnome-chess.vala | 18 ++++++++++++++++--
1 files changed, 16 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index b56cf5c..14caf9a 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -1470,9 +1470,23 @@ public class Application : Gtk.Application
time = game.clock.black_initial_seconds - game.clock.black_seconds_used;
if (time >= 60)
- return "%d∶%02d".printf (time / 60, time % 60);
+ {
+ /* Translators: timer labels in the bottom-right. (Change your preferences
+ * to enable timed games.) The first %d is minutes and the %02d at the end
+ * is seconds. In the middle is a ratio character and a LTR order mark to
+ * force minutes on the left of the ratio in RTL layouts. You probably do
+ * not need to change this, but I'm told you might.... */
+ return _("%d\xE2\x88\xB6\xE2\x80\x8E%02d").printf (time / 60, time % 60);
+ }
else
- return "∶%02d".printf (time);
+ {
+ /* Translators: timer labels in the bottom-right. (Change your preferences
+ * to enable timed games.) Less than a minute is left. The %02d at the end
+ * is seconds. Before that is a ratio character and a LTR order mark to
+ * force minutes on the left of the ratio in RTL layouts. You probably do
+ * not need to change this, but I'm told you might.... */
+ return _("\xE2\x88\xB6\xE2\x80\x8E%02d").printf (time);
+ }
}
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]