Sha256: 9c8e1fad96bcbbbbef349ddfc67c631eb163d97dde41263221ab911faf585908

Contents?: true

Size: 350 Bytes

Versions: 14

Compression:

Stored size: 350 Bytes

Contents

#!/usr/bin/ruby
# hello_noop.rb - sample for GetText.N_().
#
# Copyright (C) 2002-2004 Masao Mutoh
# This file is distributed under the same license as Ruby-GetText-Package.

require 'gettext'

include GetText

bindtextdomain("hello_noop", "locale")

msgs = [N_("Hello World"), N_("Hello World2")]

p msgs
msgs.each do |msg|
  print _(msg), "\n"
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
gettext-1.5.0-mswin32 samples/hello_noop.rb
gettext-1.4.0-mswin32 samples/hello_noop.rb
gettext-1.3.0-mswin32 samples/hello_noop.rb
gettext-1.2.0-mswin32 samples/hello_noop.rb
gettext-1.1.1-mswin32 samples/hello_noop.rb
gettext-1.1.0-mswin32 samples/hello_noop.rb
gettext-1.0.0-mswin32 samples/hello_noop.rb
gettext-1.0.0 samples/hello_noop.rb
gettext-1.1.1 samples/hello_noop.rb
gettext-1.1.0 samples/hello_noop.rb
gettext-1.2.0 samples/hello_noop.rb
gettext-1.5.0 samples/hello_noop.rb
gettext-1.4.0 samples/hello_noop.rb
gettext-1.3.0 samples/hello_noop.rb