1Locale::Po4a::Common(3)User Contributed Perl DocumentatioLnocale::Po4a::Common(3)
2
3
4

NAME

6       Locale::Po4a::Common - Common parts of the po4a scripts and utils
7

DESCRIPTION

9       Locale::Po4a::Common contains common parts of the po4a scripts and some
10       useful functions used along the other modules.
11

FUNCTIONS

13       Showing output messages
14
15       ·   show_version($)
16
17           Shows the current version of the script, and a short copyright mes‐
18           sage. It takes the name of the script as an argument.
19
20       ·   wrap_msg($@)
21
22           This function displays a message the same way than sprintf() does,
23           but wraps the result so that they look nice on the terminal.
24
25       ·   wrap_mod($$@)
26
27           This function works like wrap_msg(), but it takes a module name as
28           the first argument, and leaves a space at the left of the message.
29
30       ·   wrap_ref_mod($$$@)
31
32           This function works like wrap_msg(), but it takes a file:line ref‐
33           erence as the first argument, a module name as the second one, and
34           leaves a space at the left of the message.
35
36       Wrappers for other modules
37
38       ·   Locale::Gettext
39
40           When the Locale::Gettext module cannot be loaded, this module pro‐
41           vide dummy (empty) implementation of the following functions. In
42           that case, po4a messages won't get translated but the program will
43           continue to work.
44
45           If Locale::gettext is present, this wrapper also calls setlo‐
46           cale(LC_MESSAGES, "") so callers don't depend on the POSIX module
47           either.
48
49           ·   bindtextdomain($$)
50
51           ·   textdomain($)
52
53           ·   gettext($)
54
55           ·   dgettext($$)
56

AUTHORS

58        Jordi Vilalta <jvprat@gmail.com>
59
61       Copyright 2005 by SPI, inc.
62
63       This program is free software; you may redistribute it and/or modify it
64       under the terms of GPL (see the COPYING file).
65
66
67
68perl v5.8.8                       2008-06-01           Locale::Po4a::Common(3)
Impressum