Add support for local language codes in updatetx.rb

This commit is contained in:
Saivann 2014-04-07 10:42:25 -04:00
parent 9bd1489652
commit 530537e4c0

View file

@ -14,7 +14,7 @@ else
lang = ARGV[0]
end
lang = lang.gsub(/[^a-z]/,'')
lang = lang.gsub(/[^a-zA-Z_]/,'')
if !File.exist?('_translations/' + lang + '.yml')
print "Wrong language code. \n"