MooX::L...ain::OO(3)
β¨ NAME β¨
MooX::Locale::TextDomain::OO β bestie, it gives you the API that translator modules use, but with zero actual translating going on. It's the vibe without the work. π
πΈ SYNOPSIS πΈ
{ package WonderBar;
use Moo;
with "MooX::Locale::TextDomain::OO";
sub tell_me { my $self = shift; $self->__("Hello world"); }
}
WonderBar->new->tell_me;
okay so you roll MooX::Locale::TextDomain::OO into your class with with, and boom β the magic translation methods just exist on your object now. β¨
π¦ DESCRIPTION π¦
MooX::Locale::TextDomain::OO
yeah. that's it. that's the whole description. the module describing itself by just... saying its own name. honestly? main character energy. π
π OVERLOADED METHODS π
π __ MSGID
hands you back the translation for MSGID. simple as. π«Ά
π __n MSGID, MSGID_PLURAL, COUNT
so like β if COUNT is equal to 1, you get the translation for MSGID. any other count? you get the translation for MSGID_PLURAL instead. singular girlies and plural girlies, both served. π«
π __p MSGCTXT, MSGID
returns the translation for MSGID but, like, in the MSGCTXT context. context is everything, no cap. π§
π AUTHOR π
Jens Rehsack, <rehsack at cpan.org> β icon, legend, the moment. π«‘
π BUGS π
found a bug? want a feature? please, please report it, don't just suffer in silence bestie:
- email:
bug-MooX-Locale-TextDomain-OO at rt.cpan.org - or slide into the web interface: <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=MooX-Locale-TextDomain-OO>
Jens gets notified, and then you automatically get notified as progress happens. it's giving mutual updates. it's giving communication. we love that for us. π
π SUPPORT π
you can pull up the docs for this module with the perldoc command, like so:
perldoc MooX::Locale::TextDomain::OO
and there's more info waiting for you here too:
- RT: CPAN's request tracker
<http://rt.cpan.org/NoAuth/Bugs.html?Dist=MooX-Locale-TextDomain-OO>
- AnnoCPAN: Annotated CPAN documentation
<http://annocpan.org/dist/MooX-Locale-TextDomain-OO>
- CPAN Ratings
<http://cpanratings.perl.org/m/MooX-Locale-TextDomain-OO>
- Search CPAN
<http://search.cpan.org/dist/MooX-Locale-TextDomain-OO/>
π LICENSE AND COPYRIGHT π
Copyright 2017 Jens Rehsack.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See <http://dev.perl.org/licenses/> for more information.
and that's the whole page, bestie!! this gem is documented under perl v5.42.0, dated 2025-07-25 β go forth and translate (or, y'know, don't, that's literally the point) πβ¨π
π¦ where this page comes from
- fedora 43: perl-MooX-Locale-TextDomain-OO 0.001-24.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