Skip to content

Commit 48f1743

Browse files
committed
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)
1 parent b453d68 commit 48f1743

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

runtime/menu.vim

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,15 +434,20 @@ if has("spell")
434434
let enc = &enc
435435
endif
436436

437+
if !exists("g:menutrans_set_lang_to")
438+
let g:menutrans_set_lang_to = 'Set language to'
439+
endif
440+
437441
let found = 0
438442
let s = globpath(&rtp, "spell/*." . enc . ".spl")
439443
if s != ""
440444
let n = 300
441445
for f in split(s, "\n")
442446
let nm = substitute(f, '.*spell[/\\]\(..\)\.[^/\\]*\.spl', '\1', "")
443447
if nm != "en" && nm !~ '/'
448+
let _nm = nm
444449
let found += 1
445-
let menuname = '&Tools.&Spelling.Set\ language\ to\ "' . nm . '"'
450+
let menuname = '&Tools.&Spelling.' . escape(g:menutrans_set_lang_to, "\\. \t|") . '\ "' . nm . '"'
446451
exe 'an 40.335.' . n . ' ' . menuname . ' :set spl=' . nm . ' spell<CR>'
447452
let s:undo_spellang += ['aun ' . menuname]
448453
endif
@@ -452,7 +457,7 @@ if has("spell")
452457
if found == 0
453458
echomsg "Could not find other spell files"
454459
elseif found == 1
455-
echomsg "Found spell file " . nm
460+
echomsg "Found spell file " . _nm
456461
else
457462
echomsg "Found " . found . " more spell files"
458463
endif

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,8 @@ static char *(features[]) =
719719

720720
static int included_patches[] =
721721
{ /* Add new patch number below this line */
722+
/**/
723+
696,
722724
/**/
723725
695,
724726
/**/

0 commit comments

Comments
 (0)