packages: calibre/calibre-locales.patch (NEW) - search for locales in prope...

lisu lisu at pld-linux.org
Fri May 21 13:13:37 CEST 2010


Author: lisu                         Date: Fri May 21 11:13:37 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- search for locales in proper place

---- Files affected:
packages/calibre:
   calibre-locales.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/calibre/calibre-locales.patch
diff -u /dev/null packages/calibre/calibre-locales.patch:1.1
--- /dev/null	Fri May 21 13:13:37 2010
+++ packages/calibre/calibre-locales.patch	Fri May 21 13:13:32 2010
@@ -0,0 +1,23 @@
+--- calibre/src/calibre/utils/localization.py~	2010-05-21 11:47:23.959845665 +0200
++++ calibre/src/calibre/utils/localization.py	2010-05-21 11:47:07.293172188 +0200
+@@ -45,7 +45,7 @@
+     return lang
+ 
+ def messages_path(lang):
+-    return P('localization/locales/%s/LC_MESSAGES'%lang)
++    return ('/usr/share/locale/%s/LC_MESSAGES'%lang)
+ 
+ def get_lc_messages_path(lang):
+     hlang = None
+@@ -75,9 +75,9 @@
+         mpath = get_lc_messages_path(lang)
+         if mpath is not None:
+             if buf is None:
+-                buf = open(os.path.join(mpath, 'messages.mo'), 'rb')
++                buf = open(os.path.join(mpath, 'calibre.mo'), 'rb')
+             mpath = mpath.replace(os.sep+'nds'+os.sep, os.sep+'de'+os.sep)
+-            isof = os.path.join(mpath, 'iso639.mo')
++            isof = os.path.join(mpath, 'calibre_iso639.mo')
+             if os.path.exists(isof):
+                 iso639 = open(isof, 'rb')
+ 
================================================================


More information about the pld-cvs-commit mailing list