diff options
author | Faton Selishta <fatonselishta@gmail.com> | 2011-06-30 16:15:39 +0200 |
---|---|---|
committer | Faton Selishta <fatonselishta@gmail.com> | 2011-06-30 16:15:39 +0200 |
commit | c5ff3c917f1ba79ceea58c93092d59cc12f55459 (patch) | |
tree | 921ad4771f49eae82e8f98f2d8afbecc1c1c4882 /app/controllers/comment_controller.rb | |
parent | 65fd8a972ba5e7d34c8e4ef772653fd90cb2eee3 (diff) |
I18n string for controllers
Diffstat (limited to 'app/controllers/comment_controller.rb')
-rw-r--r-- | app/controllers/comment_controller.rb | 13 |
1 files changed, 7 insertions, 6 deletions
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 |