summaryrefslogtreecommitdiffstats
path: root/runtime/tutor
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-03-18 21:40:56 +0000
committerBram Moolenaar <Bram@vim.org>2006-03-18 21:40:56 +0000
commit97b2ad35425fd589c4ff816d1f1161f2f7f6a93d (patch)
treea0fed79e1bd28b00c32554c62110903d49ac9b20 /runtime/tutor
parent658b74a7360cff23939dbf5075b8e18e38c77a81 (diff)
updated for version 7.0228
Diffstat (limited to 'runtime/tutor')
-rw-r--r--runtime/tutor/tutor.vim15
1 files changed, 8 insertions, 7 deletions
diff --git a/runtime/tutor/tutor.vim b/runtime/tutor/tutor.vim
index 29eda4c379..85cf4183bf 100644
--- a/runtime/tutor/tutor.vim
+++ b/runtime/tutor/tutor.vim
@@ -1,6 +1,6 @@
" Vim tutor support file
" Author: Eduardo F. Amatria <eferna1@platea.pntic.mec.es>
-" Last Change: 2005 Oct 16
+" Last Change: 2006 Mar 18
" This small source file is used for detecting if a translation of the
" tutor file exist, i.e., a tutor.xx file, where xx is the language.
@@ -15,16 +15,15 @@ if strlen($xx) > 1
let s:ext = "." . $xx
else
let s:lang = ""
- if exists("v:lang")
+ " Check that a potential value has at least two letters.
+ " Ignore "1043" and "C".
+ if exists("v:lang") && v:lang =~ '\a\a'
let s:lang = v:lang
- elseif strlen($LC_ALL) > 0
+ elseif $LC_ALL =~ '\a\a'
let s:lang = $LC_ALL
- elseif strlen($LANG) > 0
+ elseif $LANG =~ '\a\a'
let s:lang = $LANG
endif
- if s:lang == "C"
- let s:lang = ""
- endif
if s:lang != ""
" Remove "@euro" (ignoring case), it may be at the end
let s:lang = substitute(s:lang, '\c@euro', '', '')
@@ -36,6 +35,8 @@ else
let s:ext = ".pl"
elseif s:lang =~ "Slovak"
let s:ext = ".sk"
+ elseif s:lang =~ "Dutch"
+ let s:ext = ".nl"
else
let s:ext = "." . strpart(s:lang, 0, 2)
endif