lkundrak / rpms / vim

Forked from rpms/vim 4 years ago
Clone
d12698c
To: vim-dev@vim.org
d12698c
Subject: Patch 7.2.004
d12698c
Fcc: outbox
d12698c
From: Bram Moolenaar <Bram@moolenaar.net>
d12698c
Mime-Version: 1.0
d12698c
Content-Type: text/plain; charset=ISO-8859-1
d12698c
Content-Transfer-Encoding: 8bit
d12698c
------------
d12698c
d12698c
Patch 7.2.004
d12698c
Problem:    Cscope help message is not translated.
d12698c
Solution:   Put it in _(). (Dominique Pelle)
d12698c
Files:      src/if_cscope.c, src/if_cscope.h
d12698c
d12698c
d12698c
*** ../vim-7.2.003/src/if_cscope.c	Tue Jun 24 23:52:06 2008
d12698c
--- src/if_cscope.c	Mon Aug 25 04:34:19 2008
d12698c
***************
d12698c
*** 74,80 ****
d12698c
      { "add",	cs_add,
d12698c
  		N_("Add a new database"),     "add file|dir [pre-path] [flags]", 0 },
d12698c
      { "find",	cs_find,
d12698c
! 		N_("Query for a pattern"),    FIND_USAGE, 1 },
d12698c
      { "help",	cs_help,
d12698c
  		N_("Show this message"),      "help", 0 },
d12698c
      { "kill",	cs_kill,
d12698c
--- 74,80 ----
d12698c
      { "add",	cs_add,
d12698c
  		N_("Add a new database"),     "add file|dir [pre-path] [flags]", 0 },
d12698c
      { "find",	cs_find,
d12698c
! 		N_("Query for a pattern"),    "find c|d|e|f|g|i|s|t name", 1 },
d12698c
      { "help",	cs_help,
d12698c
  		N_("Show this message"),      "help", 0 },
d12698c
      { "kill",	cs_kill,
d12698c
***************
d12698c
*** 1180,1186 ****
d12698c
  	(void)smsg((char_u *)_("%-5s: %-30s (Usage: %s)"),
d12698c
  				      cmdp->name, _(cmdp->help), cmdp->usage);
d12698c
  	if (strcmp(cmdp->name, "find") == 0)
d12698c
! 	    MSG_PUTS(FIND_HELP);
d12698c
  	cmdp++;
d12698c
      }
d12698c
  
d12698c
--- 1180,1195 ----
d12698c
  	(void)smsg((char_u *)_("%-5s: %-30s (Usage: %s)"),
d12698c
  				      cmdp->name, _(cmdp->help), cmdp->usage);
d12698c
  	if (strcmp(cmdp->name, "find") == 0)
d12698c
! 	    MSG_PUTS(_("\n"
d12698c
! 		       "       c: Find functions calling this function\n"
d12698c
! 		       "       d: Find functions called by this function\n"
d12698c
! 		       "       e: Find this egrep pattern\n"
d12698c
! 		       "       f: Find this file\n"
d12698c
! 		       "       g: Find this definition\n"
d12698c
! 		       "       i: Find files #including this file\n"
d12698c
! 		       "       s: Find this C symbol\n"
d12698c
! 		       "       t: Find assignments to\n"));
d12698c
! 
d12698c
  	cmdp++;
d12698c
      }
d12698c
  
d12698c
*** ../vim-7.2.003/src/if_cscope.h	Thu Sep  6 17:38:58 2007
d12698c
--- src/if_cscope.h	Mon Aug 25 04:34:17 2008
d12698c
***************
d12698c
*** 42,58 ****
d12698c
   * f 7name	Find this file
d12698c
   * i 8name	Find files #including this file
d12698c
   */
d12698c
- #define	FIND_USAGE "find c|d|e|f|g|i|s|t name"
d12698c
- #define FIND_HELP "\n\
d12698c
-        c: Find functions calling this function\n\
d12698c
-        d: Find functions called by this function\n\
d12698c
-        e: Find this egrep pattern\n\
d12698c
-        f: Find this file\n\
d12698c
-        g: Find this definition\n\
d12698c
-        i: Find files #including this file\n\
d12698c
-        s: Find this C symbol\n\
d12698c
-        t: Find assignments to\n"
d12698c
- 
d12698c
  
d12698c
  typedef struct {
d12698c
      char *  name;
d12698c
--- 42,47 ----
d12698c
*** ../vim-7.2.003/src/version.c	Mon Aug 25 04:12:38 2008
d12698c
--- src/version.c	Mon Aug 25 04:29:53 2008
d12698c
***************
d12698c
*** 678,679 ****
d12698c
--- 678,681 ----
d12698c
  {   /* Add new patch number below this line */
d12698c
+ /**/
d12698c
+     4,
d12698c
  /**/
d12698c
d12698c
-- 
d12698c
If someone questions your market projections, simply point out that your
d12698c
target market is "People who are nuts" and "People who will buy any damn
d12698c
thing".  Nobody is going to tell you there aren't enough of those people
d12698c
to go around.
d12698c
				(Scott Adams - The Dilbert principle)
d12698c
d12698c
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
d12698c
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
d12698c
\\\        download, build and distribute -- http://www.A-A-P.org        ///
d12698c
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///