mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-11-04 10:08:56 +01:00 
			
		
		
		
	gresource: Initialize i18n
...otherwise translations don't work. Pointed out by Kjartan Maraas. https://bugzilla.gnome.org/show_bug.cgi?id=668561
This commit is contained in:
		@@ -580,6 +580,26 @@ main (int argc, char *argv[])
 | 
			
		||||
  gboolean details = FALSE;
 | 
			
		||||
  void (* function) (const gchar *, const gchar *, const gchar *, gboolean);
 | 
			
		||||
 | 
			
		||||
#ifdef G_OS_WIN32
 | 
			
		||||
  extern gchar *_glib_get_locale_dir (void);
 | 
			
		||||
  gchar *tmp;
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
  setlocale (LC_ALL, "");
 | 
			
		||||
  textdomain (GETTEXT_PACKAGE);
 | 
			
		||||
 | 
			
		||||
#ifdef G_OS_WIN32
 | 
			
		||||
  tmp = _glib_get_locale_dir ();
 | 
			
		||||
  bindtextdomain (GETTEXT_PACKAGE, tmp);
 | 
			
		||||
  g_free (tmp);
 | 
			
		||||
#else
 | 
			
		||||
  bindtextdomain (GETTEXT_PACKAGE, GLIB_LOCALE_DIR);
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifdef HAVE_BIND_TEXTDOMAIN_CODESET
 | 
			
		||||
  bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
  g_type_init ();
 | 
			
		||||
 | 
			
		||||
  if (argc < 2)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user