comparison runtime/tutor/tutor.vim @ 6009:7b83c190d370

Updated runtime files.
author Bram Moolenaar <bram@vim.org>
date Wed, 25 Jun 2014 18:50:27 +0200
parents 04592728474a
children 9560a5b782ee
comparison
equal deleted inserted replaced
6008:0d229e42670c 6009:7b83c190d370
1 " Vim tutor support file 1 " Vim tutor support file
2 " Author: Eduardo F. Amatria <eferna1@platea.pntic.mec.es> 2 " Author: Eduardo F. Amatria <eferna1@platea.pntic.mec.es>
3 " Maintainer: Bram Moolenaar 3 " Maintainer: Bram Moolenaar
4 " Last Change: 2012 Sep 21 4 " Last Change: 2014 Jun 25
5 5
6 " This Vim script is used for detecting if a translation of the 6 " This Vim script is used for detecting if a translation of the
7 " tutor file exist, i.e., a tutor.xx file, where xx is the language. 7 " tutor file exist, i.e., a tutor.xx file, where xx is the language.
8 " If the translation does not exist, or no extension is given, 8 " If the translation does not exist, or no extension is given,
9 " it defaults to the english version. 9 " it defaults to the english version.
34 let s:ext = ".de" 34 let s:ext = ".de"
35 elseif s:lang =~ "Polish" 35 elseif s:lang =~ "Polish"
36 let s:ext = ".pl" 36 let s:ext = ".pl"
37 elseif s:lang =~ "Slovak" 37 elseif s:lang =~ "Slovak"
38 let s:ext = ".sk" 38 let s:ext = ".sk"
39 elseif s:lang =~ "Serbian"
40 let s:ext = ".sr"
39 elseif s:lang =~ "Czech" 41 elseif s:lang =~ "Czech"
40 let s:ext = ".cs" 42 let s:ext = ".cs"
41 elseif s:lang =~ "Dutch" 43 elseif s:lang =~ "Dutch"
42 let s:ext = ".nl" 44 let s:ext = ".nl"
43 else 45 else
120 if &enc =~ 1250 122 if &enc =~ 1250
121 let s:ext = ".sk.cp1250" 123 let s:ext = ".sk.cp1250"
122 endif 124 endif
123 endif 125 endif
124 126
127 " The Slovak tutor is available in two encodings, guess which one to use
128 " Note that the utf-8 version is the original, the cp1250 version is created
129 " from it.
130 if s:ext =~? '\.sr'
131 if &enc =~ 1250
132 let s:ext = ".sr.cp1250"
133 endif
134 endif
135
125 " The Czech tutor is available in three encodings, guess which one to use 136 " The Czech tutor is available in three encodings, guess which one to use
126 if s:ext =~? '\.cs' 137 if s:ext =~? '\.cs'
127 if &enc =~ 1250 138 if &enc =~ 1250
128 let s:ext = ".cs.cp1250" 139 let s:ext = ".cs.cp1250"
129 endif 140 endif