2 # Copyright 2015, Alexis La Goutte (See AUTHORS file)
4 # Resync translation between Gerrit repo and Transifex
7 while getopts "n" OPTCHAR ; do
14 # All .cpp, .h, and .ui files under ui/qt plus wireshark-qt.cpp.
15 LUPDATE_FILES=$(find ui/qt -name '*.cpp' -o -name '*.h' -o -name '*.ui')
16 LUPDATE_FILES=($LUPDATE_FILES wireshark-qt.cpp)
19 for i in ui/qt/*.ts ; do
20 lupdate -locations absolute "${LUPDATE_FILES[@]}" -ts "$i"
23 # Get last translation for Transifex
26 # Regenerate last translation for repo
27 for i in ui/qt/*.ts ; do
28 lupdate -locations absolute "${LUPDATE_FILES[@]}" -ts "$i"
31 # Push last change tranlastion on Transifex
32 if [ "$NO_PUSH" != "True" ]; then
37 for i in ui/qt/*.ts ; do
38 lupdate -locations none -no-ui-lines "${LUPDATE_FILES[@]}" -ts "$i"
41 #Add new commit with last translaation update
42 #git commit -a -m "TX: Update Translations (sync)"
44 #Push update translation on Gerrit
45 #git push origin HEAD:refs/for/master/tx
53 # indent-tabs-mode: nil
56 # ex: set shiftwidth=4 tabstop=8 expandtab:
57 # :indentSize=4:tabSize=8:noTabs=true: