1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
samba-mirror/source3/locale/pam_winbind/genmsg
Mikhail Novosyolov c218ad1a0a s3: update list of languages in genmsg of pam_winbind
Removed languages for which translations do not exist.

Signed-off-by: Mikhail Novosyolov <m.novosyolov@rosalinux.ru>
Reviewed-by: Björn Jacke <bjacke@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
2020-10-28 14:04:31 +00:00

28 lines
618 B
Bash
Executable File

#!/bin/sh
FILES="../../../nsswitch/pam_winbind.c ../../../nsswitch/pam_winbind.h ../../../libcli/util/nterr.c"
LANGS="ar cs da de es fi fr hu it ja ko nb nl pl pt_BR ru sv tr zh_CN zh_TW"
XGETTEXT=xgettext
MSGMERGE=msgmerge
WIDTH=256
[ -f pam_winbind.po ] || touch pam_winbind.po
$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