Status of Redmine and support for Rails 2.3.5 and Ruby 1.9.1 ยป redmine_trunk_ruby_1.9.1_rails_2.3.5.patch
app/helpers/issues_helper.rb (working copy) | ||
---|---|---|
129 | 129 |
case detail.property |
130 | 130 |
when 'attr', 'cf' |
131 | 131 |
if !detail.old_value.blank? |
132 |
l(:text_journal_changed, :label => label, :old => old_value, :new => value)
|
|
132 |
l(:text_journal_changed, :label => label.force_encoding('utf-8'), :old => old_value.force_encoding('utf-8'), :new => value.force_encoding('utf-8'))
|
|
133 | 133 |
else |
134 |
l(:text_journal_set_to, :label => label, :value => value)
|
|
134 |
l(:text_journal_set_to, :label => label.force_encoding('utf-8'), :value => value.force_encoding('utf-8'))
|
|
135 | 135 |
end |
136 | 136 |
when 'attachment' |
137 |
l(:text_journal_added, :label => label, :value => value)
|
|
137 |
l(:text_journal_added, :label => label.force_encoding('utf-8'), :value => value.force_encoding('utf-8'))
|
|
138 | 138 |
end |
139 | 139 |
else |
140 |
l(:text_journal_deleted, :label => label, :old => old_value)
|
|
140 |
l(:text_journal_deleted, :label => label.force_encoding('utf-8'), :old => old_value.force_encoding('utf-8'))
|
|
141 | 141 |
end |
142 | 142 |
end |
143 | 143 |
|
app/views/mailer/issue_edit.text.plain.rhtml (working copy) | ||
---|---|---|
4 | 4 |
<%= show_detail(detail, true) %> |
5 | 5 |
<% end -%> |
6 | 6 | |
7 |
<%= @journal.notes if @journal.notes? %> |
|
7 |
<%= @journal.notes.force_encoding('utf-8') if @journal.notes? %>
|
|
8 | 8 |
---------------------------------------- |
9 | 9 |
<%= render :partial => "issue_text_plain", :locals => { :issue => @issue, :issue_url => @issue_url } %> |
app/views/issues/_edit.rhtml (working copy) | ||
---|---|---|
2 | 2 |
:url => {:action => 'edit', :id => @issue}, |
3 | 3 |
:html => {:id => 'issue-form', |
4 | 4 |
:class => nil, |
5 |
:multipart => true} do |f| %> |
|
5 |
:multipart => true, :'accept-charset' => 'utf-8'} do |f| %>
|
|
6 | 6 |
<%= error_messages_for 'issue' %> |
7 | 7 |
<%= error_messages_for 'time_entry' %> |
8 | 8 |
<div class="box"> |
app/views/issues/new.rhtml (working copy) | ||
---|---|---|
1 | 1 |
<h2><%=l(:label_issue_new)%></h2> |
2 | 2 | |
3 | 3 |
<% labelled_tabular_form_for :issue, @issue, |
4 |
:html => {:multipart => true, :id => 'issue-form'} do |f| %> |
|
4 |
:html => {:multipart => true, :id => 'issue-form', :'accept-charset' => 'utf-8'} do |f| %>
|
|
5 | 5 |
<%= error_messages_for 'issue' %> |
6 | 6 |
<div class="box"> |
7 | 7 |
<%= render :partial => 'issues/form', :locals => {:f => f} %> |
config/environment.rb (working copy) | ||
---|---|---|
19 | 19 | |
20 | 20 |
Rails::Initializer.run do |config| |
21 | 21 |
# Settings in config/environments/* take precedence those specified here |
22 |
|
|
22 |
Encoding.default_external = 'utf-8' |
|
23 |
Encoding.default_internal = 'utf-8' |
|
23 | 24 |
# Skip frameworks you're not going to use |
24 | 25 |
# config.frameworks -= [ :action_web_service, :action_mailer ] |
25 | 26 |
lib/tabular_form_builder.rb (working copy) | ||
---|---|---|
25 | 25 |
super |
26 | 26 |
end |
27 | 27 |
|
28 |
(field_helpers - %w(radio_button hidden_field) + %w(date_select)).each do |selector|
|
|
28 |
(field_helpers - [:radio_button, :hidden_field] + [:date_select]).each do |selector|
|
|
29 | 29 |
src = <<-END_SRC |
30 | 30 |
def #{selector}(field, options = {}) |
31 | 31 |
label_for_field(field, options) + super |