aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/gems/gettext-2.1.0/samples/cgi/hellolib.rb
blob: 1e206bc7eb2f85b430c6289e5e79f3ed489eb1d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/ruby
# hellolib.rb
#
# Copyright (C) 2005-2009  Masao Mutoh
#
# This file is distributed under the same 
# license as Ruby-GetText-Package.
#

require 'gettext'

class HelloLib
  include GetText
  bindtextdomain("hellolib", "locale")
  def hello
    _("This message is from hellolib.")
  end
end