Skip to content

Commit

Permalink
Add bash script that will create tx config file mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivoz committed Oct 24, 2013
1 parent 3a2401a commit 4ba3e6e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions create_tx.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/bash
project="python-for-beginners"
pots="_build/locale/en"
pos="source/locale/<lang>/LC_MESSAGES"

for f in $pots/*.pot; do
r=$(basename $f '.pot')
echo $f
echo "$project.$r"
tx set --auto-local -r "$project.$r" \
"$pos/$r.po" \
--source-file "$f" \
--source-language=en --execute
done

0 comments on commit 4ba3e6e

Please sign in to comment.