]> git.ipfire.org Git - thirdparty/gettext.git/commit
xgettext: Add Ruby support.
authorBruno Haible <bruno@clisp.org>
Sun, 26 Apr 2020 22:19:07 +0000 (00:19 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 26 Apr 2020 22:23:15 +0000 (00:23 +0200)
commit6c39c38b094db79b59ee38b1a0320cb3713f5fc9
tree14c4aa6c2a981cee2ae6440443730b22a1378af9
parentc4da9b03f016dbf1f956e42d4cc3262e9efc11fb
xgettext: Add Ruby support.

* gettext-tools/src/x-ruby.h: New file.
* gettext-tools/src/x-ruby.c: New file.
* gettext-tools/src/xgettext.h (verbose): New declaration.
* gettext-tools/src/xgettext.c: Include x-ruby.h.
(verbose): New declaration.
(flag_table_ruby): New variable.
(long_options): Add '--verbose'.
(main): Update for Ruby. Handle '-v'/'--verbose' option.
(usage): Document the '-L Ruby' and '-v' options.
(xgettext_record_flag, language_to_extractor, extension_to_language): Update for
Ruby.
* gettext-tools/src/Makefile.am (noinst_HEADERS): Add x-ruby.h.
(xgettext_SOURCES): Add x-ruby.c.
* gettext-tools/src/FILES: Mention x-ruby.h, x-ruby.c.
* gettext-tools/tests/xgettext-ruby-1: New file.
* gettext-tools/tests/format-ruby-1: New file.
* gettext-tools/tests/format-ruby-2: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.
* gettext-tools/doc/gettext.texi (Ruby): New section.
* gettext-tools/doc/xgettext.texi: Document the '-L Ruby' and '-v' options.
* HACKING: Document the recommended Ruby packages.
* NEWS: Mention the Ruby support.
14 files changed:
HACKING
NEWS
gettext-tools/doc/gettext.texi
gettext-tools/doc/xgettext.texi
gettext-tools/src/FILES
gettext-tools/src/Makefile.am
gettext-tools/src/x-ruby.c [new file with mode: 0644]
gettext-tools/src/x-ruby.h [new file with mode: 0644]
gettext-tools/src/xgettext.c
gettext-tools/src/xgettext.h
gettext-tools/tests/Makefile.am
gettext-tools/tests/format-ruby-1 [new file with mode: 0755]
gettext-tools/tests/format-ruby-2 [new file with mode: 0755]
gettext-tools/tests/xgettext-ruby-1 [new file with mode: 0755]