Flush buffer when asking for language (#2948).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2573 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2009-03-12 18:11:44 +00:00
parent c7c8dc71f2
commit b622e0f8ce
1 changed files with 1 additions and 0 deletions

View File

@ -10,6 +10,7 @@ namespace :redmine do
print "Select language: "
print valid_languages.collect(&:to_s).sort.join(", ")
print " [#{current_language}] "
STDOUT.flush
lang = STDIN.gets.chomp!
break if lang.empty?
break if set_language_if_valid(lang)