Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Mon, 29 Feb 2016 01:09:02 UTC Commit: 40df7dff4bfea6c9f61c5b7be40645631ea59dab https://github.com/geany/geany-plugins/commit/40df7dff4bfea6c9f61c5b7be40645...
Log Message: ----------- Remove redundant localization initialization
Plugins using `PLUGIN_SET_TRANSLATABLE_INFO()` don't need to call `main_locale_init()`.
Modified Paths: -------------- geanylatex/src/geanylatex.c geanylipsum/src/geanylipsum.c geniuspaste/src/geniuspaste.c pretty-printer/src/PluginEntry.c scope/src/scope.c
Modified: geanylatex/src/geanylatex.c 2 lines changed, 0 insertions(+), 2 deletions(-) =================================================================== @@ -2367,8 +2367,6 @@ plugin_init(G_GNUC_UNUSED GeanyData * data)
doc = document_get_current();
- main_locale_init(LOCALEDIR, GETTEXT_PACKAGE); - glatex_init_configuration(); glatex_init_encodings_latex();
Modified: geanylipsum/src/geanylipsum.c 2 lines changed, 0 insertions(+), 2 deletions(-) =================================================================== @@ -147,8 +147,6 @@ plugin_init(G_GNUC_UNUSED GeanyData *data) gchar *config_file = NULL; GeanyKeyGroup *key_group;
- main_locale_init(LOCALEDIR, GETTEXT_PACKAGE); - config_file = g_strconcat(geany->app->configdir, G_DIR_SEPARATOR_S, "plugins", G_DIR_SEPARATOR_S, "geanylipsum", G_DIR_SEPARATOR_S, "lipsum.conf", NULL);
Modified: geniuspaste/src/geniuspaste.c 1 lines changed, 0 insertions(+), 1 deletions(-) =================================================================== @@ -827,7 +827,6 @@ void plugin_init(GeanyData * data) { load_all_pastebins(); load_settings(); - main_locale_init(LOCALEDIR, GETTEXT_PACKAGE); add_menu_item(); }
Modified: pretty-printer/src/PluginEntry.c 3 lines changed, 0 insertions(+), 3 deletions(-) =================================================================== @@ -55,9 +55,6 @@ void plugin_init(GeanyData *data) /* initializes the libxml2 */ LIBXML_TEST_VERSION
- /* mutilanguage support */ - main_locale_init(LOCALEDIR, GETTEXT_PACKAGE); - /* put the menu into the Tools */ main_menu_item = gtk_menu_item_new_with_mnemonic(_("PrettyPrinter XML")); ui_add_document_sensitive(main_menu_item);
Modified: scope/src/scope.c 1 lines changed, 0 insertions(+), 1 deletions(-) =================================================================== @@ -535,7 +535,6 @@ void plugin_init(G_GNUC_UNUSED GeanyData *gdata) ToolItem *tool_item = toolbar_items; const ScopeCallback *scb;
- main_locale_init(LOCALEDIR, GETTEXT_PACKAGE); scope_key_group = plugin_set_key_group(geany_plugin, "scope", COUNT_KB, NULL); builder = gtk_builder_new(); gtk_builder_set_translation_domain(builder, GETTEXT_PACKAGE);
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
plugins-commits@lists.geany.org