source check.vim " Test for gettext() func Test_gettext() set encoding=cp1251 call bindtextdomain("__PACKAGE__", getcwd()) try language ru_RU call assert_equal('ÎØÈÁÊÀ: ', gettext("ERROR: ", "__PACKAGE__")) catch /^Vim\%((\a\+)\)\=:E197:/ throw "Skipped: not possible to set locale to ru (missing?)" endtry try language en_GB.UTF-8 call assert_equal('ERROR: ', gettext("ERROR: ", "__PACKAGE__")) catch /^Vim\%((\a\+)\)\=:E197:/ throw "Skipped: not possible to set locale to en (missing?)" endtry set encoding& endfunc " vim: shiftwidth=2 sts=2 expandtab