aboutsummaryrefslogtreecommitdiffstats
path: root/script/generate_pot.sh
blob: f6c82dda73954d5343a18a0eb59b6fdb36a0f190 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

echo "This is NOT a completed script! Just use it as reference for what to do from the command line, or fix it until it works!"
exit 1

cd `dirname $0`
# grab latest po files from Transifex
tx pull -a -f
git status | grep app.po | awk '{print $3}' | xargs git add
git commit -m "Backup latest po files from Transifex"

# now regenerate POT and PO files from Alaveteli source
rake gettext:store_model_attributes
rake gettext:findpot

# upload the result to Transifex
tx push -t 

# re-download (it removes the fuzzy strings and normalises it to the format last committed)
tx pull -a -f
git status | grep app.po | awk '{print $3}' | xargs git add
git commit -m "Updated POT"