added "auto" option for user's language (browser based)

git-svn-id: http://redmine.rubyforge.org/svn/trunk@154 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2007-01-06 14:11:28 +00:00
parent d7c015a884
commit 5fd3decb16
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ module ApplicationHelper
end
def lang_options_for_select
(GLoc.valid_languages.sort {|x,y| x.to_s <=> y.to_s }).collect {|lang| [ l_lang_name(lang.to_s, lang), lang.to_s]}
[["(auto)", ""]] + (GLoc.valid_languages.sort {|x,y| x.to_s <=> y.to_s }).collect {|lang| [ l_lang_name(lang.to_s, lang), lang.to_s]}
end
def label_tag_for(name, option_tags = nil, options = {})