MooX::L...ain::OO(3)

πŸ“¦
version 0.001 Β· 2 versions
, in fedora 43

✨ 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:

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/>


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