diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2011-07-06 10:35:56 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2011-07-06 10:35:56 +0100 |
commit | fb183ab07052293acabde9fa249f5d1952d56465 (patch) | |
tree | 41667f77795a108b77be73e9de9824d9b4fab8da /app/controllers/request_game_controller.rb | |
parent | 4d36238dbc2a239b48193b9089c3321a3103346f (diff) | |
parent | e7cd3adc2775b1450251f89d70680b3be8f291a3 (diff) |
initial merge of Kosovan branch; still need to get tests passing, factor out Kosovan-specific code
Diffstat (limited to 'app/controllers/request_game_controller.rb')
-rw-r--r-- | app/controllers/request_game_controller.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/controllers/request_game_controller.rb b/app/controllers/request_game_controller.rb index 0d70a2e03..b9440a906 100644 --- a/app/controllers/request_game_controller.rb +++ b/app/controllers/request_game_controller.rb @@ -20,7 +20,7 @@ class RequestGameController < ApplicationController @requests = old.sort_by{ rand }.slice(0..2) if @missing == 0 - flash[:notice] = '<p>All done! Thank you very much for your help.</p><p>There are <a href="/help/credits#helpus">more things you can do</a> to help WhatDoTheyKnow.</p>' + flash[:notice] = _('<p>All done! Thank you very much for your help.</p><p>There are <a href="%s">more things you can do</a> to help WhatDoTheyKnow.</p>') % [help_credits_path+"#helpus"] end @league_table_28_days = InfoRequestEvent.make_league_table( @@ -35,9 +35,9 @@ class RequestGameController < ApplicationController def show url_title = params[:url_title] if !authenticated?( - :web => "To play the request categorisation game", - :email => "Then you can play the request categorisation game.", - :email_subject => "Play the request categorisation game" + :web => _("To play the request categorisation game"), + :email => _("Then you can play the request categorisation game."), + :email_subject => _("Play the request categorisation game") ) # do nothing - as "authenticated?" has done the redirect to signin page for us return @@ -47,7 +47,7 @@ class RequestGameController < ApplicationController def stop session[:request_game] = nil - flash[:notice] = 'Thank you for helping us keep the site tidy!' + flash[:notice] = _('Thank you for helping us keep the site tidy!') redirect_to frontpage_url end |