]>
Commit | Line | Data |
---|---|---|
fab12620 | 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 |