1" Script to check if all the locales used in spell files are available.
2
3grep /sys env LANG/ */main.aap
4let not_supported = []
5for 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
12endfor
13
14if len(not_supported) > 0
15  echo "Unsupported languages:"
16  for l in not_supported
17    echo l
18  endfor
19else
20  echo "Everything appears to be OK"
21endif
22