Skip to content

Instantly share code, notes, and snippets.

View romainpiel's full-sized avatar

Romain Piel romainpiel

  • Toulouse, France
  • 11:15 (UTC +02:00)
View GitHub Profile
@romainpiel
romainpiel / convertLocalizable.rb
Last active December 18, 2015 21:49 — forked from florianmski/convertLocalizable.rb
iOS localizable to Android xml String resource converter
#!/usr/bin/ruby
# based on https://github.com/tmurakam/cashflow/blob/0a01ac9e0350dfb04979986444244f8daf4cb5a8/android/convertStrings.rb
# support comments and Converter such as "%@", "%d", "%0.1f"...
# in your directory : ./main.rb Localizable.strings
file = File.open("strings.xml", "w");
file.puts "<?xml version=\"1.0\" encoding=\"utf-8\"?>"
file.puts "<resources>"