--- xarchiver-0.5.2/src/window.c.orig 2008-12-01 16:53:09 +0300 +++ xarchiver-0.5.2/src/window.c 2008-12-01 16:53:30 +0300 @@ -1954,7 +1954,15 @@ gboolean xa_launch_external_program(gcha void xa_show_help (GtkMenuItem *menuitem,gpointer user_data) { - gchar *uri = g_strconcat ("file://",DATADIR,"/doc/",PACKAGE,"/html/index.html",NULL); + gchar *uri; + gchar *locale; + + locale = g_strndup (getenv ("LANG"), 2); + /* Lookup directory for localized documentation */ + if (g_file_test ( g_strconcat (DATADIR, "/doc/", PACKAGE, "/html/", locale, "/index.html", NULL), G_FILE_TEST_EXISTS)) + uri = g_strconcat ("file://", DATADIR, "/doc/", PACKAGE, "/html/", locale, "/index.html", NULL); + else + uri = g_strconcat ("file://", DATADIR, "/doc/", PACKAGE, "/html/index.html", NULL); xa_activate_link (NULL,uri,NULL); g_free (uri); }