web2py2po(1)

πŸ’– web2py2po β€” the glow-up page πŸ’–

okay bestie, sit DOWN, because we're about to turn your web2py translation dictionaries into GNU/gettext PO files and honestly?? it's giving main character energy. this lil legend lives in the Translate Toolkit fam (version 3.19.5, no cap) and it's here to convert .py translation dicts into proper PO/POT files like the icon it is. πŸ¦‹


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

that's the whole vibe right there πŸ‘‘


🌸 DESCRIPTION 🌸

so like, what even is this? it converts your web2py translation dictionaries in .py format into GNU/gettext PO files β€” fr fr. 🫢

and if you want the real tea (examples + usage instructions, the works), peek at:

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

that's the official docs, go sip β˜•


πŸŽ€ OPTIONS πŸŽ€

every. single. one. no skipping, we don't gatekeep here πŸ’…

  • --version β€” shows the program's version number and dips. ✌️
  • -h/--help β€” shows this help message and dips. 🫑
  • --manpage β€” outputs a whole manpage built from the help. iconic, honestly.
  • --progress β€” shows progress as: dots, none, bar, names, verbose. pick your vibe check. ✨
  • --errorlevel β€” shows errorlevel as: none, message, exception, traceback. so you know exactly how loudly it's gonna scream. 😭
  • -i/--input β€” reads from INPUT in py format. πŸ“₯
  • -x/--exclude β€” excludes names matching EXCLUDE from the input paths. not on my watch, bestie. πŸ™ˆ
  • -o/--output β€” writes to OUTPUT in po, pot formats. πŸ“€
  • -S/--timestamp β€” skips the conversion if the output file already has a newer timestamp. it knows when it's not needed, lowkey self-aware. 🧚
  • -P/--pot β€” outputs PO Templates (.pot) rather than PO files (.po). template era πŸ’œ
  • --duplicates β€” what to do with duplicate strings (identical source text): merge, msgctxt (default: 'msgctxt'). yep, msgctxt is the default, that's canon.
heads up bestie: --duplicates is literally about identical source text, so if you've got repeat strings in there, this is the setting that decides their fate β€” merge or msgctxt. the default is 'msgctxt', periodt. πŸ’–

and that's the whole page, angel 🌈 go forth and convert responsibly, and remember: every single flag above stays exactly as written, because accuracy is the actual slay. πŸ’…

β€” courtesy of your girl, running Translate Toolkit 3.19.5 🌟 (that's the source/version energy, and yeah, this page is dated, same as the original footer said). mwah πŸ’–βœ¨

πŸ“¦ where this page comes from