Sha256: 4ce3a5ebbcd7a0a215bd9d539805d63a284a9bbb80d887a16e133b7d27673fc2

Contents?: true

Size: 487 Bytes

Versions: 14

Compression:

Stored size: 487 Bytes

Contents

#!/usr/bin/ruby
# hellgtk.rb - sample for Ruby/GTK
#
# Copyright (C) 2001-2006 Masao Mutoh
# This file is distributed under the same license as Ruby-GetText-Package.

require 'gettext'
require 'gtk'

class LocalizedWindow < Gtk::Window
  include GetText

  bindtextdomain("hellogtk", "locale") 

  def initialize
    super
    signal_connect('delete-event') do
      Gtk.main_quit
    end

    add(Gtk::Label.new(_("hello, gtk world")))
  end
end

LocalizedWindow.new.show_all

Gtk.main

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
gettext-1.10.0-mswin32 samples/hellogtk.rb
gettext-1.9.0-mswin32 samples/hellogtk.rb
gettext-1.8.0-mswin32 samples/hellogtk.rb
gettext-1.7.0-mswin32 samples/hellogtk.rb
gettext-1.6.0-mswin32 samples/hellogtk.rb
gettext-1.10.0 samples/hellogtk.rb
gettext-1.7.0 samples/hellogtk.rb
gettext-1.6.0 samples/hellogtk.rb
gettext-1.8.0 samples/hellogtk.rb
gettext-1.9.0 samples/hellogtk.rb
gettext-1.90.0 samples/hellogtk.rb
gettext-1.91.0 samples/hellogtk.rb
gettext-1.92.0 samples/hellogtk.rb
gettext-1.93.0 samples/hellogtk.rb