po2json(1)
π po2json β NAME π
ok so bestie, po2json is a lil command-line icon that converts Gettext PO localization files into JSON files. that's it, that's the whole vibe. po in, json out, slay β¨
part of the Translate Toolkit era, version 3.12.1 β put some respect on the version number fr fr π
π¦ SYNOPSIS π¦
like, exactly this, no cap:
po2json [--version] [-h|--help] [--manpage] [--progress PROGRESS]
[--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE]
[-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp]
[--threshold PERCENT] [--fuzzy] [--nofuzzy] [--removeuntranslated]
ok lowkey that's a lot of brackets but she's organized π
πΈ DESCRIPTION πΈ
so the manpage itself literally just points you here:
See: http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/json2po.html for examples and usage instructions.
yes bestie, json2po.html β that's what the original says, that's what you're getting. the docs are the main character here, go read them π«Ά i'm just the messenger π§
β¨ OPTIONS β¨
okay here's the full menu, nothing skipped, nothing hidden, we don't gatekeep π
--versionβ show the program's version number and dip (exit) π¨-h,--helpβ show this help message and bail--manpageβ output a manpage based on the help. so meta. so iconic. it's giving self-aware--progressβ show progress as one of:dots,none,bar,names,verbose. pick your aesthetic π--errorlevelβ show errorlevel as one of:none,message,exception,traceback. choose your own chaos level π-i,--inputβ read from INPUT inpo,potformats π₯-x,--excludeβ exclude names matching EXCLUDE from the input paths. bye felicia π-o,--outputβ write to OUTPUT injsonformat π€-t,--templateβ read from TEMPLATE injsonformat π§©-S,--timestampβ skip conversion if the output file has a newer timestamp. she's lazy in a smart way, i respect it β°--thresholdβ only convert files where the translation completion is above PERCENT π₯--fuzzyβ use translations marked fuzzy π--nofuzzyβ don't use translations marked fuzzy (this is the default, just so you know) π--removeuntranslatedβ remove untranslated strings from the output. clean girl aesthetic π§Ή
and that's the whole list β all 14 of them, accounted for, no shortcuts taken, we ate and left no crumbs π
quick vibe check:--fuzzyand--nofuzzyare opposites and--nofuzzyis the default, so if you don't pass anything you're already in no-fuzzy territory. just so there's no confusion later, bestie π
π that's the whole page π¦
no SEE ALSO, no bugs section, no author block β she's short and to the point, main character energy only β
this little masterpiece comes courtesy of Translate Toolkit 3.12.1 β that's the source and version, right from the footer, and i'm telling you here instead of copy-pasting the footer line like a boring person π
mwah, go convert some PO files, you got this πππ
π¦ where this page comes from
- opensuse-leap 16.0: python313-translate-toolkit 3.12.1-bp160.1.1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms