Sha256: c5fc8d2a2e4dd28e00dade3fc31d86b5482d8b67ce168a141bf36f631bbecbbb

Contents?: true

Size: 327 Bytes

Versions: 10

Compression:

Stored size: 327 Bytes

Contents

#!/usr/bin/ruby
# hello_tk.rb - sample for Ruby/TK
#
# Copyright (C) 2004 Masao Mutoh
# This file is distributed under the same license as gettext.

require 'rubygems'
require 'gettext'
require 'tk'

include GetText
bindtextdomain("hello_tk", :path => "locale")

TkLabel.new {
  text _("hello, tk world")
  pack
}

Tk.mainloop

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
gettext-2.3.9 samples/hello_tk.rb
gettext-2.3.8 samples/hello_tk.rb
gettext-2.3.7 samples/hello_tk.rb
gettext-2.3.6 samples/hello_tk.rb
gettext-2.3.5 samples/hello_tk.rb
gettext-2.3.4 samples/hello_tk.rb
gettext-2.3.3 samples/hello_tk.rb
gettext-2.3.2 samples/hello_tk.rb
gettext-2.3.1 samples/hello_tk.rb
gettext-2.3.0 samples/hello_tk.rb