Dist::...sg_scan(3pm)
β¨ NAME β¨
Dist::Zilla::App::Command::msg_scan β bestie, this is the dzil command that scans your localization strings and drops them into a translation template π
It lives in the Dist::...sg_scan(3pm) manpage (yes the name got a little chopped, we still love her) and she's here to make your app speak every language. Periodt. π
π SYNOPSIS π
First, set her up in your dist.ini:
[LocaleTextDomain]
textdomain = My-App
lang_dir = po
Then on the command line, just:
dzil msg-scan
That's it. That's the whole vibe. β¨
π¦ DESCRIPTION π¦
Okay so here's the tea: this command scans all the Perl modules in your distribution and creates or updates a GNU gettext-style language translation template. It's giving i18n main character energy, fr fr. π
She pulls all her settings from the LocaleTextDomain plugin (so go configure that first, bestie), and β important β she requires that the GNU gettext utilities be available. No gettext utils, no scan. Not negotiable. π
The GNU gettext situation lives over at <http://www.gnu.org/software/gettext/> if you need to go get it. π«Ά
π OPTIONS π
--xgettextβ where thexgettextprogram lives. That's the tool distributed with GNU gettext (<http://www.gnu.org/software/gettext/>). Defaults to justxgettext, which totally works if it's chillin' in yourPATH. π--encodingβ the encoding you're assuming your Perl modules are written in. Defaults toUTF-8, because of course it does, she's iconic. π--pot-fileβ the name of the template file she writes to. Defaults to$lang_dir/$textdomain.pot. π--copyright-holderβ name of the application copyright holder. Defaults to whatever copyright holder you defined indist.ini. πΈ--bugs-emailβ email address where translation bug reports should be sent. Defaults to the email address of the first distribution author, if available. π
π« AUTHOR π«
David E. Wheeler <david@justatheory.com>
π CONTRIBUTOR π
Charles McGarvey <ccm@cpan.org>
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2012-2017 by David E. Wheeler.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Okay that's the whole page bestie, no cap π«Ά go scan some strings and slay. perl v5.26.2 Β· 2018-07-08 Β· Dist::...sg_scan(3pm) π β¨
π¦ where this page comes from
- debian bookworm: libdist-zilla-localetextdomain-perl 0.91-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libdist-zilla-localetextdomain-perl 0.91-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libdist-zilla-localetextdomain-perl 0.91-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libdist-zilla-localetextdomain-perl 0.91-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms