Sha256: 65e4a4f874e3c22f68348e7efb43c6cc48270fddef38a16414601be93f901a5b

Contents?: true

Size: 404 Bytes

Versions: 14

Compression:

Stored size: 404 Bytes

Contents

#!/usr/bin/ruby
# hello_textdomain.rb - sample for GetText.textdomain.
#
# Copyright (C) 2005, 2006 Masao Mutoh
# This file is distributed under the same license as Ruby-GetText-Package.

# hello.rb calles hello textdomain first.
require 'hello'

module HelloTextDomain
  include GetText

  textdomain("hello")

  module_function 
  def hello
    puts _("Hello World\n")
  end
end

HelloTextDomain.hello

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
gettext-1.10.0-mswin32 samples/hello_textdomain.rb
gettext-1.9.0-mswin32 samples/hello_textdomain.rb
gettext-1.8.0-mswin32 samples/hello_textdomain.rb
gettext-1.7.0-mswin32 samples/hello_textdomain.rb
gettext-1.6.0-mswin32 samples/hello_textdomain.rb
gettext-1.10.0 samples/hello_textdomain.rb
gettext-1.6.0 samples/hello_textdomain.rb
gettext-1.8.0 samples/hello_textdomain.rb
gettext-1.7.0 samples/hello_textdomain.rb
gettext-1.9.0 samples/hello_textdomain.rb
gettext-1.90.0 samples/hello_textdomain.rb
gettext-1.92.0 samples/hello_textdomain.rb
gettext-1.91.0 samples/hello_textdomain.rb
gettext-1.93.0 samples/hello_textdomain.rb