]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
updated for version 7.3.696 v7.3.696
authorBram Moolenaar <Bram@vim.org>
Sat, 20 Oct 2012 23:21:59 +0000 (01:21 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 20 Oct 2012 23:21:59 +0000 (01:21 +0200)
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)

runtime/menu.vim
src/version.c

index 91ab6e83fb5259d6c1901e028b63eb86894e4a2c..19c488f69c21521f3c3066dba6d9bc3c66db47f9 100644 (file)
@@ -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
index 73ca9637d5688af418ee11ee964496573e8425e2..4cd98d3a2e36dd1f195efd5bdb34ee8b9082e330 100644 (file)
@@ -719,6 +719,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    696,
 /**/
     695,
 /**/