.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Locale::Maketext::Extract::Plugin::Mason 3" .TH Locale::Maketext::Extract::Plugin::Mason 3 2024-07-13 "perl v5.38.2" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME Locale::Maketext::Extract::Plugin::Mason \- HTML::Mason (aka Mason 1) and Mason (aka Mason 2) format parser .SH VERSION .IX Header "VERSION" version 1.00 .SH SYNOPSIS .IX Header "SYNOPSIS" .Vb 4 \& $plugin = Locale::Maketext::Extract::Plugin::Mason\->new( \& $lexicon # A Locale::Maketext::Extract object \& @file_types # Optionally specify a list of recognised file types \& ) \& \& $plugin\->extract($filename,$filecontents); .Ve .SH DESCRIPTION .IX Header "DESCRIPTION" Extracts strings to localise from Mason files. .SH "SHORT PLUGIN NAME" .IX Header "SHORT PLUGIN NAME" .Vb 1 \& mason .Ve .SH "VALID FORMATS" .IX Header "VALID FORMATS" HTML::Mason (aka Mason 1) Strings inside <&|/l>... and <&|/loc>... are extracted. .PP Mason (aka Mason 2) Strings inside <% $.floc { %>... or <% $.fl { %>... or <% \f(CW$self\fR\->floc { %>... or <% \f(CW$self\fR\->fl { %>... are extracted. .SH "KNOWN FILE TYPES" .IX Header "KNOWN FILE TYPES" .IP "All file types" 4 .IX Item "All file types" .SH "SEE ALSO" .IX Header "SEE ALSO" .PD 0 .IP xgettext.pl 4 .IX Item "xgettext.pl" .PD for extracting translatable strings from common template systems and perl source files. .IP Locale::Maketext::Lexicon 4 .IX Item "Locale::Maketext::Lexicon" .PD 0 .IP Locale::Maketext::Extract::Plugin::Base 4 .IX Item "Locale::Maketext::Extract::Plugin::Base" .IP Locale::Maketext::Extract::Plugin::FormFu 4 .IX Item "Locale::Maketext::Extract::Plugin::FormFu" .IP Locale::Maketext::Extract::Plugin::Perl 4 .IX Item "Locale::Maketext::Extract::Plugin::Perl" .IP Locale::Maketext::Extract::Plugin::TT2 4 .IX Item "Locale::Maketext::Extract::Plugin::TT2" .IP Locale::Maketext::Extract::Plugin::YAML 4 .IX Item "Locale::Maketext::Extract::Plugin::YAML" .IP Locale::Maketext::Extract::Plugin::TextTemplate 4 .IX Item "Locale::Maketext::Extract::Plugin::TextTemplate" .IP Locale::Maketext::Extract::Plugin::Generic 4 .IX Item "Locale::Maketext::Extract::Plugin::Generic" .PD .SH AUTHORS .IX Header "AUTHORS" Audrey Tang .SH COPYRIGHT .IX Header "COPYRIGHT" Copyright 2002\-2013 by Audrey Tang . .PP This software is released under the MIT license cited below. .SS "The ""MIT"" License" .IX Subsection "The ""MIT"" License" Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: .PP The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. .PP THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. .SH AUTHORS .IX Header "AUTHORS" .IP \(bu 4 Clinton Gormley .IP \(bu 4 Audrey Tang .SH "COPYRIGHT AND LICENSE" .IX Header "COPYRIGHT AND LICENSE" This software is Copyright (c) 2014 by Audrey Tang. .PP This is free software, licensed under: .PP .Vb 1 \& The MIT (X11) License .Ve