mirror of
https://framagit.org/framasoft/framadate/framadate
synced 2026-01-24 02:34:57 +00:00
[Zanata] Add script to update zanata for one locale
ex: ./push-trad-to-zanata.sh fr_FR
This commit is contained in:
parent
f340fbe046
commit
3637e052d5
1 changed files with 11 additions and 0 deletions
11
push-trad-to-zanata.sh
Executable file
11
push-trad-to-zanata.sh
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
FILE=$1
|
||||
if [[ ! -e locale/$FILE.json ]]
|
||||
then
|
||||
echo "locale/$FILE.json does not exist. Exiting."
|
||||
exit 1
|
||||
else
|
||||
LOCALE=$(echo $FILE | sed -e "s@_@-@g")
|
||||
json2po -i locale/$FILE.json -t locale/en.json -o po/$FILE.po
|
||||
zanata-cli -q -B push --push-type trans -l $LOCALE
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue