check_locales.vim (463B)
1 " Script to check if all the locales used in spell files are available. 2 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 13 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