resx2po(1)

πŸ’– resx2po β€” the manual page, bestie edition πŸ’–

okay so. this is resx2po, a command from the Translate Toolkit 3.19.5, and it's a section 1 manual page (resx2po(1)). if you're an open source translator who's been stuck converting .resx files by hand, this one's for you, fr fr 🫢


✨ NAME ✨

resx2po β€” Convert .Net Resource (.resx) to Gettext PO localisation files. that's the whole job. it takes your .NET resource files and turns them into gettext PO files so translators can actually do their thing πŸ’…


🌸 SYNOPSIS 🌸

resx2po [--version] [-h|--help] [--manpage] [--progress PROGRESS]
[--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE]
[-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp]
[-P|--pot] [--filter FILTER] [--duplicates DUPLICATESTYLE]

look at her. all those flags. a whole wardrobe πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so it literally just says this:

See: http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/resx2po.html for examples and usage instructions.

and that's it!! that's the description!! the docs are doing the heavy lifting, and honestly? respect the confidence. go read that URL if you want examples and usage instructions, bestie, because the manpage itself is keeping it mysterious 😭✨


πŸŽ€ OPTIONS πŸŽ€

every single one of them, no skips, no shortcuts, no cap:

  • --version β€” show program's version number and exit. hit it and bounce πŸ‘‹
  • -h/--help β€” show this help message and exit. the classic "help me bestie" move πŸ’–
  • --manpage β€” output a manpage based on the help. yes, it will literally generate a manpage. meta, iconic, obsessed 🧚
  • --progress β€” show progress as: dots, none, bar, names, verbose. pick ur vibe: little dots, absolute silence, a whole bar, names, or full unhinged verbose mode 🌈
  • --errorlevel β€” show errorlevel as: none, message, exception, traceback. how much do you wanna know when things go sideways? none is the "not me looking" option πŸ’€
  • -i/--input β€” read from INPUT in resx format. this is where your stuff comes from πŸ“
  • -x/--exclude β€” exclude names matching EXCLUDE from input paths. bye felicia, not your problem πŸ‘‘
  • -o/--output β€” write to OUTPUT in po, pot formats. this is where the magic lands ✨
  • -t/--template β€” read from TEMPLATE in resx format. your blueprint, your blueprint πŸ’œ
  • -S/--timestamp β€” skip conversion if the output file has newer timestamp. lowkey the laziest and best feature here, it just goes "already done bestie, moving on" 😭
  • -P/--pot β€” output PO Templates (.pot) rather than PO files (.po). template girlies rise πŸŽ€
  • --filter β€” leaves to extract e.g. 'name,desc': (default: extract everything). so if you only want some of it, say which. otherwise she's taking the whole closet 🌸
  • --duplicates β€” what to do with duplicate strings (identical source text): merge, msgctxt (default: 'msgctxt'). two identical strings walk into a bar and you gotta decide β€” smash them together with merge, or keep them separate and distinct with msgctxt. the default is msgctxt, periodt πŸ’…

⚠️ heads up: --filter defaults to extracting everything unless you tell it otherwise, and --duplicates defaults to msgctxt, not merge. don't come for me if you assumed wrong 🫢

🌟 the sign-off 🌟

that's the whole page, bestie. brought to you by Translate Toolkit 3.19.5, living in the resx2po(1) manual. now go convert some resources and slay πŸ’–βœ¨πŸ¦‹πŸ’…

πŸ“¦ where this page comes from