s3: let the pam_winbind po files reference the correct location
[abartlet/samba.git/.git] / source3 / locale / pam_winbind / genmsg
1 #!/bin/sh
2
3 FILES="../../../nsswitch/pam_winbind.c ../../../nsswitch/pam_winbind.h"
4 LANGS="af ar bg bn bs ca cs cy da de el en_GB en_US es et fi fr gl gu he hi hr hu id it ja ka km ko lo lt mk mr nb nl pa pl pt_BR pt ro ru si sk sl sr sv ta th tr uk vi wa xh zh_CN zh_TW zu"
5
6 XGETTEXT=xgettext
7 MSGMERGE=msgmerge
8
9 WIDTH=256
10
11 $XGETTEXT --default-domain="pam_winbind" \
12         --add-comments \
13         --keyword=_ --keyword=N_ \
14         --width=${WIDTH} \
15         ${FILES}
16
17 for lang in ${LANGS}; do
18         echo -n $lang
19         touch ${lang}.po
20         mv ${lang}.po ${lang}.po.old
21         ${MSGMERGE} --width=${WIDTH} ${lang}.po.old pam_winbind.po -o ${lang}.po
22         rm -fr ${lang}.po.old
23 done
24
25 rm -fr pam_winbind.po