summaryrefslogtreecommitdiff
path: root/runtime/tutor/tutor.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-03-15 22:43:58 +0000
committerBram Moolenaar <Bram@vim.org>2005-03-15 22:43:58 +0000
commite2cc9702a6ddb033ea289a1269f14e7ae076c3ef (patch)
treeff8eab15d32035b98b9e0ac952d1cc1435f14c26 /runtime/tutor/tutor.vim
parent152c9dd52b4ff1a39618e973c720829ac6395f2d (diff)
downloadvim-e2cc9702a6ddb033ea289a1269f14e7ae076c3ef.zip
updated for version 7.0060
Diffstat (limited to 'runtime/tutor/tutor.vim')
-rw-r--r--runtime/tutor/tutor.vim11
1 files changed, 8 insertions, 3 deletions
diff --git a/runtime/tutor/tutor.vim b/runtime/tutor/tutor.vim
index 754f3c0e9..8621ae243 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: 2004 Sep 06
+" Last Change: 2005 Mar 15
" 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,11 +15,16 @@ if strlen($xx) > 1
let s:ext = "." . $xx
else
let s:lang = ""
- if exists("v:lang") && v:lang != "C"
+ if exists("v:lang")
let s:lang = v:lang
- elseif strlen($LANG) > 0 && $LANG != "C"
+ elseif strlen($LC_ALL) > 0
+ let s:lang = $LC_ALL
+ elseif strlen($LANG) > 0
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', '', '')