Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Change search result notification email subject.

  • Loading branch information...
commit 6fe58c78bfbbfb44d0c988bf840873e131881356 1 parent 6ae8832
@mpereira mpereira authored
View
10 app/mailers/notifier.rb
@@ -62,15 +62,13 @@ def new_search_result(user, group, search_result)
@question = @search_result.question
subject = if user == search_result.question.user
- I18n.t('subject_owner',
+ I18n.t(:subject_owner,
:scope => [:mailers, :notifications, :new_search_result],
- :title => search_result.question.title,
- :name => search_result.user.name)
+ :title => search_result.question.title)
else
- I18n.t('subject_other',
+ I18n.t(:subject_other,
:scope => [:mailers, :notifications, :new_search_result],
- :title => search_result.question.title,
- :name => search_result.user.name)
+ :title => search_result.question.title)
end
mail(:to => user.email, :subject => subject)
View
4 config/locales/mailers/en.yml
@@ -19,8 +19,8 @@ en:
new_question:
subject: New question on topic %{topic}
new_search_result:
- subject_other: "%{name} posted a link on the question \"%{title}\""
- subject_owner: "%{name} posted a link on your question \"%{title}\""
+ subject_other: "New link on question \"%{title}\""
+ subject_owner: "New link on your question \"%{title}\""
new_user_suggestion: "%{origin} suggested that you follow the topic %{entry}"
report:
subject: Report for the group %{group} of %{app}
View
4 config/locales/mailers/pt-BR.yml
@@ -19,8 +19,8 @@ pt-BR:
new_question:
subject: "Nova pergunta no tópico %{topic}"
new_search_result:
- subject_other: "%{name} postou um link na pergunta \"%{title}\""
- subject_owner: "%{name} postou um link na sua pergunta \"%{title}\""
+ subject_other: "Novo link na pergunta \"%{title}\""
+ subject_owner: "Novo link na sua pergunta \"%{title}\""
new_user_suggestion: "%{origin} sugeriu que você seguisse o tópico %{entry}"
report:
subject: "Relatório do %{app}"
Please sign in to comment.
Something went wrong with that request. Please try again.