Locale:...nslator(3)
π Locale::TextDomain::OO::Translator β the translator class, bestie π
okay so welcome to the Locale::TextDomain::OO::Translator page, straight out of the User Contributed Perl Documentation, section 3 of your local manual. this is the whole vibe. grab a boba, we're doing i18n. π§β¨
$Id: Translator.pm 724 2018-12-24 11:50:32Z steffenw $
$HeadURL: svn+ssh://steffenw@svn.code.sf.net/p/perl-gettext-oo/code/module/trunk/lib/Locale/TextDomain/OO/Translator.pm $
β¨ VERSION β¨
1.035 β that's the one, that's the version, no notes. π
πΈ DESCRIPTION πΈ
so likeβ¦ this is the translator class. that's it, that's the girl. π
and the way you make her do stuff is you extend her with plugins, and those plugins show up as Roles. main character energy via extension, fr fr.
π¦ SYNOPSIS π¦
here's the whole serve:
require Locale::TextDomain::OO::Translator;
Locale::TextDomain::OO::Translator->new(
Locale::TextDomain::OO::Translator->load_plugins,
);
load the plugins, hand 'em to new, boom. iconic. π₯
π SUBROUTINES/METHODS π
π method new
see SYNOPSIS. that's the whole description, she said read the synopsis and i respect that so much. π
π class method load_plugins
this one gets called before new, okay? her whole job is loading the plugins.
$hash_ref = Locale::TextDomain::OO::Translator->load_plugins;
look at that hash ref go. π«
π method translate
called from Plugins only. not you. the plugins. iykyk.
$translation = $self->translate(... lots of parameters ...);
yes bestie, literally lots of parameters. they wrote it like that and i'm keeping it like that. π
π method run_filter
called from plugins only. again! plugins! only! π«Ά
$self->run_filter(\$translation);
note the backslash β it takes a reference to the translation. π
π EXAMPLE π
inside this distribution there's a directory named example. go read the file README in there first. then run the *.pl files. like, go on, they're right there. β
π DIAGNOSTICS π
confess
that's it. that's the diagnostic. she's confessing. π
π CONFIGURATION AND ENVIRONMENT π
none
nothing to configure, nothing in the environment, we're chill. π
π§ DEPENDENCIES π§
okay so she does NOT come alone, she comes with a whole entourage:
CarpClass::LoadLocale::TextDomain::OO::Singleton::LexiconLocale::TextDomain::OO::Util::JoinSplitLexiconKeysMooMooX::StrictConstructorMooX::Types::MooseLike::Basenamespace::autocleanLocale::TextDomain::OO::Role::Logger
squad goals, honestly. π
π INCOMPATIBILITIES π
not known
no drama detected. yet. π
π BUGS AND LIMITATIONS π
not known
same energy. nothing known. we move. β¨
πΈ AUTHOR πΈ
Steffen Winkler
thank you for your service, king. π
π LICENSE AND COPYRIGHT π
Copyright (c) 2013 - 2018, Steffen Winkler "<steffenw at cpan.org>". All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
so like, free software, same terms as Perl itself, redistribute and/or modify to your heart's content. slay. π«Ά
and that's the page, bestie!! this was rendered by perl v5.42.0 on 2025-07-25, and yes the manual name really does get all scrunched up like Locale:...nslator(3) at the edges β she's just doing her best. mwah. π
β¨
π¦ where this page comes from
- fedora 43: perl-Locale-TextDomain-OO 1.036-19.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms