##// END OF EJS Templates
Support WikiCaps for Trac migrations...
Support WikiCaps for Trac migrations Trac wikis support WikiCaps for links to pages. They also use !WikiCaps syntax to prevent links. Support both. Uses patch from and closes #758. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1242 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r1024:6ae87d7c4c10
r1228:87fb78be0b48
Show More
load_default_data.rake
29 lines | 810 B | text/x-ruby | RubyLexer
/ lib / tasks / load_default_data.rake
Jean-Philippe Lang
Added namespace for Redmine specific rake tasks....
r680 desc 'Load Redmine default configuration data'
Jean-Philippe Lang
Localization plugin removed (replaced with GLoc)...
r12
Jean-Philippe Lang
Added namespace for Redmine specific rake tasks....
r680 namespace :redmine do
Jean-Philippe Lang
Moved redmine:load_default_data code to a module so that it can be called from the application....
r1024 task :load_default_data => :environment do
include GLoc
set_language_if_valid('en')
puts
Jean-Philippe Lang
language for default configuration data can now be chosen when running 'load_default_data' task...
r129
Jean-Philippe Lang
Moved redmine:load_default_data code to a module so that it can be called from the application....
r1024 while true
print "Select language: "
print GLoc.valid_languages.sort {|x,y| x.to_s <=> y.to_s }.join(", ")
print " [#{GLoc.current_language}] "
lang = STDIN.gets.chomp!
break if lang.empty?
break if set_language_if_valid(lang)
puts "Unknown language!"
end
Jean-Philippe Lang
* new report: project activity...
r42
Jean-Philippe Lang
Moved redmine:load_default_data code to a module so that it can be called from the application....
r1024 puts "===================================="
begin
Redmine::DefaultData::Loader.load(current_language)
puts "Default configuration data loaded."
rescue => error
puts "Error: " + error
puts "Default configuration data was not loaded."
end
end
Jean-Philippe Lang
Added namespace for Redmine specific rake tasks....
r680 end