/[svn]/gigedit/trunk/src/gigedit/gigedit.cpp
ViewVC logotype

Diff of /gigedit/trunk/src/gigedit/gigedit.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1660 by schoenebeck, Sun Feb 3 00:19:55 2008 UTC revision 1823 by persson, Sun Dec 28 09:58:05 2008 UTC
# Line 87  void init_app() { Line 87  void init_app() {
87          setlocale(LC_ALL, "");          setlocale(LC_ALL, "");
88    
89  #if HAVE_GETTEXT  #if HAVE_GETTEXT
90    
91    #ifdef WIN32
92    #if GLIB_CHECK_VERSION(2, 16, 0)
93            gchar* root =
94                g_win32_get_package_installation_directory_of_module(NULL);
95    #else
96            gchar* root =
97                g_win32_get_package_installation_directory(NULL, NULL);
98    #endif
99            gchar* temp = g_build_filename(root, "/share/locale", NULL);
100            g_free(root);
101            gchar* localedir = g_win32_locale_filename_from_utf8(temp);
102            g_free(temp);
103            bindtextdomain(GETTEXT_PACKAGE, localedir);
104            g_free(localedir);
105    #else
106          bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR);          bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR);
107    #endif
108          bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");          bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
109          textdomain(GETTEXT_PACKAGE);          textdomain(GETTEXT_PACKAGE);
110  #endif // HAVE_GETTEXT  #endif // HAVE_GETTEXT

Legend:
Removed from v.1660  
changed lines
  Added in v.1823

  ViewVC Help
Powered by ViewVC