#328: fixed I18n
This commit is contained in:
parent
75b5a62cb5
commit
00368aff60
|
@ -86,7 +86,7 @@ class UserMailer < ActionMailer::Base
|
|||
set_locale user
|
||||
mail(
|
||||
:to => user.email,
|
||||
:subject => I18n.t('notifications.subjects.new_commit', :project_name => "#{options[:project_owner]}/#{options[:project_name]}")
|
||||
:subject => I18n.t('notifications.subjects.new_commit', :project_name => "#{options['project_owner']}/#{options['project_name']}")
|
||||
) do |format|
|
||||
format.html { render 'git_delete_branch_notification', :locals => options }
|
||||
end
|
||||
|
@ -96,7 +96,7 @@ class UserMailer < ActionMailer::Base
|
|||
set_locale user
|
||||
mail(
|
||||
:to => user.email,
|
||||
:subject => I18n.t('notifications.subjects.new_commit', :project_name => "#{options[:project_owner]}/#{options[:project_name]}")
|
||||
:subject => I18n.t('notifications.subjects.new_commit', :project_name => "#{options['project_owner']}/#{options['project_name']}")
|
||||
) do |format|
|
||||
format.html { render 'git_new_push_notification', :locals => options }
|
||||
end
|
||||
|
|
|
@ -12,7 +12,7 @@ en:
|
|||
|
||||
notifications:
|
||||
subjects:
|
||||
new_commit: "[%{ project_name }] Update of project"
|
||||
new_commit: "[%{project_name}] Update of project"
|
||||
new_comment_notification: New comment to your task
|
||||
new_commit_comment_notification: New comment to commit
|
||||
new_issue_notification: New task added to project
|
||||
|
|
|
@ -12,7 +12,7 @@ ru:
|
|||
|
||||
notifications:
|
||||
subjects:
|
||||
new_commit: "[%{ project_name }] Обновление проекта"
|
||||
new_commit: "[%{project_name}] Обновление проекта"
|
||||
new_comment_notification: Новый комментарий к Вашей задаче
|
||||
new_commit_comment_notification: Новый комментарий к коммиту
|
||||
new_issue_notification: Новая задача добавлена к проекту
|
||||
|
|
Loading…
Reference in New Issue