SF.net SVN: geany-plugins:[941] trunk/geany-plugins/geanyprj/src/geanyprj.c
yurand at users.sourceforge.net
yurand at xxxxx
Thu Sep 17 06:39:23 UTC 2009
Revision: 941
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=941&view=rev
Author: yurand
Date: 2009-09-17 06:39:23 +0000 (Thu, 17 Sep 2009)
Log Message:
-----------
Use main_locale_init instead of custom code
Modified Paths:
--------------
trunk/geany-plugins/geanyprj/src/geanyprj.c
Modified: trunk/geany-plugins/geanyprj/src/geanyprj.c
===================================================================
--- trunk/geany-plugins/geanyprj/src/geanyprj.c 2009-09-16 17:47:10 UTC (rev 940)
+++ trunk/geany-plugins/geanyprj/src/geanyprj.c 2009-09-17 06:39:23 UTC (rev 941)
@@ -109,37 +109,11 @@
{NULL, NULL, FALSE, NULL}
};
-static void
-locale_init(void)
-{
-#ifdef ENABLE_NLS
- gchar *locale_dir = NULL;
-
-#ifdef HAVE_LOCALE_H
- setlocale(LC_ALL, "");
-#endif
-
-#ifdef G_OS_WIN32
- gchar *install_dir = g_win32_get_package_installation_directory("geany", NULL);
- /* e.g. C:\Program Files\geany\lib\locale */
- locale_dir = g_strconcat(install_dir, "\\share\\locale", NULL);
- g_free(install_dir);
-#else
- locale_dir = g_strdup(LOCALEDIR);
-#endif
-
- bindtextdomain(GETTEXT_PACKAGE, locale_dir);
- bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
- textdomain(GETTEXT_PACKAGE);
- g_free(locale_dir);
-#endif
-}
-
/* Called by Geany to initialize the plugin */
void
plugin_init(G_GNUC_UNUSED GeanyData * data)
{
- locale_init();
+ main_locale_init(LOCALEDIR, GETTEXT_PACKAGE);
tools_menu_init();
xproject_init();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Plugins-Commits
mailing list