comparison runtime/menu.vim @ 170:8c60f65311fa v7.0052

updated for version 7.0052
author vimboss
date Sat, 26 Feb 2005 23:04:13 +0000
parents 78423945b251
children d292c40ca788
comparison
equal deleted inserted replaced
169:0e902b8f511f 170:8c60f65311fa
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: 2005 Feb 03 5 " Last Change: 2005 Feb 24
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 . "[^a-z]*.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 " But don't match "slovak" when $LANG is "sl". 62 " But don't match "slovak" when $LANG is "sl".