Vote #67553
完了Hard-coded string "no subject" in app/models/mail_handler.rb
0%
説明
hardcoded in source:app/models/mail_handler.rb
if issue.subject.blank?
issue.subject = '(no subject)'
end
Maybe it can be localized?
My env:
About your application's environment
Ruby version 1.8.7 (i486-linux)
RubyGems version 1.3.7
Rack version 1.0
Rails version 2.3.5
Active Record version 2.3.5
Active Resource version 2.3.5
Action Mailer version 2.3.5
Active Support version 2.3.5
Application root /opt/redmine
Environment development
Database adapter mysql
Database schema version 20100313171051
journals
Mistyped: hardcoded entry in source:/trunk/app/models/mail_handler.rb
russian translation is
<pre>
field_no_subject: Нет темы
</pre>
--------------------------------------------------------------------------------
I attached a patch.
The subject language is Setting.default_language, not the user language(The reason is the same as #31427#note-9)
--------------------------------------------------------------------------------
Setting the target version to 4.1.0.
--------------------------------------------------------------------------------
Committed the patch. Thank you for your contribution.
--------------------------------------------------------------------------------