Sha256: 4f60c18e70c8d2b798a5d45e58d0502da78908212c69eb5a1b7d15e42ada636c

Contents?: true

Size: 315 Bytes

Versions: 14

Compression:

Stored size: 315 Bytes

Contents

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

require 'gettext'

include GetText

bindtextdomain("hello2", "locale")

num = 1
printf(_("One is %d\n"), num)
printf(_("Hello %s\n"), _("World"))

Version data entries

14 entries across 14 versions & 1 rubygems

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