Install vim73
[git/jnareb-git.git] / share / vim / vim73 / spell / check_locales.vim
blobfe7be93b581f96235dd9a9f36610de905b917da4
1 " Script to check if all the locales used in spell files are available.
3 grep /sys env LANG/ */main.aap
4 let not_supported = []
5 for item in getqflist()
6   let lang = substitute(item.text, '.*LANG=\(\S\+\).*', '\1', '')
7   try
8     exe 'lang ' . lang
9   catch /E197/
10     call add(not_supported, lang)
11   endtry
12 endfor
14 if len(not_supported) > 0
15   echo "Unsupported languages:"
16   for l in not_supported
17     echo l
18   endfor
19 else
20   echo "Everything appears to be OK"
21 endif