summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-01-06 14:11:28 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-01-06 14:11:28 +0000
commit5fd3decb164bd946d01c764c7151d29831362edf (patch)
treec6e0331dedc1f014313e0a009b54e5be2f1b6f01 /app
parentd7c015a884808343ff7cdf8f305b54b6c7ce5037 (diff)
downloadredmine-5fd3decb164bd946d01c764c7151d29831362edf.tar.gz
redmine-5fd3decb164bd946d01c764c7151d29831362edf.zip
added "auto" option for user's language (browser based)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@154 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/helpers/application_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 5c28c2359..ccfc5d502 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -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 = {})