diff --git a/app/models/friends_block.rb b/app/models/friends_block.rb index ec2b5e0..202456e 100644 --- a/app/models/friends_block.rb +++ b/app/models/friends_block.rb @@ -1,17 +1,17 @@ class FriendsBlock < ProfileListBlock def self.description - _('A block that displays your friends') + __('A block that displays your friends') end def default_title - _('Friends') + __('Friends') end def footer owner_id = owner.identifier lambda do - link_to _('All friends'), :profile => owner_id, :controller => 'profile', :action => 'friends' + link_to __('All friends'), :profile => owner_id, :controller => 'profile', :action => 'friends' end end @@ -25,5 +25,4 @@ class FriendsBlock < ProfileListBlock @profile_finder ||= FriendsBlock::Finder.new(self) end - end diff --git a/app/views/blocks/profile_info_actions/person.rhtml b/app/views/blocks/profile_info_actions/person.rhtml index 17308e1..5310917 100644 --- a/app/views/blocks/profile_info_actions/person.rhtml +++ b/app/views/blocks/profile_info_actions/person.rhtml @@ -1,5 +1,5 @@ diff --git a/app/views/friends/add.rhtml b/app/views/friends/add.rhtml index 5957bd2..b50e790 100644 --- a/app/views/friends/add.rhtml +++ b/app/views/friends/add.rhtml @@ -1,12 +1,12 @@ -

<%= _('Adding %s as a friend') % @friend.name %>

+

<%= __('Adding %s as a friend') % @friend.name %>

-<%= _('Are you sure you want to add %s as your friend?') % @friend.name %> +<%= __('Are you sure you want to add %s as your friend?') % @friend.name %>

-<%= _('Note that %s will need to accept being added as your friend.') % @friend.name %> +<%= __('Note that %s will need to accept being added as your friend.') % @friend.name %>

@@ -14,13 +14,13 @@ <%= hidden_field_tag(:confirmation, 1) %>
- <%= _('Classify your new friend %s: ') % @friend.name %> + <%= __('Classify your new friend %s: ') % @friend.name %> <%= text_field_with_local_autocomplete('group', profile.suggested_friend_groups) %>

<%= _('Suggestions: %s') % profile.suggested_friend_groups.join(', ') %>

- <%= submit_button(:ok, _("Yes, I want to add %s as my friend") % @friend.name) %> + <%= submit_button(:ok, __("Yes, I want to add %s as my friend") % @friend.name) %> <%= button(:cancel, _("No, I don't want"), :action => 'index') %> <% end %> diff --git a/app/views/friends/index.rhtml b/app/views/friends/index.rhtml index 71b8777..5e3b6cc 100644 --- a/app/views/friends/index.rhtml +++ b/app/views/friends/index.rhtml @@ -1,6 +1,6 @@
-

<%= _("%s's friends") % profile.name %>

+

<%= __("%s's friends") % profile.name %>

@@ -24,7 +24,7 @@ <% if @friends.empty? %>

- <%= _('You have no friends yet. Go make some.') %> + <%= __('You have no friends yet. Go make some.') %>

<% end %> diff --git a/app/views/friends/remove.rhtml b/app/views/friends/remove.rhtml index 8318c1a..786a523 100644 --- a/app/views/friends/remove.rhtml +++ b/app/views/friends/remove.rhtml @@ -1,23 +1,23 @@
-

<%= _('Removing friend: %s') % @friend.name %>

+

<%= __('Removing friend: %s') % @friend.name %>

<%= profile_image @friend, :thumb, :class => 'friend_picture' %>

-<%= _('Are you sure you want to remove %s from your friends list?') % @friend.name %> +<%= __('Are you sure you want to remove %s from your friends list?') % @friend.name %>

-<%= _('Note that %s will still have you as a friend, unless he/she also wants to remove you from his/her friend list.') % @friend.name %> +<%= __('Note that %s will still have you as a friend, unless he/she also wants to remove you from his/her friend list.') % @friend.name %>

<% form_tag do %> <%= hidden_field_tag(:confirmation, 1) %> - <%= submit_button(:ok, _("Yes, I want to remove %s from my friend list") % @friend.name) %> + <%= submit_button(:ok, __("Yes, I want to remove %s from my friend list") % @friend.name) %> <%= button(:cancel, _("No, I don't want"), :action => 'index') %> <% end %> diff --git a/app/views/profile/friends.rhtml b/app/views/profile/friends.rhtml index 4c9825e..f9257c3 100644 --- a/app/views/profile/friends.rhtml +++ b/app/views/profile/friends.rhtml @@ -1,7 +1,7 @@
+ help="<%= __('Here are all %s\'s friends.') % profile.name %>"> -

<%= _("%s' friends") % profile.name %>

+

<%= __("%s' friends") % profile.name %>