- language-check.sh: add check for duplicated strings

- remove duplicated strings in bg.lang


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@156 a1433add-5e2c-0410-b055-b7f2511e0802
postfixadmin-2.3
Christian Boltz 17 years ago
parent 60b76320e7
commit faa1de78b1

@ -213,8 +213,6 @@ $PALANG['pAdminList_domain_transport'] = 'Transport'; # XXX
$PALANG['pAdminList_domain_backupmx'] = 'Backup MX'; # XXX
$PALANG['pAdminList_domain_modified'] = 'Ïîñëåäíî ìîäèôèöèðàí';
$PALANG['pAdminList_domain_active'] = 'Àêòèâåí';
$PALANG['pAdminList_domain_modified'] = 'Last Modified';
$PALANG['pAdminList_domain_active'] = 'Active';
$PALANG['pAdminList_virtual_button'] = 'Íàïðåä';
$PALANG['pAdminList_virtual_welcome'] = 'Ïðåãëåä íà ';

@ -122,6 +122,12 @@ for file in $filelist ; do
done
###############################################################################
# check for duplicated strings
for file in $filelist ; do
sed -n "/PALANG/ s/[ ]*\$PALANG\['// ; s/'.*//p" $file |sort |uniq -c |grep -v " *1 " >&2 && \
echo "*** duplicated string in $file, see above for details ***" >&2
done
test $nocleanup = 0 && for file in $filelist ; do
rm -f $file.patch $file.strings $file.diff
done

Loading…
Cancel
Save