]> git.pld-linux.org Git - packages/calibre.git/blob - calibre-locales.patch
106f977b530f0258cb146ff6bbead92a003fb133
[packages/calibre.git] / calibre-locales.patch
1 --- calibre/src/calibre/utils/localization.py~  2010-05-21 11:47:23.959845665 +0200
2 +++ calibre/src/calibre/utils/localization.py   2010-05-21 11:47:07.293172188 +0200
3 @@ -45,7 +45,7 @@
4      return lang
5  
6  def messages_path(lang):
7 -    return P('localization/locales/%s/LC_MESSAGES'%lang)
8 +    return ('/usr/share/locale/%s/LC_MESSAGES'%lang)
9  
10  def get_lc_messages_path(lang):
11      hlang = None
12 @@ -75,9 +75,9 @@
13          mpath = get_lc_messages_path(lang)
14          if mpath is not None:
15              if buf is None:
16 -                buf = open(os.path.join(mpath, 'messages.mo'), 'rb')
17 +                buf = open(os.path.join(mpath, 'calibre.mo'), 'rb')
18              mpath = mpath.replace(os.sep+'nds'+os.sep, os.sep+'de'+os.sep)
19 -            isof = os.path.join(mpath, 'iso639.mo')
20 +            isof = os.path.join(mpath, 'calibre_iso639.mo')
21              if os.path.exists(isof):
22                  iso639 = open(isof, 'rb')
23  
24 --- calibre/src/calibre/startup.py~     2010-06-06 22:46:25.000000000 +0200
25 +++ calibre/src/calibre/startup.py      2010-06-11 20:31:39.644201974 +0200
26 @@ -49,7 +49,7 @@
27      # Setup translations
28      from calibre.utils.localization import set_translators
29  
30 -    set_translators()
31 +    #set_translators()
32  
33      ################################################################################
34      # Initialize locale
This page took 0.055753 seconds and 3 git commands to generate.