1Locale::Maketext::ExtraUcste:r:PCloungtirni:b:uLFtooecrdamlFPeue:(r:3lM)aDkoectuemxetn:t:aEtxitornact::Plugin::FormFu(3)
2
3
4

NAME

6       Locale::Maketext::Extract::Plugin::FormFu - FormFu format parser
7

SYNOPSIS

9           $plugin = Locale::Maketext::Extract::Plugin::FormFu->new(
10               $lexicon            # A Locale::Maketext::Extract object
11               @file_types         # Optionally specify a list of recognised file types
12           )
13
14           $plugin->extract($filename,$filecontents);
15

DESCRIPTION

17       HTML::FormFu uses a config-file to generate forms, with built in
18       support for localizing errors, labels etc.
19

SHORT PLUGIN NAME

21           formfu
22

VALID FORMATS

24       We extract the text after any key which ends in "_loc":
25
26           content_loc: this is the string
27           message_loc: ['Max length [_1]', 10]
28

KNOWN FILE TYPES

30       .yaml
31       .yml
32       .conf
33

REQUIRES

35       YAML
36

NOTES

38       The docs for the YAML module describes it as alpha code. It is not as
39       tolerant of errors as YAML::Syck. However, because it is pure Perl, it
40       is easy to hook into.
41
42       I have seen it enter endless loops, so if xgettext.pl hangs, try
43       running it again with "--verbose --verbose" (twice) enabled, so that
44       you can see if the fault lies with YAML.  If it does, either correct
45       the YAML source file, or use the file_types to exclude that file.
46

SEE ALSO

48       xgettext.pl
49           for extracting translatable strings from common template systems
50           and perl source files.
51
52       YAML
53       HTML::FormFu
54       Locale::Maketext::Lexicon
55       Locale::Maketext::Extract::Plugin::Base
56       Locale::Maketext::Extract::Plugin::Perl
57       Locale::Maketext::Extract::Plugin::TT2
58       Locale::Maketext::Extract::Plugin::YAML
59       Locale::Maketext::Extract::Plugin::Mason
60       Locale::Maketext::Extract::Plugin::TextTemplate
61       Locale::Maketext::Extract::Plugin::Generic
62

AUTHORS

64       Clinton Gormley <clint@traveljury.com>
65
67       Copyright 2002-2008 by Audrey Tang <cpan@audreyt.org>.
68
69       This software is released under the MIT license cited below.
70
71   The "MIT" License
72       Permission is hereby granted, free of charge, to any person obtaining a
73       copy of this software and associated documentation files (the
74       "Software"), to deal in the Software without restriction, including
75       without limitation the rights to use, copy, modify, merge, publish,
76       distribute, sublicense, and/or sell copies of the Software, and to
77       permit persons to whom the Software is furnished to do so, subject to
78       the following conditions:
79
80       The above copyright notice and this permission notice shall be included
81       in all copies or substantial portions of the Software.
82
83       THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
84       OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
85       MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
86       IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
87       CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
88       TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
89       SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
90
91
92
93perl v5.12.2                      2L0o1c0a-l0e8:-:1M0aketext::Extract::Plugin::FormFu(3)
Impressum