glom r1404 - in trunk: . glom



Author: arminb
Date: Thu Jan 31 18:38:10 2008
New Revision: 1404
URL: http://svn.gnome.org/viewvc/glom?rev=1404&view=rev

Log:
2008-01-31  Armin Burgmeier  <armin openismus com>

	* glom/main.cc: Load translations relative to glom.exe on Windows.


Modified:
   trunk/ChangeLog
   trunk/glom/main.cc

Modified: trunk/glom/main.cc
==============================================================================
--- trunk/glom/main.cc	(original)
+++ trunk/glom/main.cc	Thu Jan 31 18:38:10 2008
@@ -86,8 +86,15 @@
 int 
 main(int argc, char* argv[])
 {
+#ifdef G_OS_WIN32
+  // Load translations relative to glom.exe on Windows
+  gchar* dir = g_win32_get_package_installation_subdirectory(NULL, NULL, "locale");
+  bindtextdomain(GETTEXT_PACKAGE, dir);
+  g_free(dir);
+#else
   //Make this application use the current locale for _() translation:
   bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR);  //LOCALEDIR is defined in the Makefile.am
+#endif
   bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
   textdomain(GETTEXT_PACKAGE);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]