Bruno Haible 3207556643 New example 'hello-ruby'.
* gettext-tools/examples/hello-ruby: New directory, based on
gettext-tools/examples/hello-php.
* gettext-tools/examples/Makefile.am (EXAMPLESFILES, EXAMPLESDIRS): Update.
* gettext-tools/examples/po/Makefile.am (POTFILES, SMALLPOTS,
SMALLPOFILES_FOR_lang): Update.
* gettext-tools/examples/README: Update.
* gettext-tools/examples/check-examples: Handle this directory as well.
* NEWS: Mention the new example.
2024-12-16 20:39:16 +01:00

9 lines
208 B
Ruby

#!@RUBY@
require 'gettext'
include GetText
bindtextdomain("hello-ruby", :path => "@localedir@")
puts _("Hello, world!")
puts _("This program is running as process number %{pid}.") % { :pid => Process.pid }