1MAKETEXT(1)           User Contributed Perl Documentation          MAKETEXT(1)
2
3
4

NAME

6       maketext - translate and make messages
7

SYNOPSIS

9         maketext [OPTION] [--domain=TEXTDOMAIN] MSGKEY [PARAM...]
10         maketext [OPTION] -s MSGID [PARAM...]
11

DESCRIPTION

13       The "maketext" script translates a natural language message into the
14       user's language, by looking up the translation in a message MO file,
15       and process the plural transformation with Maketext.
16
17       The "maketext" script is a command-line interface to
18       Locale::Maketext::Gettext(3) (and Locale::Maketext(3)).  It can be used
19       in shell scripts, etc, to translate, maketext and return the result.
20       By this way, it enables Maketext to be integrated into other
21       programming languages/systems, like bash/csh, python, PHP, C, etc.  It
22       works like the command-line program gettext.
23
24       For example:
25
26         % maketext -s "[*,_1,virus was,viruses were] found in [*,_2,file,files]." 0 1
27         0 viruses were found in 1 file.
28         % maketext -s "[*,_1,virus was,viruses were] found in [*,_2,file,files]." 1 3
29         1 virus was found in 3 files.
30         %
31

OPTIONS

33       -d,--domain=TEXTDOMAIN
34           Retrieve translated messages from TEXTDOMAIN.
35
36       -s  Adds a new line to the end of the output so that it behaves like
37           the `echo' or the `gettext' command.
38
39       -h,--help
40           Display the help messages.
41
42       -V,--version
43           Display version information and exit.
44
45       MSGKEY
46           The original text used to look up translated text.
47
48       PARAM...
49           Parameters to Maketext for the plural and other text functions.
50

ENVIRONMENT

52       TEXTDOMAIN
53           TEXTDOMAIN is used to determine the text domain when the -d
54           parameter is not given.
55
56       TEXTDOMAINDIR
57           TEXTDOMAINDIR is used to search the message catelog/MO file if it
58           does not reside in the system locale directories.
59

NOTES

61       Maketext language function override, like "quant" or "numerate", is not
62       available here.  Suggestions are welcome.
63
64       The current system locale directory search order is: /usr/share/locale,
65       /usr/lib/locale, /usr/local/share/locale, /usr/local/lib/locale.
66       Suggestions are welcome.
67

BUGS

69       Report bugs to imacat <imacat@mail.imacat.idv.tw>
70

SEE ALSO

72       Locale::Maketext(3), Locale::Maketext::TPJ13(3),
73       Locale::Maketext::Gettext(3), Locale::Maketext::Gettext::Functions(3),
74       bindtextdomain(3), textdomain(3).  Also, please refer to the official
75       GNU gettext manual at <http://www.gnu.org/software/gettext/manual/>.
76

AUTHOR

78       imacat <imacat@mail.imacat.idv.tw>
79
81       Copyright (c) 2003-2007 imacat. All rights reserved. This program is
82       free software; you can redistribute it and/or modify it under the same
83       terms as Perl itself.
84
85
86
87perl v5.10.1                      2010-11-12                       MAKETEXT(1)
Impressum