[aisleriot] Remove extra gettext call



commit cf16c36e113d27b19266d67e238059f51ad08986
Author: Christian Persch <chpe gnome org>
Date:   Thu Apr 14 13:56:50 2011 +0200

    Remove extra gettext call
    
    The string is already translated on the scheme side, so don't
    run it through gettext again.

 src/game.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/src/game.c b/src/game.c
index 1485b12..4156f41 100644
--- a/src/game.c
+++ b/src/game.c
@@ -780,7 +780,7 @@ static SCM
 scm_set_statusbar_message (SCM message)
 {
   AisleriotGame *game = app_game;
-  char *str, *translated;
+  char *str;
 
   if (!scm_is_string (message))
     return SCM_EOL;
@@ -792,11 +792,7 @@ scm_set_statusbar_message (SCM message)
   if (!str)
     goto out;
 
-  /* FIXMEchpe: this looks bogus; the string is already translated on the scheme side */
-  translated = g_strstrip (g_strdup (_(str)));
-  g_signal_emit (game, signals[GAME_MESSAGE], 0, translated);
-
-  g_free (translated);
+  g_signal_emit (game, signals[GAME_MESSAGE], 0, str);
 
 out:
   scm_dynwind_end ();



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