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:
parent
d7c015a884
commit
5fd3decb16
|
@ -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 = {})
|
||||
|
|
Loading…
Reference in New Issue