Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37778196
en ru br
ALT Linux repositórios
S:0.5.4.18-alt1
5.0: 0.5.2-alt1
4.1: 0.4.6-alt3
4.0: 0.4.6-alt3

Group :: Ferramentas de Arquivo
RPM: xarchiver

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: xarchiver-doc-l10n.patch
Download


--- 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);
 }
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009