aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/autoload/tutor.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/autoload/tutor.vim b/runtime/autoload/tutor.vim
index 3265fdde36..6afe64de84 100644
--- a/runtime/autoload/tutor.vim
+++ b/runtime/autoload/tutor.vim
@@ -120,6 +120,12 @@ function! s:Locale()
let l:lang = v:lang
elseif $LC_ALL =~ '\a\a'
let l:lang = $LC_ALL
+ elseif $LC_MESSAGES =~ '\a\a' || $LC_MESSAGES ==# "C"
+ " LC_MESSAGES=C can be used to explicitly ask for English messages while
+ " keeping LANG non-English; don't set l:lang then.
+ if $LC_MESSAGES =~ '\a\a'
+ let l:lang = $LC_MESSAGES
+ endif
elseif $LANG =~ '\a\a'
let l:lang = $LANG
else