Locale:...on::Auto(3)
Hey bestie π welcome to the Locale::Maketext::Lexicon::Auto(3) page β yes, the header is doing that Locale:...on::Auto(3) thing, and itβs a User Contributed Perl Documentation moment. This is a Locale::Maketext helper, and honestly itβs giving βprototype now, localize laterβ energy. π¦
β¨ NAME β¨
Locale::Maketext::Lexicon::Auto β Auto fallback lexicon for Maketext. Slay, thatβs the whole name. π
πΈ VERSION πΈ
Itβs version 1.00, bestie. Periodt. π
π SYNOPSIS π
okay so hereβs the setup, literally:
package Hello::I18N;
use base 'Locale::Maketext';
use Locale::Maketext::Lexicon {
en => ['Auto'],
# ... other languages
};
π DESCRIPTION π
This module builds a simple Lexicon hash that contains nothing but:
(
'_AUTO' => 1)
That tells Locale::Maketext that no localizing is needed β just use the lookup key as the returned string. Iconic. β¨
It is especially useful if youβre starting to prototype a program, and do not want to deal with the localization files yet. Itβs giving lowkey genius. π§
β οΈ CAVEATS β οΈ
Okay but real talk: if the key to->maketextbegins with a_,Locale::Maketextwill still throw an exception. Yep. π See "CONTROLLING LOOKUP FAILURE" inLocale::Maketextfor how to prevent it.
π₯ SEE ALSO π₯
Locale::MaketextLocale::Maketext::Lexicon
Go read those, iykyk. π«Ά
π AUTHORS π
Audrey Tang <cpan@audreyt.org>
π COPYRIGHT π
Copyright 2002 - 2013 by Audrey Tang <cpan@audreyt.org>.
This software is released under the MIT license cited below. π
π 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:
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 π
Clinton Gormley <drtech@cpan.org>Audrey Tang <cpan@audreyt.org>
β COPYRIGHT AND LICENSE β
This software is Copyright (c) 2014 by Audrey Tang. π«Ά
This is free software, licensed under:
The MIT (X11) License
Thatβs the whole page, bestie π β source/version vibes say perl v5.40.2, dated 2025-01-03, with the footer manual tag Locale:...on::Auto(3). Mwah, go prototype something cute. π
π¦ where this page comes from
- alpine 3.22: perl-locale-maketext-lexicon-doc 1.00-r6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms