[four-in-a-row] Improve a translatable string



commit aa105c6348029d2e9766cf7aa7aca42b2611ae5e
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Tue Feb 5 14:21:43 2019 -0600

    Improve a translatable string
    
    We should not just append the column number to the string, since that
    prevents translators from reordering it. Patch by Claude Paroz.
    
    Fixes #11

 src/four-in-a-row.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/four-in-a-row.vala b/src/four-in-a-row.vala
index d7ddcb9..8dfa783 100644
--- a/src/four-in-a-row.vala
+++ b/src/four-in-a-row.vala
@@ -512,7 +512,7 @@ class FourInARow : Gtk.Application {
 
         blink_tile(0, c, game_board[0, c], 6);
 
-        s = _("Hint: Column ")+ (c + 1).to_string();
+        s = _("Hint: Column %d").printf(c + 1);
         set_status_message(s);
 
         if (moves <= 0 || (moves == 1 && is_player_human()))


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