csv2po(1)

πŸ’– csv2po β€” ok bestie, let's turn your spreadsheets into translation files πŸ’–

Hi hi hiii 🫢 this is the csv2po manual page, from the Translate Toolkit (version 3.19.5, she's iconic). If you're holding a .csv file and crying because you need a Gettext PO file instead β€” girl, same, but also: this tool is literally made for exactly that. No cap.


✨ NAME ✨

csv2po β€” Convert Comma-Separated Value (.csv) files to Gettext PO localization files. That's it, that's the whole job, and she does it flawlessly. πŸ’…


🌸 SYNOPSIS 🌸

csv2po [--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] [--columnorder] [--duplicates
DUPLICATESTYLE]

Look at her. All those flags. Main character energy honestly. πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so the actual how-to lives over here, and you should 100% go read it because it has examples and usage instructions and everything:

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

That's the spot for examples and usage instructions β€” the manual page (this one, hi) is just the flag menu, iykyk. ✨


πŸ’œ OPTIONS πŸ’œ

Every single one, in order, nothing skipped, because we do not gatekeep here:

  • --version β€” show program's version number and exit. Quick lil "who am I" moment. πŸ‘‘
  • -h/--help β€” show this help message and exit.
  • --manpage β€” output a manpage based on the help. (Manpage-ception. So meta. Obsessed.) 😭
  • --progress β€” show progress as: dots, none, bar, names, verbose. Pick your vibe check for how much you wanna watch it chug along. πŸ“
  • --errorlevel β€” show errorlevel as: none, message, exception, traceback. Basically: how much detail do you want when things go sideways? Choose wisely bestie.
  • -i/--input β€” read from INPUT in csv format. Your source spreadsheet, the whole reason we're here. πŸ“₯
  • -x/--exclude β€” exclude names matching EXCLUDE from input paths. Not today, certain files. Not today. πŸ™ˆ
  • -o/--output β€” write to OUTPUT in po, pot formats. Where the glow-up gets saved. πŸ’Ύ
  • -t/--template β€” read from TEMPLATE in po, pot, pot formats. (Yes, pot is listed twice in the original β€” I'm just reporting the facts, fr fr, not touching it.) 🌈
  • -S/--timestamp β€” skip conversion if the output file has newer timestamp. She said "already fresh, not redoing my work." πŸ’…
  • -P/--pot β€” output PO Templates (.pot) rather than PO files (.po). Template era instead of translation era. ✨
  • --charset β€” set charset to decode from csv files. Because encoding drama is real and we respect it. 🧚
  • --columnorder β€” specify the order and position of columns (location,source,target,context). You tell her how your columns are laid out, she doesn't have to guess. Periodt.
  • --duplicates β€” what to do with duplicate strings (identical source text): merge, msgctxt (default: 'msgctxt'). So if the same source text shows up twice, you either merge them or give them msgctxt β€” and the default is 'msgctxt'. πŸ”₯

Heads up bestie πŸ’€ the duplicate-string answer matters β€” if you've got identical source text hanging around, pick merge or msgctxt on purpose instead of letting it surprise you. The default is 'msgctxt', just so you know what you're getting. 🫢

🌟 SEE ALSO 🌟

Um, there isn't a SEE ALSO section in this page β€” but the DESCRIPTION points you at the Translate Toolkit docs page above, which is basically the same energy. Go look at her. She's pretty. πŸ’–


Okay that's the whole page, you made it, I'm so proud of you. πŸŽ€ This was the csv2po page from Translate Toolkit 3.19.5 β€” go convert literally everything, you're gonna slay. πŸ’…βœ¨πŸ¦‹


πŸ“¦ where this page comes from