Fixed list_langs.rb and executed it

This commit is contained in:
thatHexa
2017-02-13 21:07:37 +02:00
parent 68aaa83cdf
commit 8a2c677360
2 changed files with 444 additions and 1 deletions

View File

@@ -3,7 +3,7 @@ Dir.foreach "." do |odir|
Dir.foreach odir do |dir|
next if dir == "." or dir == ".."
currdirname = ""
dir.split(".")[0].gsub("-", " ").split(" ").each do |str|
dir.split(".")[0].gsub("-", " ").gsub("_", " ").split(" ").each do |str|
currdirname << str.capitalize + " "
end
currdirname.chomp(currdirname[-1])