--- xarchiver/src/callbacks.c.orig 2006-11-27 11:58:55 +0300 +++ xarchiver/src/callbacks.c 2008-04-08 20:36:03 +0400 @@ -2399,7 +2399,15 @@ 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); }