2015-02-22 19:13:36 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# Copyright 2015, Alexis La Goutte (See AUTHORS file)
|
|
|
|
#
|
|
|
|
# Resync translation between Gerrit repo and Transifex
|
|
|
|
|
2017-07-16 19:10:50 +00:00
|
|
|
# Add line numbers
|
|
|
|
for i in ui/qt/*.ts ; do
|
|
|
|
lupdate -locations absolute ui/qt/*.h ui/qt/*.cpp wireshark-qt.cpp ui/qt/*.ui -ts $i
|
|
|
|
done
|
|
|
|
|
|
|
|
# Get last translation for Transifex
|
2015-02-22 19:13:36 +00:00
|
|
|
tx pull -f
|
|
|
|
|
2017-07-16 19:10:50 +00:00
|
|
|
# Regenerate last translation for repo
|
2016-06-26 18:13:30 +00:00
|
|
|
for i in ui/qt/*.ts ; do
|
2017-07-16 19:10:50 +00:00
|
|
|
lupdate -locations absolute ui/qt/*.h ui/qt/*.cpp wireshark-qt.cpp ui/qt/*.ui -ts $i
|
2016-06-26 18:13:30 +00:00
|
|
|
done
|
2015-02-22 19:13:36 +00:00
|
|
|
|
2017-07-16 19:10:50 +00:00
|
|
|
# Push last change tranlastion on Transifex
|
2015-02-22 19:13:36 +00:00
|
|
|
tx push -t -s
|
|
|
|
|
2017-07-16 19:10:50 +00:00
|
|
|
# Remove line numbers
|
|
|
|
for i in ui/qt/*.ts ; do
|
|
|
|
lupdate -locations none -no-ui-lines ui/qt/*.h ui/qt/*.cpp wireshark-qt.cpp ui/qt/*.ui -ts $i
|
|
|
|
done
|
|
|
|
|
2015-02-22 19:13:36 +00:00
|
|
|
#Add new commit with last translaation update
|
2015-04-05 15:54:16 +00:00
|
|
|
#git commit -a -m "TX: Update Translations (sync)"
|
2015-02-22 19:13:36 +00:00
|
|
|
|
|
|
|
#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:
|
|
|
|
#
|