wireshark/tools/update-tx
Martin Kaiser e4c86ac83c remove Wireshark.pro, modify update-tx accordingly
Wireshark.pro is the qt project file used by qmake
which in turn was used by nmake

now that nmake is gone, the only reason to keep Wireshark.pro
was the update-tx script that syncs our translation files with Transifex

update-tx calls lupdate to create a list of texts to translate and
lrelease to convert such a list into a binary file
lupdate and lrelase can read file names from a project file or
get them on the command line

modify update-tx to pass the required file names on the command line
we can use wildcards so there's no need to change update-tx when a new
source file is added

remove Wireshark.pro from the release tarball as well

Change-Id: I7ff4ebc96f13b4ffc6fb1b2f4e045999fbfbed5e
Reviewed-on: https://code.wireshark.org/review/16151
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2016-06-30 05:32:29 +00:00

35 lines
748 B
Bash
Executable file

#!/bin/sh
# Copyright 2015, Alexis La Goutte (See AUTHORS file)
#
# Resync translation between Gerrit repo and Transifex
#Get last translation for Transifex
tx pull -f
#Regenerate last translation for repo
for i in ui/qt/*.ts ; do
lupdate ui/qt/*.h ui/qt/*.cpp wireshark-qt.cpp ui/qt/*.ui -ts $i
done
#Push last change tranlastion on Transifex
tx push -t -s
#Add new commit with last translaation update
#git commit -a -m "TX: Update Translations (sync)"
#Push update translation on Gerrit
#git push origin HEAD:refs/for/master/tx
#
# Editor modelines
#
# Local Variables:
# c-basic-offset: 4
# tab-width: 8
# indent-tabs-mode: nil
# End:
#
# ex: set shiftwidth=4 tabstop=8 expandtab:
# :indentSize=4:tabSize=8:noTabs=true:
#