Fix update_po_files.sh

This commit is contained in:
Paul Licameli 2020-05-28 16:28:24 -04:00
parent 7325e6839e
commit a93ee4b4bc
2 changed files with 57 additions and 2 deletions

55
locale/LINGUAS Normal file
View File

@ -0,0 +1,55 @@
af
ar
be
bg
bn
bs
ca
ca_ES@valencia
cs
cy
da
de
el
es
eu
eu_ES
fa
fi
fr
ga
gl
he
hi
hr
hu
hy
id
it
ja
ka
km
ko
lt
mk
my
nb
nl
oc
pl
pt_PT
pt_BR
ro
ru
sk
sl
sr_RS
sr_RS@latin
sv
ta
tg
tr
uk
vi
zh_CN
zh_TW

View File

@ -1,11 +1,11 @@
#!/bin/sh
echo ";; Recreating audacity.pot using .h, .cpp and .mm files"
for path in ../lib-src/FileDialog ../lib-src/mod-script* ../lib-src/mod-nyq* ../include ../src ; do find $path -name \*.h -o -name \*.cpp -o -name \*.mm ; done | LANG=c sort | \
for path in ../lib-src/mod-script* ../lib-src/mod-nyq* ../include ../src ; do find $path -name \*.h -o -name \*.cpp -o -name \*.mm ; done | LANG=c sort | \
sed -E 's/\.\.\///g' |\
xargs xgettext \
--default-domain=audacity \
--directory=.. \
--keyword=_ --keyword=XO --keyword=XC:1,2c --keyword=XXO --keyword-XXC:1,2c --keyword=XP:1,2 --keyword=XPC:1,2,4c \
--keyword=_ --keyword=XO --keyword=XC:1,2c --keyword=XXO --keyword=XXC:1,2c --keyword=XP:1,2 --keyword=XPC:1,2,4c \
--add-comments=" i18n" \
--add-location=file \
--copyright-holder='Audacity Team' \