mirror of
https://github.com/vim/vim.git
synced 2025-07-25 10:54:51 -04:00
patch 8.1.1089: tutor does not check $LC_MESSAGES
Problem: Tutor does not check $LC_MESSAGES. Solution: Let $LC_MESSAGES overrule $LANG. (Miklos Vajna, closes #4112)
This commit is contained in:
parent
9e1e358d37
commit
b44b7add8a
@ -1,7 +1,7 @@
|
|||||||
" Vim tutor support file
|
" Vim tutor support file
|
||||||
" Author: Eduardo F. Amatria <eferna1@platea.pntic.mec.es>
|
" Author: Eduardo F. Amatria <eferna1@platea.pntic.mec.es>
|
||||||
" Maintainer: Bram Moolenaar
|
" Maintainer: Bram Moolenaar
|
||||||
" Last Change: 2018 Apr 11
|
" Last Change: 2019 Mar 30
|
||||||
|
|
||||||
" This Vim script is used for detecting if a translation of the
|
" This Vim script is used for detecting if a translation of the
|
||||||
" tutor file exist, i.e., a tutor.xx file, where xx is the language.
|
" tutor file exist, i.e., a tutor.xx file, where xx is the language.
|
||||||
@ -22,6 +22,12 @@ else
|
|||||||
let s:lang = v:lang
|
let s:lang = v:lang
|
||||||
elseif $LC_ALL =~ '\a\a'
|
elseif $LC_ALL =~ '\a\a'
|
||||||
let s:lang = $LC_ALL
|
let s: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 s:lang then.
|
||||||
|
if $LC_MESSAGES =~ '\a\a'
|
||||||
|
let s:lang = $LC_MESSAGES
|
||||||
|
endif
|
||||||
elseif $LANG =~ '\a\a'
|
elseif $LANG =~ '\a\a'
|
||||||
let s:lang = $LANG
|
let s:lang = $LANG
|
||||||
endif
|
endif
|
||||||
|
@ -775,6 +775,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1089,
|
||||||
/**/
|
/**/
|
||||||
1088,
|
1088,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user