Skip to content

Instantly share code, notes, and snippets.

@kurowski
Created March 30, 2009 20:36
Show Gist options
  • Save kurowski/87876 to your computer and use it in GitHub Desktop.
Save kurowski/87876 to your computer and use it in GitHub Desktop.
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 4ec2ddb..6203dcb 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -1,9 +1,9 @@
module ApplicationHelper
def logged_in_user
if @user
- content_tag 'p', "You are logged in as #{@user.username}"
+ content_tag 'p', t('messages.logged_in_as', :name => @user.username)
else
- content_tag 'p', "You are not logged in"
+ content_tag 'p', t('messages.not_logged_in')
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment