From 3e37292c382d8f48554af5a0aa10e3ce2d16363f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Sun, 16 Jul 2017 20:10:50 +0100 Subject: Remove line numbers (locations) from .ts files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To make translation updates less noisy. Change-Id: I3efee819ea10bb326862e0f818bfd3cd7eff48e3 Reviewed-on: https://code.wireshark.org/review/22654 Reviewed-by: João Valverde Reviewed-by: Alexis La Goutte --- tools/update-tx | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'tools') diff --git a/tools/update-tx b/tools/update-tx index 919dcf3727..a01e4c1ab3 100755 --- a/tools/update-tx +++ b/tools/update-tx @@ -3,17 +3,27 @@ # # Resync translation between Gerrit repo and Transifex -#Get last translation for Transifex +# 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 tx pull -f -#Regenerate last translation for repo +# 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 + lupdate -locations absolute ui/qt/*.h ui/qt/*.cpp wireshark-qt.cpp ui/qt/*.ui -ts $i done -#Push last change tranlastion on Transifex +# Push last change tranlastion on Transifex tx push -t -s +# 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 + #Add new commit with last translaation update #git commit -a -m "TX: Update Translations (sync)" -- cgit v1.2.3