replace RAILS_ROOT to Rails.root in functional attachments controller test.
replace RAILS_ROOT to Rails.root in setting model.
replace RAILS_ROOT to Rails.root if functional application controller test.
replace RAILS_ROOT to Rails.root of attachments storage path.
Do not cache I18n strings when truncating a long diff (#5089).
Do not show inactive time entry activities in repository settings (#8573).
Do not show inactive document categories where not necessary (#8573).
Do not show inactive issue priorities where not necessary (#8573).
Merged r6068 from trunk.
pt-BR translation update by Rodrigo Rosenfeld Rosas.
pt-BR translation update by Rodrigo Rosenfeld Rosas (#8594).