Sha256: a260f486a1c5a99e7bb45ffd5cd8d1a90f850602b696964f51af574d9c9ab1f6

Contents?: true

Size: 456 Bytes

Versions: 22

Compression:

Stored size: 456 Bytes

Contents

#!/usr/bin/ruby
# hello2.po - sample for _() and module
#
# Copyright (C) 2002-2004 Masao Mutoh
# This file is distributed under the same license as Ruby-GetText-Package.

require 'rubygems'
require 'gettext'

module Hello
  include GetText

  bindtextdomain("hello2", :path => "locale")

  module_function
  def hello
    num = 1
    puts _("One is %{num}\n") % {:num => num}
    puts _("Hello %{world}\n") % {:world => _("World")}
  end
end

Hello.hello

Version data entries

22 entries across 22 versions & 5 rubygems

Version Path
experteer-gettext-2.0.4.1 samples/hello2.rb
experteer-gettext-2.0.4.2 samples/hello2.rb
experteer-gettext-2.0.4 samples/hello2.rb
grosser-gettext-2.0.0 samples/hello2.rb
gettext-2.2.1 samples/hello2.rb
gettext-2.2.0 samples/hello2.rb
ofm_gettext-2.0.1 samples/hello2.rb
ofm_gettext-2.0.0 samples/hello2.rb
fair-gettext-2.0.7 samples/hello2.rb
fair-gettext-2.0.6 samples/hello2.rb
fair-gettext-2.0.5 samples/hello2.rb
fair-gettext-2.0.4 samples/hello2.rb
fair-gettext-2.0.3 samples/hello2.rb
fair-gettext-2.0.2 samples/hello2.rb
fair-gettext-2.0.1 samples/hello2.rb
fair-gettext-2.0.0 samples/hello2.rb
gettext-2.1.0 samples/hello2.rb
gettext-2.0.2 samples/hello2.rb
gettext-2.0.1 samples/hello2.rb
gettext-2.0.0 samples/hello2.rb