[gnome-video-arcade] Remove gettext calls from all g_message() strings.



commit e8a51a7a3e4e8892db6fbea82e02d13863d7de10
Author: Jordi Mallach <jordi sindominio net>
Date:   Thu May 12 04:16:52 2011 +0200

    Remove gettext calls from all g_message() strings.
    
    Matthew actually prefers that no g_log() are marked for translation.
    Revert previous changes and remove the rest that were already
    translatable.

 po/POTFILES.in       |    4 ----
 src/gva-categories.c |    4 ++--
 src/gva-db.c         |   19 +++++++++----------
 src/gva-history.c    |    4 ++--
 src/gva-nplayers.c   |    4 ++--
 src/gva-process.c    |    2 +-
 6 files changed, 16 insertions(+), 21 deletions(-)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index c23696e..8c03930 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -5,11 +5,8 @@
 data/gnome-video-arcade.desktop.in
 data/org.gnome.VideoArcade.gschema.xml.in
 src/gva-audit.c
-src/gva-db.c
-src/gva-categories.c
 src/gva-column-manager.c
 src/gva-columns.c
-src/gva-history.c
 src/gva-input-file.c
 src/gva-main.c
 src/gva-mame-common.c
@@ -20,7 +17,6 @@ src/gva-music-button.c
 src/gva-mute-button.c
 src/gva-nplayers.c
 src/gva-play-back.c
-src/gva-process.c
 src/gva-properties.c
 src/gva-tree-view.c
 src/gva-ui.c
diff --git a/src/gva-categories.c b/src/gva-categories.c
index ec710d6..28d70ac 100644
--- a/src/gva-categories.c
+++ b/src/gva-categories.c
@@ -68,8 +68,8 @@ gva_categories_init (GError **error)
         g_free (contents);
 #else
         g_message (
-                _("This program is not configured "
-                  "to show category information."));
+                "This program is not configured "
+                "to show category information.");
 #endif
 
         return success;
diff --git a/src/gva-db.c b/src/gva-db.c
index 00abef6..275af3e 100644
--- a/src/gva-db.c
+++ b/src/gva-db.c
@@ -1566,7 +1566,7 @@ db_parser_exit (GvaProcess *process,
                 gva_process_get_time_elapsed (process, &time_elapsed);
 
                 g_message (
-                        _("Database built in %ld.%ld seconds."),
+                        "Database built in %ld.%ld seconds.",
                         time_elapsed.tv_sec, time_elapsed.tv_usec / 100000);
         }
         else
@@ -2171,29 +2171,28 @@ gva_db_needs_rebuilt (void)
         /* Begin test cases for rebuilding the games database.
          * The macro tests whether the database SHOULD be rebuilt. */
 
-        reason = N_("the user requested it");
+        reason = "the user requested it";
         TEST_CASE (opt_build_database);
 
-        /* FIXME: string concatenation makes this untranslatable */
-        reason = PACKAGE_NAME N_("'s version changed");
+        reason = PACKAGE_NAME "'s version changed";
         TEST_CASE (gva_get_last_version () == NULL);
         TEST_CASE (strcmp (gva_get_last_version (), PACKAGE_VERSION) != 0);
 
-        reason = N_("the database does not have a build ID");
+        reason = "the database does not have a build ID";
         gva_db_get_build (&db_build_id, &error);
         gva_error_handle (&error);
         TEST_CASE (db_build_id == NULL);
 
-        reason = N_("the MAME version could not be determined");
+        reason = "the MAME version could not be determined";
         mame_version = gva_mame_get_version (&error);
         gva_error_handle (&error);
         TEST_CASE (mame_version == NULL);
 
-        reason = N_("the database build ID does not match the MAME version");
+        reason = "the database build ID does not match the MAME version";
         TEST_CASE (strstr (mame_version, db_build_id) == NULL);
 
 #ifdef CATEGORY_FILE
-        reason = N_("the category file changed");
+        reason = "the category file changed";
         TEST_CASE (gva_db_is_older_than (CATEGORY_FILE));
 #endif
 
@@ -2203,9 +2202,9 @@ gva_db_needs_rebuilt (void)
 
 exit:
         if (rebuild)
-                g_message (_("Building database because %s."), reason);
+                g_message ("Building database because %s.", reason);
         else
-                g_message (_("Database seems up-to-date; no rebuild necessary."));
+                g_message ("Database seems up-to-date; no rebuild necessary.");
 
         g_free (db_build_id);
         g_free (mame_version);
diff --git a/src/gva-history.c b/src/gva-history.c
index 80c9681..00f489e 100644
--- a/src/gva-history.c
+++ b/src/gva-history.c
@@ -52,8 +52,8 @@ history_file_open (GError **error)
         }
 #else
         g_message (
-                _("This program is not configured "
-                  "to show history information."));
+                "This program is not configured "
+                "to show history information.");
 #endif
 
         return channel;
diff --git a/src/gva-nplayers.c b/src/gva-nplayers.c
index 91e5c91..adb27ae 100644
--- a/src/gva-nplayers.c
+++ b/src/gva-nplayers.c
@@ -96,8 +96,8 @@ gva_nplayers_init (GError **error)
         g_free (contents);
 #else
         g_message (
-                _("This program is not configured to show "
-                  "detailed number of players information."));
+                "This program is not configured to show "
+                "detailed number of players information.");
 #endif
 
         return success;
diff --git a/src/gva-process.c b/src/gva-process.c
index 1d61295..7f3333e 100644
--- a/src/gva-process.c
+++ b/src/gva-process.c
@@ -1017,7 +1017,7 @@ gva_process_kill (GvaProcess *process)
          *     after a reasonable duration, SIGKILL. */
 
         pid = process->priv->pid;
-        g_message (_("Sending KILL signal to process %d."), pid);
+        g_message ("Sending KILL signal to process %d.", pid);
         if (kill (pid, SIGKILL) < 0)
                 g_warning ("%s", g_strerror (errno));
 }



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