r20238 - gnucash/trunk/src/gnome-utils - I18n: Fix misleading composed strings by defining two separate full sentences.

Christian Stimming cstim at code.gnucash.org
Sat Feb 5 11:28:56 EST 2011


Author: cstim
Date: 2011-02-05 11:28:55 -0500 (Sat, 05 Feb 2011)
New Revision: 20238
Trac: http://svn.gnucash.org/trac/changeset/20238

Modified:
   gnucash/trunk/src/gnome-utils/gnc-main-window.c
Log:
I18n: Fix misleading composed strings by defining two separate full sentences.

Modified: gnucash/trunk/src/gnome-utils/gnc-main-window.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-main-window.c	2011-02-05 15:52:22 UTC (rev 20237)
+++ gnucash/trunk/src/gnome-utils/gnc-main-window.c	2011-02-05 16:28:55 UTC (rev 20238)
@@ -2351,14 +2351,14 @@
 {
     GncMainWindow* window = GNC_MAIN_WINDOW(data);
     GtkWidget* dialog;
-    gchar *reason = ".";
+    const gchar *reason = _("Unable to save to database.");
     if ( errcode == ERR_BACKEND_READONLY )
-        reason = _(": Book is marked read-only.");
+        reason = _("Unable to save to database: Book is marked read-only.");
     dialog = gtk_message_dialog_new( GTK_WINDOW(window),
                                      GTK_DIALOG_DESTROY_WITH_PARENT,
                                      GTK_MESSAGE_ERROR,
                                      GTK_BUTTONS_CLOSE,
-                                     _("Unable to save to database%s"),
+                                     "%s",
                                      reason );
     gtk_dialog_run(GTK_DIALOG (dialog));
     gtk_widget_destroy(dialog);



More information about the gnucash-changes mailing list