From c5ff3c917f1ba79ceea58c93092d59cc12f55459 Mon Sep 17 00:00:00 2001 From: Faton Selishta Date: Thu, 30 Jun 2011 16:15:39 +0200 Subject: I18n string for controllers --- app/controllers/comment_controller.rb | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'app/controllers/comment_controller.rb') diff --git a/app/controllers/comment_controller.rb b/app/controllers/comment_controller.rb index 4a0661f34..0bba0cfb8 100644 --- a/app/controllers/comment_controller.rb +++ b/app/controllers/comment_controller.rb @@ -52,14 +52,15 @@ class CommentController < ApplicationController end if authenticated?( - :web => "To post your annotation", - :email => "Then your annotation to " + @info_request.title + " will be posted.", - :email_subject => "Confirm your annotation to " + @info_request.title + :web => _("To post your annotation"), + :email => _("Then your annotation to {{info_request_title}} will be posted.",:info_request_title=>@info_request.title), + :email_subject => _("Confirm your annotation to {{info_request_title}}",:info_request.title=>@info_request.title) ) # Also subscribe to track for this request, so they get updates # (do this first, so definitely don't send alert) - flash[:notice] = "Thank you for making an annotation!" + flash[:notice] = _("Thank you for making an annotation!") + if params[:subscribe_to_request] @track_thing = TrackThing.create_track_for_request(@info_request) @existing_track = TrackThing.find_by_existing_track(@user, @track_thing) @@ -69,9 +70,9 @@ class CommentController < ApplicationController @track_thing.track_medium = 'email_daily' @track_thing.tracking_user_id = @user.id @track_thing.save! - flash[:notice] += " You will also be emailed updates about the request." + flash[:notice] += _(" You will also be emailed updates about the request.") else - flash[:notice] += " You are already being emailed updates about the request." + flash[:notice] += _(" You are already being emailed updates about the request.") end end -- cgit v1.2.3