po2web2py(1)

πŸ“¦
version 3.18.0 Β· 3 versions
, in fedora 44

πŸ’… po2web2py β€” like, the manual page bestie

okay so real quick, this page lives in the Translate Toolkit 3.18.0 manual, section 1, and it's all about po2web2py. sit down, grab a strawberry πŸ“, we're doing this.


✨ NAME ✨

po2web2py β€” converts GNU/gettext PO files into web2py translation dictionaries (.py). that's it, that's the whole personality πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

po2web2py [--version] [-h|--help] [--manpage] [--progress PROGRESS]
[--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE]
[-o|--output] OUTPUT [-S|--timestamp] [--threshold PERCENT] [--fuzzy]
[--nofuzzy]

like, that's the whole vibe check in one block ✨


🌸 DESCRIPTION 🌸

okay so the actual tea β˜• on examples and usage instructions? it's over here:

http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/web2py2po.html

go look, iykyk. that's the page they're pointing you at, no cap. πŸ‘‘


πŸŽ€ OPTIONS πŸŽ€

here's where it gets iconic, every single flag, no skipping, periodt:

  • --version β€” shows the program's version number and then dips out. bye πŸ‘‹
  • -h/--help β€” prints this help message and exits. the classic.
  • --manpage β€” spits out a manpage built from the help. manpage-ception fr fr πŸ“œ
  • --progress β€” shows progress, and you pick the flavour: dots, none, bar, names, verbose. choose your fighter πŸ’…
  • --errorlevel β€” how loud do you want the errors? options are: none, message, exception, traceback. pick your drama level 😭
  • -i/--input β€” reads from INPUT in po, pot formats. feed it πŸ“₯
  • -x/--exclude β€” excludes names matching EXCLUDE from the input paths. not today, file 🚫
  • -o/--output β€” writes to OUTPUT in py format. glow up complete ✨
  • -S/--timestamp β€” skips the conversion if the output file has a newer timestamp. if it's fresher than you, it's not doing the work πŸ’€
  • --threshold β€” only converts files where the translation completion is above PERCENT. so if it's not translated enough? not invited to the party 🎈
  • --fuzzy β€” uses translations marked fuzzy. yes, even the messy ones 🫢
  • --nofuzzy β€” doesn't use translations marked fuzzy. this one's the default, bestie, so that's what you get if you say nothing 🌈

lowkey important: --nofuzzy is the default. if you want the fuzzy ones you gotta ask, okay? πŸ™ˆ

and that's the whole page!! every flag, every value, every default, all present and accounted for, we ate and left no crumbs πŸ‘‘πŸ’–

this was brought to you by the Translate Toolkit 3.18.0 β€” mwah, kiss the version number for me 😘

stay slay, go convert some PO files, and remember: fuzzy is opt-in 🧚✨

πŸ“¦ where this page comes from