[geany/geany-plugins] 5c2740: Merge pull request #240 from b4n/fix-missing-translations

Frank Lanitz git-noreply at xxxxx
Tue Jun 23 10:20:48 UTC 2015


Branch:      refs/heads/master
Author:      Frank Lanitz <frank at frank.uvena.de>
Committer:   Frank Lanitz <frank at frank.uvena.de>
Date:        Tue, 23 Jun 2015 10:20:48 UTC
Commit:      5c2740d74c527dca8272124f4e0a7b4bde4e03de
             https://github.com/geany/geany-plugins/commit/5c2740d74c527dca8272124f4e0a7b4bde4e03de

Log Message:
-----------
Merge pull request #240 from b4n/fix-missing-translations

Fix missing translations


Modified Paths:
--------------
    addons/src/ao_wrapwords.c
    projectorganizer/src/prjorg-sidebar.c
    tableconvert/src/tableconvert_ui.c

Modified: addons/src/ao_wrapwords.c
10 lines changed, 7 insertions(+), 3 deletions(-)
===================================================================
@@ -17,7 +17,11 @@
  *			MA 02110-1301, USA.
  */
 
-#include "geanyplugin.h"
+#ifdef HAVE_CONFIG_H
+	#include "config.h"
+#endif
+
+#include <geanyplugin.h>
 
 #include "addons.h"
 #include "ao_wrapwords.h"
@@ -247,8 +251,8 @@ void ao_enclose_words_config (GtkButton *button, GtkWidget *config_window)
 	gint i;
 
 	dialog = gtk_dialog_new_with_buttons(_("Enclose Characters"), GTK_WINDOW(config_window),
-						GTK_DIALOG_DESTROY_WITH_PARENT, "Accept", GTK_RESPONSE_ACCEPT,
-						"Cancel", GTK_RESPONSE_CANCEL, "OK", GTK_RESPONSE_OK, NULL);
+						GTK_DIALOG_DESTROY_WITH_PARENT, _("Accept"), GTK_RESPONSE_ACCEPT,
+						_("Cancel"), GTK_RESPONSE_CANCEL, _("OK"), GTK_RESPONSE_OK, NULL);
 
 	vbox = ui_dialog_vbox_new (GTK_DIALOG (dialog));
 	chars_list = gtk_list_store_new (NUM_COLUMNS, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING);


Modified: projectorganizer/src/prjorg-sidebar.c
6 lines changed, 3 insertions(+), 3 deletions(-)
===================================================================
@@ -454,9 +454,9 @@ static void create_dialog_find_tag(void)
 	gtk_size_group_add_widget(size_group, label);
 
 	s_ft_dialog.combo_match = gtk_combo_box_text_new();
-	gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(s_ft_dialog.combo_match), "exact");
-	gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(s_ft_dialog.combo_match), "prefix");
-	gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(s_ft_dialog.combo_match), "pattern");
+	gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(s_ft_dialog.combo_match), _("exact"));
+	gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(s_ft_dialog.combo_match), _("prefix"));
+	gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(s_ft_dialog.combo_match), _("pattern"));
 	gtk_combo_box_set_active(GTK_COMBO_BOX(s_ft_dialog.combo_match), 1);
 	gtk_label_set_mnemonic_widget(GTK_LABEL(label), s_ft_dialog.combo_match);
 


Modified: tableconvert/src/tableconvert_ui.c
4 lines changed, 4 insertions(+), 0 deletions(-)
===================================================================
@@ -21,6 +21,10 @@
  *
  */
 
+#ifdef HAVE_CONFIG_H
+	#include "config.h" /* for the gettext domain */
+#endif
+
 #include "tableconvert_ui.h"
 
 GtkWidget *main_menu_item = NULL;



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list