Sha256: 2437ba7f14b0b7d455b70ffad79f6b59ba298c1371c5e1657b46ae1eb667aefb
Contents?: true
Size: 259 Bytes
Versions: 4
Compression:
Stored size: 259 Bytes
Contents
# encoding: utf-8 filename, to = ARGV p filename p to Dir.glob("*/#{filename}.po").each do |path| data = IO.read(path) data.gsub!(/#{filename}/, to) p to_path = path.sub(/#{filename}/, to) File.open(to_path, "w") do |out| out.write data end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
gettext-2.2.1 | samples/po/test.rb |
gettext-2.2.0 | samples/po/test.rb |
ofm_gettext-2.0.1 | samples/po/test.rb |
ofm_gettext-2.0.0 | samples/po/test.rb |