Permalink
Browse files

Updated transifex script

  • Loading branch information...
1 parent af0fc29 commit 978353d6a3832d79490dafc8adb49a64ce6a535c @timlinux timlinux committed Apr 1, 2013
Showing with 5 additions and 2 deletions.
  1. +5 −2 scripts/create-transifex-resources.sh
@@ -6,7 +6,9 @@
# Note that this script updates or creates entries in .tx/config file
#
# Tim Sutton, March 2013
+VERSION=2-0
LOCALES=`ls i18n`
+RELEASE_URL=https://www.transifex.com/projects/p/qgis-documentation/r/${VERSION}/
for ITEM in docs website
do
for POFILE in `find i18n/en/LC_MESSAGES/${ITEM}/ -type f -name '*.po'`
@@ -20,7 +22,7 @@ do
BASE=`echo $BASE | sed 's/_/-/g' | sed 's/ /-/g'`
# Register each po file as a transifex resource (an individual translatable file)
#set -x
- RESOURCE=qgis-documentation.${ITEM}-$BASE
+ RESOURCE=qgis-documentation.v${VERSION}-${ITEM}-$BASE
tx set -t PO --auto-local -r $RESOURCE \
"$GENERICFILE" \
--source-lang en \
@@ -47,4 +49,5 @@ do
done
done
# Push all the resources to the tx server
-tx push -s
+tx set --auto-remote RELEASE_URL
+tx push -s -t --skip

0 comments on commit 978353d

Please sign in to comment.