summaryrefslogtreecommitdiffstats
path: root/config/environment.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-01-21 11:50:22 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-01-21 11:50:22 +0000
commit0b4d4db131304eac84dc90b289a95db3410a2bfe (patch)
treeb5ad6934b897635e594ca089f06fe953d082ed53 /config/environment.rb
parenta1b12335ab6a01ea6e7dcc1df490db16136c8c2a (diff)
downloadredmine-0b4d4db131304eac84dc90b289a95db3410a2bfe.tar.gz
redmine-0b4d4db131304eac84dc90b289a95db3410a2bfe.zip
settings are now stored in the database (config_custom.rb no more used) and editable through the application in: Admin -> Settings
git-svn-id: http://redmine.rubyforge.org/svn/trunk@167 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/environment.rb')
-rw-r--r--config/environment.rb38
1 files changed, 1 insertions, 37 deletions
diff --git a/config/environment.rb b/config/environment.rb
index 201051b13..3edc93ed7 100644
--- a/config/environment.rb
+++ b/config/environment.rb
@@ -68,47 +68,11 @@ end
# inflect.uncountable %w( fish sheep )
# end
-if File.exist? File.join(File.dirname(__FILE__), 'config_custom.rb')
- begin
- print "=> Loading config_custom.rb... "
- require File.join(File.dirname(__FILE__), 'config_custom')
- puts "done."
- rescue Exception => detail
- puts
- puts detail
- puts detail.backtrace.join("\n")
- puts "=> Error in config_custom.rb. Check your configuration."
- exit
- end
-end
-
# IMPORTANT !!! DO NOT MODIFY PARAMETERS HERE
# Instead, rename config_custom.example.rb to config_custom.rb
# and set your own configuration in that file
# Parameters defined in config_custom.rb override those defined below
-# application host name
-$RDM_HOST_NAME ||= "localhost:3000"
-# file storage path
-$RDM_STORAGE_PATH ||= "#{RAILS_ROOT}/files"
-# if RDM_LOGIN_REQUIRED is set to true, login is required to access the application
-$RDM_LOGIN_REQUIRED ||= false
-# default langage
-$RDM_DEFAULT_LANG ||= 'en'
-# email sender adress
-$RDM_MAIL_FROM ||= "redmine@somenet.foo"
-
-# page title
-$RDM_HEADER_TITLE ||= "redMine"
-# page sub-title
-$RDM_HEADER_SUBTITLE ||= "Project management"
-# footer signature
-$RDM_FOOTER_SIG = "admin@somenet.foo"
-
-# textile formatting
-# automaticaly disabled if 'textile' method is not defined (RedCloth unavailable)
-$RDM_TEXTILE_DISABLED = true unless ActionView::Helpers::TextHelper.method_defined? "textilize"
-
# application name
RDM_APP_NAME = "redMine"
# application version
@@ -131,7 +95,7 @@ ActiveRecord::Errors.default_error_messages = {
ActionView::Base.field_error_proc = Proc.new{ |html_tag, instance| "#{html_tag}" }
-GLoc.set_config :default_language => $RDM_DEFAULT_LANG
+GLoc.set_config :default_language => :en
GLoc.clear_strings
GLoc.set_kcode
GLoc.load_localized_strings