Sha256: e3b9b66f95ac62c49fb49670d8a6e0f98737d586b6021a84e10082f724cdcadd

Contents?: true

Size: 240 Bytes

Versions: 18

Compression:

Stored size: 240 Bytes

Contents

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

18 entries across 18 versions & 4 rubygems

Version Path
experteer-gettext-2.0.4.1 samples/po/test.rb
experteer-gettext-2.0.4.2 samples/po/test.rb
experteer-gettext-2.0.4 samples/po/test.rb
grosser-gettext-2.0.0 samples/po/test.rb
fair-gettext-2.0.7 samples/po/test.rb
fair-gettext-2.0.6 samples/po/test.rb
fair-gettext-2.0.5 samples/po/test.rb
fair-gettext-2.0.4 samples/po/test.rb
fair-gettext-2.0.3 samples/po/test.rb
fair-gettext-2.0.2 samples/po/test.rb
fair-gettext-2.0.1 samples/po/test.rb
fair-gettext-2.0.0 samples/po/test.rb
gettext-2.1.0 samples/po/test.rb
gettext-2.0.1 samples/po/test.rb
gettext-2.0.2 samples/po/test.rb
gettext-2.0.0 samples/po/test.rb
gettext-2.0.3 samples/po/test.rb
gettext-2.0.4 samples/po/test.rb