diff options
author | Bram Moolenaar <Bram@vim.org> | 2012-10-21 01:21:59 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2012-10-21 01:21:59 +0200 |
commit | f3408e76fb500d56557489cd533d19d116fc260b (patch) | |
tree | ef15872d930ce52ce02acb6e64d3be7ee6346b32 | |
parent | b6101cf77f3e9e8cc33a94a0c01db3bcde96eba9 (diff) | |
download | vim-f3408e76fb500d56557489cd533d19d116fc260b.zip |
updated for version 7.3.696
Problem: Message about added spell language can be wrong.
Solution: Give correct message. Add g:menutrans_set_lang_to to allow for
translation. (Jiri Sedlak)
-rw-r--r-- | runtime/menu.vim | 9 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 9 insertions, 2 deletions
diff --git a/runtime/menu.vim b/runtime/menu.vim index 91ab6e83f..19c488f69 100644 --- a/runtime/menu.vim +++ b/runtime/menu.vim @@ -434,6 +434,10 @@ if has("spell") let enc = &enc endif + if !exists("g:menutrans_set_lang_to") + let g:menutrans_set_lang_to = 'Set language to' + endif + let found = 0 let s = globpath(&rtp, "spell/*." . enc . ".spl") if s != "" @@ -441,8 +445,9 @@ if has("spell") for f in split(s, "\n") let nm = substitute(f, '.*spell[/\\]\(..\)\.[^/\\]*\.spl', '\1', "") if nm != "en" && nm !~ '/' + let _nm = nm let found += 1 - let menuname = '&Tools.&Spelling.Set\ language\ to\ "' . nm . '"' + let menuname = '&Tools.&Spelling.' . escape(g:menutrans_set_lang_to, "\\. \t|") . '\ "' . nm . '"' exe 'an 40.335.' . n . ' ' . menuname . ' :set spl=' . nm . ' spell<CR>' let s:undo_spellang += ['aun ' . menuname] endif @@ -452,7 +457,7 @@ if has("spell") if found == 0 echomsg "Could not find other spell files" elseif found == 1 - echomsg "Found spell file " . nm + echomsg "Found spell file " . _nm else echomsg "Found " . found . " more spell files" endif diff --git a/src/version.c b/src/version.c index 73ca9637d..4cd98d3a2 100644 --- a/src/version.c +++ b/src/version.c @@ -720,6 +720,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 696, +/**/ 695, /**/ 694, |