gnucash maint: Fix translation of button labels

Frank H.Ellenberger fell at code.gnucash.org
Thu Oct 18 16:52:40 EDT 2018


Updated	 via  https://github.com/Gnucash/gnucash/commit/b80e5d04 (commit)
	from  https://github.com/Gnucash/gnucash/commit/fe99b0a7 (commit)



commit b80e5d04c6e940b0f070a3e79a522474b8d2dd13
Author: Frank H. Ellenberger <frank.h.ellenberger at gmail.com>
Date:   Thu Oct 18 22:52:03 2018 +0200

    Fix translation of button labels
    
    reported as section 2 of
    https://lists.gnucash.org/pipermail/gnucash-de/2018-October/010480.html

diff --git a/gnucash/gnome-utils/gnc-plugin.c b/gnucash/gnome-utils/gnc-plugin.c
index 33d5bc6..5a14a93 100644
--- a/gnucash/gnome-utils/gnc-plugin.c
+++ b/gnucash/gnome-utils/gnc-plugin.c
@@ -274,7 +274,7 @@ gnc_plugin_init_short_names (GtkActionGroup *action_group,
         /* Add a couple of short labels for the toolbar */
         action = gtk_action_group_get_action (action_group,
                                               toolbar_labels[i].action_name);
-        gtk_action_set_short_label (action, toolbar_labels[i].label);
+        gtk_action_set_short_label (action, _(toolbar_labels[i].label));
     }
 }
 



Summary of changes:
 gnucash/gnome-utils/gnc-plugin.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the gnucash-changes mailing list