view runtime/spell/check_locales.vim @ 23124:f8cd5a5e03c4 v8.2.2108

patch 8.2.2108: Vim9: no test to check for :let error Commit: https://github.com/vim/vim/commit/083966f671475ae1b67f746f0b3f5309a45dfd8f Author: Bram Moolenaar <Bram@vim.org> Date: Tue Dec 8 11:29:40 2020 +0100 patch 8.2.2108: Vim9: no test to check for :let error Problem: Vim9: no test to check for :let error. Solution: Add a test. Rename tests from _let_ to _var_.
author Bram Moolenaar <Bram@vim.org>
date Tue, 08 Dec 2020 11:30:06 +0100
parents ea3c3f13385c
children
line wrap: on
line source

" Script to check if all the locales used in spell files are available.

grep /sys env LANG/ */main.aap
let not_supported = []
for item in getqflist()
  let lang = substitute(item.text, '.*LANG=\(\S\+\).*', '\1', '')
  try
    exe 'lang ' . lang
  catch /E197/
    call add(not_supported, lang)
  endtry
endfor

if len(not_supported) > 0
  echo "Unsupported languages:"
  for l in not_supported
    echo l
  endfor
else
  echo "Everything appears to be OK"
endif