rc2po(1)

πŸ’– rc2po(1) β€” the Windows RC ➑️ Gettext PO glow-up πŸ’–

okay bestie, sit down, hydrate, and let me tell you about rc2po, the iconic little command from Translate Toolkit 3.19.5 that takes your Windows RC files and converts them into Gettext PO localization files. it's giving translator-girlboss. it's giving pipeline. periodt. πŸŽ€


✨ NAME ✨

rc2po β€” Convert Windows RC files to Gettext PO localization files.

no cap, that's literally the whole job description. πŸ¦‹


✨ SYNOPSIS ✨

rc2po [--version] [-h|--help] [--manpage] [--progress PROGRESS]
[--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE]
[-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp]
[-P|--pot] [--charset CHARSET] [-l|--lang LANG] [--sublang SUBLANG]
[--duplicates DUPLICATESTYLE]

look at her. all those flags. main character energy fr fr. πŸ‘‘


✨ DESCRIPTION ✨

so like, for actual examples and usage instructions, go read this:

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

that's the homework, bestie. i'm not the one who wrote the tutorial. 😭


✨ OPTIONS ✨

every single one of these matters, so we're going through all of them. no skipping. not me being thorough πŸ’…

  • --version β€” show the program's version number and then dip. exit.
  • -h/--help β€” show this help message and exit. your lil emergency button 🫢
  • --manpage β€” output a manpage based on the help. meta?? a manpage about manpages. obsessed.
  • --progress β€” show progress as: dots, none, bar, names, verbose. pick your vibe check πŸ“Š
  • --errorlevel β€” show errorlevel as: none, message, exception, traceback. how loudly do you want to be shouted at when things go wrong πŸ’€
  • -i/--input β€” read from INPUT in nls, rc formats. this is where your stuff lives.
  • -x/--exclude β€” exclude names matching EXCLUDE from input paths. not today, that file. πŸ™ˆ
  • -o/--output β€” write to OUTPUT in po, pot formats. this is where the magic lands ✨
  • -t/--template β€” read from TEMPLATE in nls, rc formats. for when you need a reference bestie.
  • -S/--timestamp β€” skip conversion if the output file has newer timestamp. lazy in the most efficient way possible, and honestly? valid. 😌
  • -P/--pot β€” output PO Templates (.pot) rather than PO files (.po). template-girl autumn πŸ“
  • --charset β€” charset to use to decode the RC files (autodetection is used by default). she'll figure it out herself unless you tell her otherwise πŸ’œ
  • -l/--lang β€” LANG entry (default: None)
  • --sublang β€” SUBLANG entry (default: None)
  • --duplicates β€” what to do with duplicate strings (identical source text): merge, msgctxt (default: 'msgctxt'). choose wisely, the default is already giving 🧚
heads up: when an option says default: None, that's genuinely the default β€” nothing is set unless you set it. don't come for me, that's just what the manpage says. 🌸

and that's the whole page, bestie!! every flag, every value, every default, exactly as written β€” i would never gatekeep. now go convert some RC files and slay πŸ’…πŸŒˆ

sending you love from Translate Toolkit 3.19.5 β€” rc2po(1), out. bye bestie, ily, drink water πŸ«ΆπŸ’–

πŸ“¦ where this page comes from