Print this page
make: translate using gettext, rather than the unmaintainable catgets

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/make/bin/depvar.cc
          +++ new/usr/src/cmd/make/bin/depvar.cc
↓ open down ↓ 18 lines elided ↑ open up ↑
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright 1995 Sun Microsystems, Inc. All rights reserved.
  23   23   * Use is subject to license terms.
  24   24   */
  25   25  
  26   26  /*
  27   27   * Included files
  28   28   */
       29 +#include <libintl.h>
       30 +
  29   31  #include <mk/defs.h>
  30   32  #include <mksh/misc.h>          /* getmem() */
  31   33  
  32   34  /*
  33   35   * This file deals with "Dependency Variables".
  34   36   * The "-V var" command line option is used to indicate
  35   37   * that var is a dependency variable.  Used in conjunction with
  36   38   * the -P option the user is asking if the named variables affect
  37   39   * the dependencies of the given target.
  38   40   */
↓ open down ↓ 52 lines elided ↑ open up ↑
  91   93  
  92   94  /*
  93   95   * Print the results.  If any of the Dependency Variables
  94   96   * affected the dependencies then the dependencies potentially
  95   97   * differ because of these variables.
  96   98   */
  97   99  void
  98  100  depvar_print_results(void)
  99  101  {
 100  102          if (variant_deps) {
 101      -                printf(catgets(catd, 1, 234, "differ\n"));
      103 +                printf(gettext("differ\n"));
 102  104          } else {
 103      -                printf(catgets(catd, 1, 235, "same\n"));
      105 +                printf(gettext("same\n"));
 104  106          }
 105  107  }
 106  108  
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX