Update yml2po.sh

This commit is contained in:
JosephK 2018-09-25 13:35:45 +02:00
parent 27431fe56d
commit 011db0b933

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
cp app/locales/*.yml zanata/yml/ cp app/locales/*.yml zanata/yml/
yaml2po -P --progress=none -i zanata/yml/en.yml -o zanata/po/${PWD##*/}.pot yaml2po -P --progress=none -i zanata/yml/en.yml -o zanata/po/${PWD##*/}.pot --duplicates merge
for i in app/locales/*.yml for i in app/locales/*.yml
do do
j=$(echo $i | cut -d '.' -f 1 | cut -d '/' -f 3) j=$(echo $i | cut -d '.' -f 1 | cut -d '/' -f 3)