comparison runtime/menu.vim @ 148:72aefd4c1e0d

updated for version 7.0046
author vimboss
date Mon, 31 Jan 2005 19:19:04 +0000
parents af1bcb9a13c0
children 78423945b251
comparison
equal deleted inserted replaced
147:2f5a3b881ada 148:72aefd4c1e0d
1 " Vim support file to define the default menus 1 " Vim support file to define the default menus
2 " You can also use this as a start for your own set of menus. 2 " You can also use this as a start for your own set of menus.
3 " 3 "
4 " Maintainer: Bram Moolenaar <Bram@vim.org> 4 " Maintainer: Bram Moolenaar <Bram@vim.org>
5 " Last Change: 2004 Dec 04 5 " Last Change: 2005 Jan 30
6 6
7 " Note that ":an" (short for ":anoremenu") is often used to make a menu work 7 " Note that ":an" (short for ":anoremenu") is often used to make a menu work
8 " in all modes and avoid side effects from mappings defined by the user. 8 " in all modes and avoid side effects from mappings defined by the user.
9 9
10 " Make sure the '<' and 'C' flags are not included in 'cpoptions', otherwise 10 " Make sure the '<' and 'C' flags are not included in 'cpoptions', otherwise
52 52
53 if !exists("did_menu_trans") 53 if !exists("did_menu_trans")
54 " There is no exact match, try matching with a wildcard added 54 " There is no exact match, try matching with a wildcard added
55 " (e.g. find menu_de_de.iso_8859-1.vim if s:lang == de_DE). 55 " (e.g. find menu_de_de.iso_8859-1.vim if s:lang == de_DE).
56 let s:lang = substitute(s:lang, '\.[^.]*', "", "") 56 let s:lang = substitute(s:lang, '\.[^.]*', "", "")
57 exe "runtime! lang/menu_" . s:lang . "*.vim" 57 exe "runtime! lang/menu_" . s:lang . "[^a-z]*.vim"
58 58
59 if !exists("did_menu_trans") && strlen($LANG) > 1 59 if !exists("did_menu_trans") && strlen($LANG) > 1
60 " On windows locale names are complicated, try using $LANG, it might 60 " On windows locale names are complicated, try using $LANG, it might
61 " have been set by set_init_1(). 61 " have been set by set_init_1().
62 exe "runtime! lang/menu_" . tolower($LANG) . "*.vim" 62 " But don't match "slovak" when $LANG is "sl".
63 exe "runtime! lang/menu_" . tolower($LANG) . "[^a-z]*vim"
63 endif 64 endif
64 endif 65 endif
65 endif 66 endif
66 endif 67 endif
67 68