poreencode(1)
π poreencode π
okay so bestie, meet poreencode β she's a lil Translate Toolkit icon whose whole job is re-encoding every file in a PO directory to whatever encoding you want. that's it. that's the gig. and she ate. π
β¨ NAME β¨
poreencode β re-encode all files of a PO directory to the specified encoding π
π¦ SYNOPSIS π¦
poreencode encoding PO-directory
so like, encoding is the encoding you wanna convert to, bestie β think UTF-8 energy β¨ β and PO-directory is a directory full of existing PO files. that's the whole vibe check.
πΈ DESCRIPTION πΈ
you hand her a directory of existing PO files, and she converts them all to a given encoding. literally that simple. no notes. π
π OPERATION π
okay so here's the tea on how she actually does it ββ¨
poreencode is out here making use of the Gettext tool msgconv(1) to do her thing. she traverses the PO directory, finds all the PO files, and then uses msgconv(1) to convert each PO file from whatever encoding it was in to the new encoding. no cap. π«Ά
π BUGS π
ngl, like most Gettext tools, they do a little bit more than what's documented π. msgconv(1) will decide which strings are in fact fuzzy and delete the fuzzy marking β not a lot, but bestie, you do need to diff. π
this is probably related to #, fuzzy entries that aren't placed in the place Gettext expects them. so like. yeah. not me warning you twice. π
β οΈ fr fr: diff your files after running this. the fuzzy marking situation is real and it will lowkey catch you off guard.
that's the whole page bestie, go forth and re-encode π
this has been poreencode(1) from Translate Toolkit 1.10.0 β mwah, ily, go slay πβ¨π
π¦ where this page comes from
- debian bookworm: translate-toolkit 3.8.4-1 Β· GPL-2.0-or-later
- debian trixie: translate-toolkit 3.15.1-1 Β· GPL-2.0-or-later
- fedora 43: translate-toolkit 3.15.6-3.fc43 Β· GPL-2.0-or-later
- fedora 43: translate-toolkit 3.16.1-1.fc43 Β· GPL-2.0-or-later
- fedora 44: translate-toolkit 3.18.0-2.fc44 Β· GPL-2.0-or-later
- ubuntu jammy: translate-toolkit 3.6.0-2 Β· GPL-2.0-or-later
- ubuntu noble: translate-toolkit 3.12.2-1ubuntu1 Β· GPL-2.0-or-later
- ubuntu questing: translate-toolkit 3.15.1-1
- ubuntu resolute: translate-toolkit 3.18.1-1 Β· GPL-2.0-or-later
- ubuntu stonking: translate-toolkit 3.19.5-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms