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.5.1 samples/hello_tk.rb
gettext-3.5.0 samples/hello_tk.rb
gettext-3.4.9 samples/hello_tk.rb
gettext-3.4.8 samples/hello_tk.rb
gettext-3.4.7 samples/hello_tk.rb
gettext-3.4.6 samples/hello_tk.rb
gettext-3.4.5 samples/hello_tk.rb
gettext-3.4.4 samples/hello_tk.rb
gettext-3.4.3 samples/hello_tk.rb
gettext-3.4.2 samples/hello_tk.rb
gettext-3.4.1 samples/hello_tk.rb
gettext-3.4.0 samples/hello_tk.rb
gettext-3.3.9 samples/hello_tk.rb
gettext-3.3.8 samples/hello_tk.rb
gettext-3.3.7 samples/hello_tk.rb
gettext-3.3.6 samples/hello_tk.rb
gettext-3.3.5 samples/hello_tk.rb
gettext-3.3.4 samples/hello_tk.rb
gettext-3.3.3 samples/hello_tk.rb
gettext-3.3.2 samples/hello_tk.rb