Small improvements.

This commit is contained in:
Martin Edenhofer 2012-12-21 08:22:47 +01:00
parent 8ac9d097a9
commit 78ace250dc
3 changed files with 9 additions and 2 deletions

View file

@ -17,6 +17,9 @@ class CreateHistory < ActiveRecord::Migration
end
add_index :histories, [:o_id]
add_index :histories, [:created_by_id]
add_index :histories, [:created_at]
add_index :histories, [:history_object_id]
add_index :histories, [:history_type_id]
create_table :history_types do |t|
t.column :name, :string, :limit => 250, :null => false

View file

@ -1818,6 +1818,10 @@ Translation.create( :locale => 'de', :source => "Attachment", :target => "Anhang
Translation.create( :locale => 'de', :source => "Year", :target => "Jahr", :updated_by_id => 1, :created_by_id => 1 )
Translation.create( :locale => 'de', :source => "Month", :target => "Monat", :updated_by_id => 1, :created_by_id => 1 )
Translation.create( :locale => 'de', :source => "Day", :target => "Tag", :updated_by_id => 1, :created_by_id => 1 )
Translation.create( :locale => 'de', :source => "Closed", :target => "Geschlossen", :updated_by_id => 1, :created_by_id => 1 )
Translation.create( :locale => 'de', :source => "Re-Open", :target => "Wiedereröffnet", :updated_by_id => 1, :created_by_id => 1 )
Translation.create( :locale => 'de', :source => "Day", :target => "Tag", :updated_by_id => 1, :created_by_id => 1 )
Translation.create( :locale => 'de', :source => "First Solution", :target => "Erstlösung", :updated_by_id => 1, :created_by_id => 1 )
#Translation.create( :locale => 'de', :source => "", :target => "", :updated_by_id => 1, :created_by_id => 1 )

View file

@ -23,7 +23,7 @@ module Encode
rescue EncodingError => e
puts "Bad encoding: #{string.inspect}"
string.encode!( 'UTF-8', invalid: :replace, undef: :replace, replace: '?' )
string = string.encode!( 'UTF-8', invalid: :replace, undef: :replace, replace: '?' )
end
return string
end