Skip to content

Commit 4ba3e6e

Browse files
committed
Add bash script that will create tx config file mappings
1 parent 3a2401a commit 4ba3e6e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

create_tx.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/bash
2+
project="python-for-beginners"
3+
pots="_build/locale/en"
4+
pos="source/locale/<lang>/LC_MESSAGES"
5+
6+
for f in $pots/*.pot; do
7+
r=$(basename $f '.pot')
8+
echo $f
9+
echo "$project.$r"
10+
tx set --auto-local -r "$project.$r" \
11+
"$pos/$r.po" \
12+
--source-file "$f" \
13+
--source-language=en --execute
14+
done

0 commit comments

Comments
 (0)