mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 18:32:55 +00:00
simplify translations script
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
cdf942c03d
commit
5f30ffe788
1 changed files with 8 additions and 12 deletions
|
@ -26,16 +26,12 @@ for t in tools:
|
|||
|
||||
for t in glob.glob('translations/qt*.ts'):
|
||||
if 'tools' in t:
|
||||
command = 'build/bin/lupdate -locations relative -no-ui-lines -no-obsolete %s -ts %s' % (' '.join(tfiles), t)
|
||||
command = shlex.split(command)
|
||||
pipe = subprocess.Popen(command, stderr=subprocess.PIPE)
|
||||
pipe.wait()
|
||||
if pipe.returncode != 0:
|
||||
raise(Exception(pipe.communicate()[1].strip()))
|
||||
files = ' '.join(tfiles)
|
||||
else:
|
||||
command = 'build/bin/lupdate -locations relative -no-ui-lines -no-obsolete %s -ts %s' % (' '.join(cfiles), t)
|
||||
command = shlex.split(command)
|
||||
pipe = subprocess.Popen(command, stderr=subprocess.PIPE)
|
||||
pipe.wait()
|
||||
if pipe.returncode != 0:
|
||||
raise(Exception(pipe.communicate()[1].strip()))
|
||||
files = ' '.join(cfiles)
|
||||
command = 'build/bin/lupdate -locations relative -no-ui-lines -no-obsolete %s -ts %s' % (files, t)
|
||||
command = shlex.split(command)
|
||||
pipe = subprocess.Popen(command, stderr=subprocess.PIPE)
|
||||
pipe.wait()
|
||||
if pipe.returncode != 0:
|
||||
raise(Exception(pipe.communicate()[1].strip()))
|
||||
|
|
Loading…
Add table
Reference in a new issue