android2po(1)

android2po πŸ’…βœ¨

okay bestie, welcome to android2po, part of the Translate Toolkit (we're on version 3.19.5, keep up πŸ’–). she lives in section 1 of the manual, and she has ONE job: turning your Android string files into Gettext PO localization files. glow-up for your translations, fr fr πŸ¦‹


🌸 NAME 🌸

android2po β€” converts Android string files into Gettext PO localization files. that's it, that's the whole vibe. no cap. ✨


πŸŽ€ SYNOPSIS πŸŽ€

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

like, that's the whole invocation lineup. slay. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

hii so the real tea is over here:

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

that's where the examples and usage instructions live. go read it, i'll wait 🫢


πŸ’– OPTIONS πŸ’–

every single one, no skips, no crumbs left behind:

  • --version β€” shows the program's version number and then dips out. bye πŸ‘‹
  • -h/--help β€” prints this help message and exits. the classic. iconic.
  • --manpage β€” spits out a manpage based on the help. meta? lowkey yes 😭
  • --progress β€” picks how you wanna see progress. your choices: dots, none, bar, names, verbose. pick your fighter ✨
  • --errorlevel β€” how much error drama do you want? options: none, message, exception, traceback. traceback is giving full unhinged 😳
  • -i/--input β€” read from INPUT, in xml format. your source material, bestie πŸ“₯
  • -x/--exclude β€” exclude names matching EXCLUDE from the input paths. bye to the files you don't want 🚫
  • -o/--output β€” write to OUTPUT, in po, pot formats. the destination ✨
  • -t/--template β€” read from TEMPLATE, in xml format. a lil reference blueprint πŸ“„
  • -S/--timestamp β€” skips the conversion if the output file already has a newer timestamp. efficient queen πŸ‘‘
  • --duplicates β€” what to do when you've got duplicate strings (identical source text)? your options are merge or msgctxt. the default is 'msgctxt'. choose wisely bestie πŸ’€

heads up: --progress and --errorlevel and the rest all take those exact values β€” don't freestyle the spelling, the program is not as forgiving as i am πŸ™ˆ

and that's the whole page, you ate it up πŸ’œ go convert some strings, main character energy only.

written under the banner of Translate Toolkit 3.19.5 β€” that's the source and the version, and the date's baked in too, so consider this my cute lil sign-off: mwah, enjoy the manpage, ily πŸŽ€πŸ’–βœ¨

πŸ“¦ where this page comes from