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