mirror of
https://https.git.savannah.gnu.org/git/gettext.git
synced 2026-01-31 03:45:49 +00:00
* 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.
9 lines
208 B
Ruby
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 }
|