home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.3 / 7.3.696 < prev    next >
Encoding:
Internet Message Format  |  2012-11-20  |  2.9 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.3.696
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.3.696
  11. Problem:    Message about added spell language can be wrong.
  12. Solution:   Give correct message. Add g:menutrans_set_lang_to to allow for
  13.             translation. (Jiri Sedlak)
  14. Files:      runtime/menu.vim
  15.  
  16.  
  17. *** ../vim-7.3.695/runtime/menu.vim    2010-08-15 21:57:11.000000000 +0200
  18. --- runtime/menu.vim    2012-10-21 01:17:27.000000000 +0200
  19. ***************
  20. *** 434,439 ****
  21. --- 434,443 ----
  22.         let enc = &enc
  23.       endif
  24.   
  25. +     if !exists("g:menutrans_set_lang_to")
  26. +       let g:menutrans_set_lang_to = 'Set language to'
  27. +     endif
  28.       let found = 0
  29.       let s = globpath(&rtp, "spell/*." . enc . ".spl")
  30.       if s != ""
  31. ***************
  32. *** 441,448 ****
  33.         for f in split(s, "\n")
  34.       let nm = substitute(f, '.*spell[/\\]\(..\)\.[^/\\]*\.spl', '\1', "")
  35.       if nm != "en" && nm !~ '/'
  36.         let found += 1
  37. !       let menuname = '&Tools.&Spelling.Set\ language\ to\ "' . nm . '"'
  38.         exe 'an 40.335.' . n . ' ' . menuname . ' :set spl=' . nm . ' spell<CR>'
  39.         let s:undo_spellang += ['aun ' . menuname]
  40.       endif
  41. --- 445,453 ----
  42.         for f in split(s, "\n")
  43.       let nm = substitute(f, '.*spell[/\\]\(..\)\.[^/\\]*\.spl', '\1', "")
  44.       if nm != "en" && nm !~ '/'
  45. +           let _nm = nm
  46.         let found += 1
  47. !       let menuname = '&Tools.&Spelling.' . escape(g:menutrans_set_lang_to, "\\. \t|") . '\ "' . nm . '"'
  48.         exe 'an 40.335.' . n . ' ' . menuname . ' :set spl=' . nm . ' spell<CR>'
  49.         let s:undo_spellang += ['aun ' . menuname]
  50.       endif
  51. ***************
  52. *** 452,458 ****
  53.       if found == 0
  54.         echomsg "Could not find other spell files"
  55.       elseif found == 1
  56. !       echomsg "Found spell file " . nm
  57.       else
  58.         echomsg "Found " . found . " more spell files"
  59.       endif
  60. --- 457,463 ----
  61.       if found == 0
  62.         echomsg "Could not find other spell files"
  63.       elseif found == 1
  64. !       echomsg "Found spell file " . _nm
  65.       else
  66.         echomsg "Found " . found . " more spell files"
  67.       endif
  68. *** ../vim-7.3.695/src/version.c    2012-10-21 00:58:34.000000000 +0200
  69. --- src/version.c    2012-10-21 01:15:00.000000000 +0200
  70. ***************
  71. *** 721,722 ****
  72. --- 721,724 ----
  73.   {   /* Add new patch number below this line */
  74. + /**/
  75. +     696,
  76.   /**/
  77.  
  78. -- 
  79. BEDEVERE:        And what do you burn, apart from witches?
  80. FOURTH VILLAGER: ... Wood?
  81. BEDEVERE:        So why do witches burn?
  82. SECOND VILLAGER: (pianissimo) ... Because they're made of wood...?
  83.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  84.  
  85.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  86. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  87. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  88.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  89.