Locale:...Template(3)

πŸ’… NAME πŸ’…

ok so bestie, this page is all about Locale::Maketext::Extract::Plugin::TextTemplate β€” like, the manual page for it, which is page Locale:...Template(3) if you're typing it into a terminal. it's a Text::Template format parser, and it's here to pull out the strings you need to localise. periodt. ✨


🌸 VERSION 🌸

version 1.00 β€” tiny number, big energy.


πŸŽ€ SYNOPSIS πŸŽ€

here's the whole vibe, copy it exactly bestie:

$plugin = Locale::Maketext::Extract::Plugin::TextTemplate->new(
    $lexicon            # A Locale::Maketext::Extract object
    @file_types         # Optionally specify a list of recognised file types
)

$plugin->extract($filename,$filecontents);

so yeah, you spin up a $plugin with a $lexicon (that's a Locale::Maketext::Extract object, no cap), and @file_types is optional if you wanna say which file types you recognise. then you hit it with $plugin->extract($filename,$filecontents); and it does the thing. 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

it extracts strings to localise from Text::Template files. that's the whole job. she's focused, she's employed, she's iconic. πŸ’–


🧚 SHORT PLUGIN NAME 🧚

text

yep, that's it. short and cute, like a nickname. iykyk.


⭐ VALID FORMATS ⭐

sentences between STARTxxx and ENDxxx are extracted individually. so like, START + whatever + END, and every sentence in between gets pulled out one by one. individually! not all glommed together. slay. ✨


🌈 KNOWN FILE TYPES 🌈

all file types. every single one. she does not discriminate, she does not gatekeep. πŸ‘‘


πŸ’œ SEE ALSO πŸ’œ

  • xgettext.pl β€” for extracting translatable strings from common template systems and perl source files.
  • Locale::Maketext::Lexicon
  • Locale::Maketext::Extract::Plugin::Base
  • Locale::Maketext::Extract::Plugin::FormFu
  • Locale::Maketext::Extract::Plugin::Perl
  • Locale::Maketext::Extract::Plugin::TT2
  • Locale::Maketext::Extract::Plugin::YAML
  • Locale::Maketext::Extract::Plugin::Mason
  • Locale::Maketext::Extract::Plugin::Generic

like a whole friend group of plugins. go say hi to all of them. 🫢


πŸ‘‘ AUTHORS πŸ‘‘

Audrey Tang <cpan@audreyt.org>


Copyright 2002-2013 by Audrey Tang <cpan@audreyt.org>.

This software is released under the MIT license cited below.

✨ The "MIT" License ✨

ok so this next bit is the actual legal text and we do not paraphrase legal text, bestie β€” here it is, word for word, because the vibes can change but the facts cannot:

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: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 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.

πŸ’€ AUTHORS πŸ’€

(yeah, there's a second AUTHORS section β€” she said "again" and honestly, respect. 😭)

  • Clinton Gormley <drtech@cpan.org>
  • Audrey Tang <cpan@audreyt.org>

This software is Copyright (c) 2014 by Audrey Tang.

This is free software, licensed under:

The MIT (X11) License

and that's the whole page, bestie β€” no notes, ate and left zero crumbs. 🧡✨ this little beauty is from perl v5.40.2, dated 2025-01-03, so like, she's got the timestamp and everything. go forth and extract those strings. πŸŽ€πŸ’–

πŸ“¦ where this page comes from