gnucash maint: Fix a string msgid generation.

John Ralls jralls at code.gnucash.org
Tue Mar 20 14:42:29 EDT 2018


Updated	 via  https://github.com/Gnucash/gnucash/commit/2b6047f9 (commit)
	from  https://github.com/Gnucash/gnucash/commit/0c8c94ea (commit)



commit 2b6047f9529b6cde899e8bb208636f64e9e90ed9
Author: John Ralls <jralls at ceridwen.us>
Date:   Tue Mar 20 11:41:21 2018 -0700

    Fix a string msgid generation.
    
    Call gettext in the macro, not on the macro. xgettext doesn't run cpp and can't see inside macros.

diff --git a/src/gnome/gnc-plugin-page-account-tree.c b/src/gnome/gnc-plugin-page-account-tree.c
index ce67bd6..0d24978 100644
--- a/src/gnome/gnc-plugin-page-account-tree.c
+++ b/src/gnome/gnc-plugin-page-account-tree.c
@@ -1162,9 +1162,9 @@ gnc_plugin_page_account_tree_cmd_delete_account (GtkAction *action, GncPluginPag
     list = qof_instance_get_referring_object_list(QOF_INSTANCE(account));
     if (list != NULL)
     {
-#define EXPLANATION "The list below shows objects which make use of the account which you want to delete.\nBefore you can delete it, you must either delete those objects or else modify them so they make use\nof another account"
+#define EXPLANATION _("The list below shows objects which make use of the account which you want to delete.\nBefore you can delete it, you must either delete those objects or else modify them so they make use\nof another account")
 
-        gnc_ui_object_references_show( _(EXPLANATION), list);
+        gnc_ui_object_references_show (EXPLANATION, list);
         g_list_free(list);
         return;
     }



Summary of changes:
 src/gnome/gnc-plugin-page-account-tree.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)



More information about the gnucash-changes mailing list