Revision: 322 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=322&view=rev Author: frlan Date: 2008-12-03 21:13:30 +0000 (Wed, 03 Dec 2008)
Log Message: ----------- GeanyLaTeX: Make menu entries for bibTeX entries also shown translated
Modified Paths: -------------- trunk/geanylatex/src/bibtex.h trunk/geanylatex/src/geanylatex.c trunk/geanylatex/src/geanylatex.h
Modified: trunk/geanylatex/src/bibtex.h =================================================================== --- trunk/geanylatex/src/bibtex.h 2008-12-03 21:13:01 UTC (rev 321) +++ trunk/geanylatex/src/bibtex.h 2008-12-03 21:13:30 UTC (rev 322) @@ -24,6 +24,7 @@
#include "geanylatex.h"
+ /* Define generic stuff */ enum { ARTICLE = 0, @@ -74,7 +75,7 @@ N_ENTRIES };
-extern gchar *label_types[]; +extern gchar *label_types[N_TYPES];
int push_bibtex_entry(int style, GeanyDocument *doc);
Modified: trunk/geanylatex/src/geanylatex.c =================================================================== --- trunk/geanylatex/src/geanylatex.c 2008-12-03 21:13:01 UTC (rev 321) +++ trunk/geanylatex/src/geanylatex.c 2008-12-03 21:13:30 UTC (rev 322) @@ -761,7 +761,6 @@ GtkWidget *tmp = NULL; int i;
- p_main->locale_init(LOCALEDIR, GETTEXT_PACKAGE);
init_encodings_latex(); @@ -813,7 +812,7 @@ for (i = 0; i < N_TYPES; i++) { tmp = NULL; - tmp = gtk_menu_item_new_with_mnemonic(label_types[i]); + tmp = gtk_menu_item_new_with_mnemonic(_(label_types[i])); gtk_container_add(GTK_CONTAINER(menu_latex_bibtex_submenu), tmp); g_signal_connect((gpointer) tmp, "activate", G_CALLBACK(insert_bibtex_entry), GINT_TO_POINTER(i)); }
Modified: trunk/geanylatex/src/geanylatex.h =================================================================== --- trunk/geanylatex/src/geanylatex.h 2008-12-03 21:13:01 UTC (rev 321) +++ trunk/geanylatex/src/geanylatex.h 2008-12-03 21:13:30 UTC (rev 322) @@ -25,6 +25,8 @@ #ifndef GEANYLATEX_H #define GEANYLATEX_H
+ + #include "geany.h" #include "support.h" #include "plugindata.h" @@ -37,15 +39,15 @@ #include "keybindings.h" #include "prefs.h" #include "pluginmacros.h" +#include "datatypes.h" +#include "letters.h" +#include "latexencodings.h" +#include "bibtex.h"
#ifdef HAVE_LOCALE_H # include <locale.h> #endif
-#include "datatypes.h" -#include "letters.h" -#include "latexencodings.h" -#include "bibtex.h"
typedef void (*SubMenuCallback) (G_GNUC_UNUSED GtkMenuItem * menuitem, G_GNUC_UNUSED gpointer gdata);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org