summaryrefslogtreecommitdiff
path: root/helpers
diff options
context:
space:
mode:
authorAndre Miranda <andreldm@xfce.org>2020-07-06 23:34:09 -0300
committerAndre Miranda <andreldm@xfce.org>2020-07-06 23:34:09 -0300
commitf57b4a8017874733589f4cb9607c249a03a1fb5b (patch)
tree43fe2407c8e5887a1ba2f20e8c93e35775495a8a /helpers
parent8fb443963bb6851a9e82b531dcd93b6c9a2fcd14 (diff)
downloadxfce4-dev-tools-f57b4a8017874733589f4cb9607c249a03a1fb5b.tar.gz
get-translations: Correctly get locale from commit messages
The forth field of messages such as: I18n: Add new translation sq (100%). Is "translation", that's why we should pick the second last field.
Diffstat (limited to 'helpers')
-rw-r--r--helpers/xfce-get-translations2
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers/xfce-get-translations b/helpers/xfce-get-translations
index 1d1da8b..0f2764b 100644
--- a/helpers/xfce-get-translations
+++ b/helpers/xfce-get-translations
@@ -11,7 +11,7 @@ SILENT="${3:-}"
LINE_LENGTH=72
INDENT=" "
-UPDATES=$(git log --pretty=format:'%s' "$STARTTAG".."$ENDTAG" -- po/*.po | awk '{print $4}' | sort -u)
+UPDATES=$(git log --pretty=format:'%s' "$STARTTAG".."$ENDTAG" -- po/*.po | awk '{print $(NF-1)}' | sort -u)
if [ "${ENDTAG}" == "HEAD" ]; then
ENDTAG_PRETTY="now"