App::rdapper::l10n(3)

πŸ“¦
version 1.26 Β· 4 versions
, in fedora 44

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

  1. fork the repository <https://github.com/gbxyz/rdapper/fork>
  2. make your edits
  3. 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