Skip to content
This repository has been archived by the owner on Dec 22, 2018. It is now read-only.

Commit

Permalink
Fix translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Groeneveld committed Aug 1, 2014
1 parent 023edf5 commit 4c001b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/mailers/ticket_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,17 +95,17 @@ def notify_agents(ticket, incoming)
@ticket = ticket
@incoming = incoming

title = 'New reply to: ' + ticket.subject
title = I18n::translate(:new_reply_received) + ': ' + ticket.subject
if incoming == ticket
title = 'New ticket: ' + ticket.subject
title = I18n::translate(:new_ticket) + ': ' + ticket.subject
end

mail(to: agents, subject: title,
template_name: 'notify_agents') # without template_name
# the functional tests fail
end

def normalize_body(part, charset)
def normalize_body(part, charset)
part.body.decoded.force_encoding(charset).encode('UTF-8')
end

Expand Down

0 comments on commit 4c001b4

Please sign in to comment.