Skip to content

Instantly share code, notes, and snippets.

@Magisus
Created December 2, 2016 20:02
Show Gist options
  • Save Magisus/2a26519e72a4c84df9be6a5e9aaa51d5 to your computer and use it in GitHub Desktop.
Save Magisus/2a26519e72a4c84df9be6a5e9aaa51d5 to your computer and use it in GitHub Desktop.
rxgettext_help
Usage: /Users/aileen/.rbenv/versions/2.3.1/bin/rxgettext input.rb [-r parser.rb] [-o output.pot]
Extract translatable strings from given input files.
Specific options:
-o, --output=FILE write output to specified file
--package-name=NAME set package name in output
(PACKAGE)
--package-version=VERSION set package version in output
(VERSION)
--msgid-bugs-address=EMAIL set report e-mail address for msgid bugs
()
--copyright-holder=HOLDER set copyright holder in output
(THE PACKAGE'S COPYRIGHT HOLDER)
--copyright-year=YEAR set copyright year in output
(YEAR)
--output-encoding=ENCODING set encoding for output
(UTF-8)
--[no-]sort-output Generate sorted output
--[no-]sort-by-file Sort output by file location
--[no-]sort-by-msgid Sort output by msgid
--[no-]location Preserve '#: FILENAME:LINE' lines
--width=WIDTH Set output page width
(78)
--[no-]wrap Break long message lines, longer than the output page width, into several lines
(true)
-r, --require=library require the library before executing xgettext
-c, --add-comments[=TAG] If TAG is specified, place comment blocks starting with TAG and precedding keyword lines in output file
If TAG is not specified, place all comment blocks preceing keyword lines in output file
(default: no TAG)
-d, --debug run in debugging mode
-h, --help display this help and exit
--version display version information and exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment