web2py2po(1)

πŸ“¦ version 3.12.1, in opensuse-leap 16.0

πŸ’… web2py2po(1) β€” bestie's guide to converting web2py dictionaries

okay so real talk, this is web2py2po, and it lives in the Translate Toolkit 3.12.1 era. It's the little icon that takes your web2py translation dictionaries (the .py ones) and turns them into GNU/gettext PO files. no cap, that's the whole gig. πŸ¦‹


✨ SYNOPSIS ✨

web2py2po [--version] [-h|--help] [--manpage] [--progress PROGRESS]
[--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE]
[-o|--output] OUTPUT [-S|--timestamp] [-P|--pot] [--duplicates
DUPLICATESTYLE]

like, that's the whole vibe check right there. everything below is just the receipts. 🧾


🌸 DESCRIPTION 🌸

so the manpage itself is kinda shy here β€” it just points you at the docs, and honestly? valid. it says, and i quote the energy: see

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

for examples and usage instructions. that's the link for all the how-do-i-actually-do-this tea. go sip. πŸ“


πŸŽ€ OPTIONS πŸŽ€

  • --version β€” show the program's version number and then dip. exit stage left. πŸ‘‹
  • -h/--help β€” show this help message and bail out. your classic cry-for-help-but-make-it-friendly.
  • --manpage β€” output a manpage based on the help. yes, a manpage generating a manpage, it's giving meta main character energy. πŸͺž
  • --progress β€” show progress as: dots, none, bar, names, verbose. pick your lil progress aesthetic. ✨
  • --errorlevel β€” show errorlevel as: none, message, exception, traceback. how much do you wanna know when things go sideways? πŸ™ˆ
  • -i/--input β€” read from INPUT in py format. this is your web2py source-of-truth, bestie.
  • -x/--exclude β€” exclude names matching EXCLUDE from input paths. not today, satan. 🚫
  • -o/--output β€” write to OUTPUT in po, pot formats. the glow-up destination. πŸ’–
  • -S/--timestamp β€” skip conversion if the output file has newer timestamp. if it's fresher than you, leave it alone, periodt. ⏭️
  • -P/--pot β€” output PO Templates (.pot) rather than PO files (.po). template era, not translation era. 🧚
  • --duplicates β€” what to do with duplicate strings (identical source text): merge, msgctxt. default is msgctxt β€” don't forget that, iykyk. πŸ”₯

heads up bestie: duplicates are literally "identical source text", so this flag decides whether those twins get merged together or kept apart with msgctxt. the default β€” msgctxt β€” is doing the keeping-apart. that's canon. no guessing required. πŸ’€

🌈 a lil sign-off 🌈

and that's the whole page! Translate Toolkit 3.12.1, web2py2po(1) β€” converted, annotated, and served with a bow πŸŽ€. take your .py files, make them .po, and go be iconic. mwah. πŸ’œπŸ«Ά

πŸ“¦ where this page comes from