App::rdapper::l10n(3)
β¨ NAME β¨
App::rdapper::l10n β it's the internationalisation (l10n, bestie, not the other one) support package for App::rdapper. π
πΈ DESCRIPTION πΈ
okay so the rdapper RDAP client is lowkey a polyglot π
β it can spit out output that's localised to whatever locale the user is running. The way it does that is with Locale::Maketext::Gettext plus a whole dictionary of translated strings living in .po files. no cap, that's the whole vibe.
π TRANSLATING STRINGS π
so rdapper has an undocumented command line option called --strings, and what it does is make the program print a .pot template straight to STDOUT. that's literally how the rdapper.pot file in the locale directory gets made. π
that locale directory is giving main character energy β it holds a subdirectory for every supported locale. wanna add a brand new locale? just make a new subdirectory and copy rdapper.pot into it, like this:
$ mkdir -p ja/LC_MESSAGES
$ cp rdapper.pot ja/LC_MESSAGES/rdapper.po
once you've finished editing rdapper.po, run mkmo.sh to compile the .po files into .mo files. π¦ those .mo files get installed automatically when rdapper is installed, so you don't gotta do anything extra, periodt.
you'll also need to edit the file l10.pm to add a new package. and it has to look exactly like this, no improvising:
package App::rdapper::l10n::ja;
use base qw(Locale::Maketext::Gettext);
1;
π«Ά CONTRIBUTING TRANSLATIONS π«Ά
translations are gratefully accepted π₯Ήβ¨ fr fr, we want them. to contribute one:
- fork the repository
<https://github.com/gbxyz/rdapper/fork> - make your edits
- submit a pull request
<https://github.com/gbxyz/rdapper/compare>
that's it, that's the whole thing. go be iconic. π
friendly reminder bestie: --strings is undocumented, so don't go treating it like a promise. π
and that's the page!! πβ¨ this one's from perl v5.42.3, dated 2026-10-02, and it's the user contributed perl documentation for App::rdapper::l10n(3). slay, go translate something. ππ¦πΈ
π¦ where this page comes from
- fedora 44: perl-rdapper 1.26-1.fc44 Β· 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