Link Here
|
|
|
1 |
--- ./setup.py.orig 2012-10-02 04:11:23.000000000 +0000 |
2 |
+++ ./setup.py 2012-10-02 18:59:20.000000000 +0000 |
3 |
@@ -227,30 +227,7 @@ |
4 |
description = "build translations (.mo files)" |
5 |
|
6 |
def run(self): |
7 |
- if not find_executable('msgfmt'): |
8 |
- self.warn("could not find msgfmt executable, no translations " |
9 |
- "will be built") |
10 |
- return |
11 |
- |
12 |
- podir = 'i18n' |
13 |
- if not os.path.isdir(podir): |
14 |
- self.warn("could not find %s/ directory" % podir) |
15 |
- return |
16 |
- |
17 |
- join = os.path.join |
18 |
- for po in os.listdir(podir): |
19 |
- if not po.endswith('.po'): |
20 |
- continue |
21 |
- pofile = join(podir, po) |
22 |
- modir = join('locale', po[:-3], 'LC_MESSAGES') |
23 |
- mofile = join(modir, 'hg.mo') |
24 |
- mobuildfile = join('mercurial', mofile) |
25 |
- cmd = ['msgfmt', '-v', '-o', mobuildfile, pofile] |
26 |
- if sys.platform != 'sunos5': |
27 |
- # msgfmt on Solaris does not know about -c |
28 |
- cmd.append('-c') |
29 |
- self.mkpath(join('mercurial', modir)) |
30 |
- self.make_file([pofile], mobuildfile, spawn, (cmd,)) |
31 |
+ pass |
32 |
|
33 |
|
34 |
class hgdist(Distribution): |