Print this page
10067 Miscellaneous man page typos
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Andy Fiddaman <andy@omniosce.org>
Reviewed by: Volker A. Brandt <vab@bb-c.de>

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man1/msgfmt.1
          +++ new/usr/src/man/man1/msgfmt.1
↓ open down ↓ 8 lines elided ↑ open up ↑
   9    9  .SH SYNOPSIS
  10   10  .LP
  11   11  .nf
  12   12  \fBmsgfmt\fR [\fB-D\fR \fIdir\fR | \fB-\(midirectory\fR=\fIdir\fR]
  13   13       [\fB-f\fR | \fB-\(miuse-fuzzy\fR] [\fB-g\fR]
  14   14       [\fB-o\fR \fIoutput-file\fR | \fB-\(mioutput-file\fR=\fIoutput-file\fR]
  15   15       [\fB-s\fR] [\fB-\(mistrict\fR] [\fB-v\fR] [\fB-\(miverbose\fR] \fIfilename\fR.po...
  16   16  .fi
  17   17  
  18   18  .SH DESCRIPTION
  19      -.sp
  20   19  .LP
  21   20  The \fBmsgfmt\fR utility creates message object files from portable object
  22   21  files (\fIfilename\fR\fB\&.po\fR), without changing the portable object files.
  23   22  .sp
  24   23  .LP
  25   24  The \fB\&.po\fR file contains messages displayed to users by system commands or
  26   25  by application programs. \fB\&.po\fR files can be edited. The messages in these
  27   26  files can be rewritten in any language supported by the system.
  28   27  .sp
  29   28  .LP
  30   29  The \fBxgettext\fR(1) command can be used to create \fB\&.po\fR files from
  31   30  script or programs.
  32   31  .sp
  33   32  .LP
  34   33  \fBmsgfmt\fR interprets data as characters according to the current setting of
  35   34  the \fBLC_CTYPE\fR locale category or according to the codeset specified in the
  36   35  \fB\&.po\fR file.
  37   36  .SH OPTIONS
  38      -.sp
  39   37  .LP
  40   38  The following options are supported:
  41   39  .sp
  42   40  .ne 2
  43   41  .na
  44   42  \fB\fB-D\fR \fIdir\fR\fR
  45   43  .ad
  46   44  .br
  47   45  .na
  48   46  \fB\fB-\(midirectory=\fR\fIdir\fR\fR
↓ open down ↓ 79 lines elided ↑ open up ↑
 128  126  diagnoses input file anomalies which might represent translation errors. The
 129  127  msgid and msgstr strings are studied and compared. It is considered abnormal if
 130  128  one string starts or ends with a newline while the other does not. Also, if the
 131  129  string represents a format string used in a printf-like function, both strings
 132  130  should have the same number of % format specifiers, with matching types. If the
 133  131  flag \fBc-format\fR appears in the special comment '\fB#\fR' for this entry, a
 134  132  check is performed.
 135  133  .RE
 136  134  
 137  135  .SH USAGE
 138      -.sp
 139  136  .LP
 140  137  The format of portable object files (\fB\&.po\fR files) is defined as follows.
 141  138  Each \fB\&.po\fR file contains one or more lines, with each line containing
 142  139  either a comment or a statement. Comments start the line with a pound sign
 143  140  (\fB#\fR) and end with the newline character. All comments (except special
 144  141  comments described later) and empty lines are ignored. The format of a
 145  142  statement is:
 146  143  .sp
 147  144  .in +2
 148  145  .nf
↓ open down ↓ 87 lines elided ↑ open up ↑
 236  233  \fBmsgstr\fR[\fIn\fR] directives.
 237  234  .sp
 238  235  .LP
 239  236  The \fBmsgstr\fR directive specifies the target string associated with the
 240  237  \fImessage_identifier\fR string declared in the immediately preceding
 241  238  \fBmsgid\fR directive.
 242  239  .sp
 243  240  .LP
 244  241  The directive \fBmsgstr\fR[\fIn\fR] (where \fIn\fR = 0, 1, 2, ...) specifies
 245  242  the target string to be used with plural form handling functions
 246      -\fBngettext()\fR, \fBdngettext()\fR, and \fBdcngetttext()\fR.
      243 +\fBngettext()\fR, \fBdngettext()\fR, and \fBdcngettext()\fR.
 247  244  .sp
 248  245  .LP
 249  246  Message strings can contain the escape sequences \fB\\n\fR for newline,
 250  247  \fB\\t\fR for tab, \fB\\v\fR for vertical tab, \fB\\b\fR for backspace,
 251  248  \fB\\r\fR for carriage return, \fB\\f\fR for formfeed, \fB\\\fR for backslash,
 252  249  \fB\\"\fR for double quote, \fB\\a\fR for alarm, \fB\\ddd\fR for octal bit
 253  250  pattern, and \fB\\xDD\fR for hexadecimal bit pattern.
 254  251  .sp
 255  252  .LP
 256  253  Comments for a GNU-compatible message file should be in one of the following
↓ open down ↓ 89 lines elided ↑ open up ↑
 346  343  \fIcodeset\fR is used to indicate the codeset to be used to encode the message
 347  344  strings. If the output string's codeset is different from the message string's
 348  345  codeset, codeset conversion from the message string's codeset to the output
 349  346  string's codeset will be performed upon the call of \fBgettext()\fR,
 350  347  \fBdgettext()\fR, \fBdcgettext()\fR, \fBngettext()\fR, \fBdngettext()\fR, and
 351  348  \fBdcngettext()\fR for the GNU-compatible message catalogs. The output string's
 352  349  codeset is determined by the current locale's codeset (the return value of
 353  350  \fBnl_langinfo(CODESET\fR)) by default, and can be changed by the call of
 354  351  \fBbind_textdomain_codeset()\fR.
 355  352  .SS "Message catalog file format"
 356      -.sp
 357  353  .LP
 358  354  The \fBmsgfmt\fR utility can generate the message object both in Solaris
 359  355  message catalog file format and in GNU-compatible message catalog file format.
 360  356  If the \fB-s\fR option is specified and the input file is a Solaris \fB\&.po\fR
 361  357  file, the \fBmsgfmt\fR utility generates the message object in Solaris message
 362  358  catalog file format. If the \fB-g\fR option is specified and the input file is
 363  359  a GNU \fB\&.po\fR file, the \fBmsgfmt\fR utility generates the message object
 364  360  in GNU-compatible message catalog file format. If neither the \fB-s\fR nor
 365  361  \fB-g\fR option is specified, the \fBmsgfmt\fR utility determines the message
 366  362  catalog file format as follows:
↓ open down ↓ 93 lines elided ↑ open up ↑
 460  456  
 461  457  .sp
 462  458  .in +2
 463  459  .nf
 464  460  example% \fBmsgfmt -o hello.mo module1.po module2.po\fR
 465  461  .fi
 466  462  .in -2
 467  463  .sp
 468  464  
 469  465  .SH ENVIRONMENT VARIABLES
 470      -.sp
 471  466  .LP
 472  467  See \fBenviron\fR(5) for descriptions of the following environmental variables
 473  468  that affect the execution of \fBmsgfmt\fR: \fBLC_CTYPE\fR, \fBLC_MESSAGES\fR,
 474  469  and \fBNLSPATH\fR.
 475  470  .SH ATTRIBUTES
 476      -.sp
 477  471  .LP
 478  472  See \fBattributes\fR(5) for descriptions of the following attributes:
 479  473  .sp
 480  474  
 481  475  .sp
 482  476  .TS
 483  477  box;
 484  478  c | c
 485  479  l | l .
 486  480  ATTRIBUTE TYPE  ATTRIBUTE VALUE
 487  481  _
 488  482  CSI     Enabled
 489  483  .TE
 490  484  
 491  485  .SH SEE ALSO
 492      -.sp
 493  486  .LP
 494  487  \fBxgettext\fR(1), \fBgettext\fR(3C), \fBsetlocale\fR(3C), \fBattributes\fR(5),
 495  488  \fBenviron\fR(5)
 496  489  .SH NOTES
 497      -.sp
 498  490  .LP
 499  491  Installing message catalogs under the C locale is pointless, since they are
 500  492  ignored for the sake of efficiency.
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX