Karsten Hopp bcbede
To: vim_dev@googlegroups.com
Karsten Hopp bcbede
Subject: Patch 7.3.696
Karsten Hopp bcbede
Fcc: outbox
Karsten Hopp bcbede
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp bcbede
Mime-Version: 1.0
Karsten Hopp bcbede
Content-Type: text/plain; charset=UTF-8
Karsten Hopp bcbede
Content-Transfer-Encoding: 8bit
Karsten Hopp bcbede
------------
Karsten Hopp bcbede
Karsten Hopp bcbede
Patch 7.3.696
Karsten Hopp bcbede
Problem:    Message about added spell language can be wrong.
Karsten Hopp bcbede
Solution:   Give correct message. Add g:menutrans_set_lang_to to allow for
Karsten Hopp bcbede
            translation. (Jiri Sedlak)
Karsten Hopp bcbede
Files:      runtime/menu.vim
Karsten Hopp bcbede
Karsten Hopp bcbede
Karsten Hopp bcbede
*** ../vim-7.3.695/runtime/menu.vim	2010-08-15 21:57:11.000000000 +0200
Karsten Hopp bcbede
--- runtime/menu.vim	2012-10-21 01:17:27.000000000 +0200
Karsten Hopp bcbede
***************
Karsten Hopp bcbede
*** 434,439 ****
Karsten Hopp bcbede
--- 434,443 ----
Karsten Hopp bcbede
        let enc = &enc
Karsten Hopp bcbede
      endif
Karsten Hopp bcbede
  
Karsten Hopp bcbede
+     if !exists("g:menutrans_set_lang_to")
Karsten Hopp bcbede
+       let g:menutrans_set_lang_to = 'Set language to'
Karsten Hopp bcbede
+     endif
Karsten Hopp bcbede
+ 
Karsten Hopp bcbede
      let found = 0
Karsten Hopp bcbede
      let s = globpath(&rtp, "spell/*." . enc . ".spl")
Karsten Hopp bcbede
      if s != ""
Karsten Hopp bcbede
***************
Karsten Hopp bcbede
*** 441,448 ****
Karsten Hopp bcbede
        for f in split(s, "\n")
Karsten Hopp bcbede
  	let nm = substitute(f, '.*spell[/\\]\(..\)\.[^/\\]*\.spl', '\1', "")
Karsten Hopp bcbede
  	if nm != "en" && nm !~ '/'
Karsten Hopp bcbede
  	  let found += 1
Karsten Hopp bcbede
! 	  let menuname = '&Tools.&Spelling.Set\ language\ to\ "' . nm . '"'
Karsten Hopp bcbede
  	  exe 'an 40.335.' . n . ' ' . menuname . ' :set spl=' . nm . ' spell<CR>'
Karsten Hopp bcbede
  	  let s:undo_spellang += ['aun ' . menuname]
Karsten Hopp bcbede
  	endif
Karsten Hopp bcbede
--- 445,453 ----
Karsten Hopp bcbede
        for f in split(s, "\n")
Karsten Hopp bcbede
  	let nm = substitute(f, '.*spell[/\\]\(..\)\.[^/\\]*\.spl', '\1', "")
Karsten Hopp bcbede
  	if nm != "en" && nm !~ '/'
Karsten Hopp bcbede
+           let _nm = nm
Karsten Hopp bcbede
  	  let found += 1
Karsten Hopp bcbede
! 	  let menuname = '&Tools.&Spelling.' . escape(g:menutrans_set_lang_to, "\\. \t|") . '\ "' . nm . '"'
Karsten Hopp bcbede
  	  exe 'an 40.335.' . n . ' ' . menuname . ' :set spl=' . nm . ' spell<CR>'
Karsten Hopp bcbede
  	  let s:undo_spellang += ['aun ' . menuname]
Karsten Hopp bcbede
  	endif
Karsten Hopp bcbede
***************
Karsten Hopp bcbede
*** 452,458 ****
Karsten Hopp bcbede
      if found == 0
Karsten Hopp bcbede
        echomsg "Could not find other spell files"
Karsten Hopp bcbede
      elseif found == 1
Karsten Hopp bcbede
!       echomsg "Found spell file " . nm
Karsten Hopp bcbede
      else
Karsten Hopp bcbede
        echomsg "Found " . found . " more spell files"
Karsten Hopp bcbede
      endif
Karsten Hopp bcbede
--- 457,463 ----
Karsten Hopp bcbede
      if found == 0
Karsten Hopp bcbede
        echomsg "Could not find other spell files"
Karsten Hopp bcbede
      elseif found == 1
Karsten Hopp bcbede
!       echomsg "Found spell file " . _nm
Karsten Hopp bcbede
      else
Karsten Hopp bcbede
        echomsg "Found " . found . " more spell files"
Karsten Hopp bcbede
      endif
Karsten Hopp bcbede
*** ../vim-7.3.695/src/version.c	2012-10-21 00:58:34.000000000 +0200
Karsten Hopp bcbede
--- src/version.c	2012-10-21 01:15:00.000000000 +0200
Karsten Hopp bcbede
***************
Karsten Hopp bcbede
*** 721,722 ****
Karsten Hopp bcbede
--- 721,724 ----
Karsten Hopp bcbede
  {   /* Add new patch number below this line */
Karsten Hopp bcbede
+ /**/
Karsten Hopp bcbede
+     696,
Karsten Hopp bcbede
  /**/
Karsten Hopp bcbede
Karsten Hopp bcbede
-- 
Karsten Hopp bcbede
BEDEVERE:        And what do you burn, apart from witches?
Karsten Hopp bcbede
FOURTH VILLAGER: ... Wood?
Karsten Hopp bcbede
BEDEVERE:        So why do witches burn?
Karsten Hopp bcbede
SECOND VILLAGER: (pianissimo) ... Because they're made of wood...?
Karsten Hopp bcbede
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp bcbede
Karsten Hopp bcbede
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp bcbede
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp bcbede
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp bcbede
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///