aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2017-07-16 20:10:50 +0100
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2017-07-20 09:56:42 +0000
commit3e37292c382d8f48554af5a0aa10e3ce2d16363f (patch)
treec3450b69599302b35eb4fbea08f6e03eec7602a4 /tools
parentf26778c9c6265fae59a35413d9a2d735190cff22 (diff)
Remove line numbers (locations) from .ts files
To make translation updates less noisy. Change-Id: I3efee819ea10bb326862e0f818bfd3cd7eff48e3 Reviewed-on: https://code.wireshark.org/review/22654 Reviewed-by: João Valverde <j@v6e.pt> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/update-tx18
1 files changed, 14 insertions, 4 deletions
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)"