[dia] l10n: more menu items



commit 5c5200933f239f1f0bca27d8abaf276c9bccc71a
Author: Zander Brown <zbrown gnome org>
Date:   Wed Jan 29 00:41:48 2020 +0000

    l10n: more menu items
    
    Kinda hacky way to (re-) fix https://gitlab.gnome.org/GNOME/dia/issues/438

 app/menus.c                | 2 +-
 plug-ins/layout/layout.cpp | 9 +++++++++
 2 files changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/app/menus.c b/app/menus.c
index 760fb7ff..cdf5abbe 100644
--- a/app/menus.c
+++ b/app/menus.c
@@ -844,7 +844,7 @@ add_plugin_actions (GtkUIManager *ui_manager, const gchar *base_path)
         menu_path = g_strdup_printf ("%s%s", INTEGRATED_MENU, cbf->menupath + strlen (TOOLBOX_MENU));
     }
 
-    action = gtk_action_new (cbf->action, cbf->description, NULL, NULL);
+    action = gtk_action_new (cbf->action, gettext (cbf->description), NULL, NULL);
     g_signal_connect (G_OBJECT (action), "activate",
                      G_CALLBACK (plugin_callback), (gpointer) cbf);
 
diff --git a/plug-ins/layout/layout.cpp b/plug-ins/layout/layout.cpp
index 96c2510e..453db1e9 100644
--- a/plug-ins/layout/layout.cpp
+++ b/plug-ins/layout/layout.cpp
@@ -392,6 +392,15 @@ static DiaCallbackFilter cb_layout[] = {
     AN_ENTRY(Size, Widen, 1),
 };
 
+
+#if 0
+// Quick 'n Nasty hack to mark strings as translatable
+char *hack_a = N_("Grow");
+char *hack_b = N_("Shrink");
+char *hack_c = N_("Heighten");
+char *hack_d = N_("Widen");
+#endif
+
 static gboolean
 _plugin_can_unload (PluginInfo *info)
 {


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