summaryrefslogtreecommitdiffstats
path: root/runtime/menu.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-09-27 19:34:08 +0200
committerBram Moolenaar <Bram@vim.org>2019-09-27 19:34:08 +0200
commit5be4ceecea5520265066eac972460ebb1cdf05e7 (patch)
tree818c9471879de5c5fb956c21f125cc8de9a42341 /runtime/menu.vim
parenta7f6c3cf071bb6267e0bd2eb3d27ca240381ba87 (diff)
Update runtime files.
Diffstat (limited to 'runtime/menu.vim')
-rw-r--r--runtime/menu.vim5
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/menu.vim b/runtime/menu.vim
index 756d4693bd..11d80b7d1d 100644
--- a/runtime/menu.vim
+++ b/runtime/menu.vim
@@ -2,7 +2,7 @@
" You can also use this as a start for your own set of menus.
"
" Maintainer: Bram Moolenaar <Bram@vim.org>
-" Last Change: 2019 Jan 27
+" Last Change: 2019 Sep 26
" Note that ":an" (short for ":anoremenu") is often used to make a menu work
" in all modes and avoid side effects from mappings defined by the user.
@@ -29,7 +29,8 @@ if exists("v:lang") || &langmenu != ""
let s:lang = v:lang
endif
" A language name must be at least two characters, don't accept "C"
- if strlen(s:lang) > 1
+ " Also skip "en_US" to avoid picking up "en_gb" translations.
+ if strlen(s:lang) > 1 && s:lang !~? '^en_us'
" When the language does not include the charset add 'encoding'
if s:lang =~ '^\a\a$\|^\a\a_\a\a$'
let s:lang = s:lang . '.' . &enc