Skip to content

Commit

Permalink
updated for version 7.3.696
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
brammool committed Oct 20, 2012
1 parent b453d68 commit 48f1743
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 7 additions & 2 deletions runtime/menu.vim
Expand Up @@ -434,15 +434,20 @@ 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 != ""
let n = 300
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
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -719,6 +719,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
696,
/**/
695,
/**/
Expand Down

0 comments on commit 48f1743

Please sign in to comment.