[Gnucash-changes] r13698 - gnucash/trunk/src/report/report-gnome - More translator-friendly string placement.

Chris Shoemaker chris at cvs.gnucash.org
Fri Mar 24 21:53:52 EST 2006


Author: chris
Date: 2006-03-24 21:53:51 -0500 (Fri, 24 Mar 2006)
New Revision: 13698
Trac: http://svn.gnucash.org/trac/changeset/13698

Modified:
   gnucash/trunk/src/report/report-gnome/window-report.c
Log:
   More translator-friendly string placement.


Modified: gnucash/trunk/src/report/report-gnome/window-report.c
===================================================================
--- gnucash/trunk/src/report/report-gnome/window-report.c	2006-03-24 22:16:54 UTC (rev 13697)
+++ gnucash/trunk/src/report/report-gnome/window-report.c	2006-03-25 02:53:51 UTC (rev 13698)
@@ -339,11 +339,11 @@
     SCM report = val;
     GtkMessageDialog *dialog = GTK_MESSAGE_DIALOG(data);
     gchar *name = NULL;
-    gchar *msg, *str = _("Do you want to display '%s'?");
+    gchar *msg;
     gint response;
     
     name = gnc_report_name(report);
-    msg = g_strdup_printf(str, name);
+    msg = g_strdup_printf(_("Do you want to display '%s'?"), name);
     gtk_message_dialog_set_markup(dialog, msg);
     response = gtk_dialog_run(GTK_DIALOG(dialog));
     g_free(msg);
@@ -366,17 +366,17 @@
         GtkWidget *dialog;
         guint num_reports;
         gint response;
-        gchar *msg, *str = 
-            _("GnuCash has found %d reports from an earlier version of "
-              "GnuCash but can't tell which ones you had open.  You will now "
-              "have the option to open each report or not.  From now on, "
-              "GnuCash will remember which reports you leave open, so you "
-              "won't see this message again.");
-        
+        gchar *msg;
+ 
         g_hash_table_foreach_remove(reports, remove_invalid_report, NULL);
         num_reports = g_hash_table_size(reports);
         if (num_reports > 3) {
-            msg = g_strdup_printf(str, num_reports);
+            msg = g_strdup_printf(
+                _("GnuCash has found %d reports from an earlier version of "
+                  "GnuCash but can't tell which ones you had open.  You will "
+                  "now have the option to open each report or not.  From now "
+                  "on, GnuCash will remember which reports you leave open, so "
+                  "you won't see this message again."), num_reports);
             dialog = gtk_message_dialog_new(
                 NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_INFO, 
                 GTK_BUTTONS_OK_CANCEL, msg);



More information about the gnucash-changes mailing list