all patches

Carles Pina i Estany carles at pina.cat
Thu Dec 25 06:02:50 EST 2008


Hi Pavel,

Here it comes all patches.

Thanks,

-- 
Carles Pina i Estany		GPG id: 0x17756391
	http://pinux.info
-------------- next part --------------
Index: Makefile.posix
===================================================================
--- Makefile.posix	(revision 1043)
+++ Makefile.posix	(working copy)
@@ -29,7 +29,7 @@
 	cp docs/man/*.1 $(DESTDIR)$(PREFIX)/share/man/man1
 	cp docs/man/*.6 $(DESTDIR)$(PREFIX)/share/man/man6
 	cp pydance.posix.cfg pydance.cfg
-	install -D -m 644 pydance.cfg $(DESTDIR)/etc/pydance.cfg
+	install -D -m 644 pydance.cfg $(DESTDIR)$(PREFIX)/etc/pydance.cfg
 
 install-zip: pydance.zip install-core install-data install-utils
 	install -m 644 constants.py pydance.zip $(DESTDIR)$(PREFIX)/share/games/pydance
Index: po/Makefile
===================================================================
--- po/Makefile	(revision 1043)
+++ po/Makefile	(working copy)
@@ -1,7 +1,5 @@
 #Inspired from Powertop po/Makefile
 
-LOCALESDIR=/usr/share/locale
-
 SRC=$(wildcard *.po)
 OBJ= $(SRC:.po=.mo)
 INST= $(SRC:.po=.inst)
Index: i18n.py
===================================================================
--- i18n.py	(revision 1043)
+++ i18n.py	(working copy)
@@ -1,19 +1,17 @@
 import gettext
 import locale
-lang = None
 
-try:
-    lang=gettext.translation('pydance','mo/')
-    print lang
-except:
+directories=['mo','/usr/share/locale','/usr/local/share/locale','../share/locale','../../../share/locale']
+
+lang = None
+for dir in directories:
     try:
-         lang=gettext.translation('pydance','/usr/share/locale')
+        lang=gettext.translation('pydance',dir)
+        break
     except:
-        try:
-	    lang=gettext.translation('pydance','/usr/local/share/locale')
-        except:
-	    lang = None
+        pass
 
+
 if lang!=None:
     lang.install(True)
 


More information about the pyddr-devel mailing list