Sha256: 9d80e9d53339627fc0396a2dacf6728846016c0f5e8f28b8e5a134b48133e7e2

Contents?: true

Size: 382 Bytes

Versions: 52

Compression:

Stored size: 382 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
base_dir = File.dirname(__FILE__)
bindtextdomain("hello_tk", :path => File.join(base_dir, "locale"))

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

Tk.mainloop

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
gettext-3.3.1 samples/hello_tk.rb
gettext-3.3.0 samples/hello_tk.rb
gettext-3.2.9 samples/hello_tk.rb
gettext-3.2.8 samples/hello_tk.rb
gettext-3.2.7 samples/hello_tk.rb
gettext-3.2.6 samples/hello_tk.rb
gettext-3.2.5 samples/hello_tk.rb
gettext-3.2.4 samples/hello_tk.rb
gettext-3.2.3 samples/hello_tk.rb
gettext-3.2.2 samples/hello_tk.rb
gettext-3.2.1 samples/hello_tk.rb
gettext-3.2.0 samples/hello_tk.rb
gettext-3.1.9 samples/hello_tk.rb
gettext-3.1.8 samples/hello_tk.rb
gettext-3.1.7 samples/hello_tk.rb
gettext-3.1.6 samples/hello_tk.rb
gettext-3.1.5 samples/hello_tk.rb
gettext-3.1.4 samples/hello_tk.rb
gettext-3.1.3 samples/hello_tk.rb
gettext-3.1.2 samples/hello_tk.rb