diff --git a/_contrib/updatetx.rb b/_contrib/updatetx.rb index 8f713996..55039c0e 100755 --- a/_contrib/updatetx.rb +++ b/_contrib/updatetx.rb @@ -8,7 +8,12 @@ def prompt(*args) gets end -lang = prompt "Language code: " +if ARGV.empty? + lang = prompt "Language code: " +else + lang = ARGV[0] +end + lang = lang.gsub(/[^a-z]/,'') if !File.exist?('_translations/' + lang + '.yml')