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