Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

setup: initial translation hack was bad

Changeset 89830823a0e5

Parent f017cf32331a

by Steve Borho

Changes to one file · Browse files at 89830823a0e5 Showing diff from parent f017cf32331a Diff from another changeset...

 
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
 
 
 
 
 
 
 
 
 
143
144
145
 
128
129
130
 
 
 
 
 
 
 
 
 
 
 
 
131
132
133
134
135
136
137
138
139
140
141
142
@@ -128,18 +128,15 @@
  continue   pofile = join(podir, po)   modir = join('locale', po[:-3], 'LC_MESSAGES') - for mf in ('hg.mo', 'tortoisehg.mo'): - mofile = join(modir, mf) - if not os.path.exists(mofile): - continue - cmd = ['msgfmt', '-v', '-o', mofile, pofile] - if sys.platform != 'sunos5': - # msgfmt on Solaris does not know about -c - cmd.append('-c') - self.mkpath(modir) - self.make_file([pofile], mofile, spawn, (cmd,)) - self.distribution.data_files.append((join('mercurial', modir), - [mofile])) + mofile = join(modir, 'hg.mo') + cmd = ['msgfmt', '-v', '-o', mofile, pofile] + if sys.platform != 'sunos5': + # msgfmt on Solaris does not know about -c + cmd.append('-c') + self.mkpath(modir) + self.make_file([pofile], mofile, spawn, (cmd,)) + self.distribution.data_files.append((join('mercurial', modir), + [mofile]))    class build_shellext(build):   description = "Build TortoiseHg shell extensions"