Skip to content

Instantly share code, notes, and snippets.

Avatar

Dorian Cussen doridori

View GitHub Profile
@doridori
doridori / convertLocalizable.rb
Last active Dec 13, 2015 — forked from florianmski/convertLocalizable.rb
sub non alpha chars out - this could be done much better with regex
View convertLocalizable.rb
#!/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>"
You can’t perform that action at this time.