ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages

 

This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles.

This manual page is associated with the Mac OS X developer tools. The software or headers described may not be present on your Mac OS X installation until you install the developer tools package. This package is available on your Mac OS X installation DVD, and the latest versions can be downloaded from developer.apple.com.

For more information about the manual page format, see the manual page for manpages(5).



XGETTEXT(1)                          User Contributed Perl Documentation                         XGETTEXT(1)



NAME
       xgettext.pl - Extract translatable strings from source

SYNOPSIS
       xgettext.pl [OPTION] [INPUTFILE]...

DESCRIPTION
       This program extracts translatable strings from given input files, or from STDIN if none are given.

       Please see Locale::Maketext::Extract for a list of supported input file formats.

OPTIONS
       Mandatory arguments to long options are mandatory for short options too.  Similarly for optional
       arguments.

       Input file location:


       INPUTFILE...
           Files to extract messages from.  If not specified, STDIN is assumed.

       -f, --files-from=FILE
           Get list of input files from FILE.

       -D, --directory=DIRECTORY
           Add DIRECTORY to list for input files search.

       Input file format:


       -u, --use-gettext-style
           Specifies that the source programs uses the Gettext style (e.g.  %1) instead of the Maketext
           style (e.g. "[_1]") in its localization calls.

       Output file location:


       -d, --default-domain=NAME
           Use NAME.po for output, instead of "messages.po".

       -o, --output=FILE
           PO file name to be written or incrementally updated; "-" means writing to STDOUT.

       -p, --output-dir=DIR
           Output files will be placed in directory DIR.

       Output details:


       -g, --gnu-gettext
           Enables GNU gettext interoperability by printing "#, perl-maketext-format" before each entry that
           has "%" variables.

SEE ALSO
       Locale::Maketext::Extract, Locale::Maketext::Lexicon::Gettext, Locale::Maketext

AUTHORS
       Audrey Tang <cpan@audreyt.org>

COPYRIGHT
       Copyright 2002, 2003, 2004 by Audrey Tang <cpan@audreyt.org>.

       This program is free software; you can redistribute it and/or modify it under the same terms as Perl
       itself.

       See <http://www.perl.com/perl/misc/Artistic.html

POD ERRORS
       Hey! The above document had some coding errors, which are explained below:

       Around line 47:
           '=item' outside of any '=over'

       Around line 53:
           You forgot a '=back' before '=head2'



perl v5.8.8                                      2006-06-15                                      XGETTEXT(1)

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.