#328: fixed I18n

This commit is contained in:
Vokhmin Alexey V 2013-11-26 22:08:30 +04:00
parent 75b5a62cb5
commit 00368aff60
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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: Новая задача добавлена к проекту