Sha256: c129de060bff937c2d88c4c9c039a9afa99f79533d226a1189b8cc7209d3d79b

Contents?: true

Size: 347 Bytes

Versions: 14

Compression:

Stored size: 347 Bytes

Contents

#!/usr/bin/ruby
# hello_plural.po - 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_plural", "locale")

(0..2).each do |v|
  printf(n_("There is an apple.\n", "There are %d apples.\n", v), v)
end

Version data entries

14 entries across 14 versions & 1 rubygems

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