1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/source3/locale/pam_winbind/genmsg
Bo Yang 6384f45f52 s3: Rerun genmsg after adding more strings.
Signed-off-by: Bo Yang <boyang@samba.org>
2010-03-06 01:59:55 +08:00

26 lines
677 B
Bash
Executable File

#!/bin/sh
FILES="../../../nsswitch/pam_winbind.c ../../../nsswitch/pam_winbind.h ../../libsmb/nterr.c"
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"
XGETTEXT=xgettext
MSGMERGE=msgmerge
WIDTH=256
$XGETTEXT --default-domain="pam_winbind" \
--add-comments \
--keyword=_ --keyword=N_ \
--width=${WIDTH} \
${FILES}
for lang in ${LANGS}; do
echo -n $lang
touch ${lang}.po
mv ${lang}.po ${lang}.po.old
${MSGMERGE} --width=${WIDTH} ${lang}.po.old pam_winbind.po -o ${lang}.po
rm -fr ${lang}.po.old
done
rm -fr pam_winbind.po