diff --git a/app/views/services/finder.html.haml b/app/views/services/finder.html.haml index 1145041a3471235cf3c533015aa3ae6d969d33c2..ab525f701074e207541ece129c72b19d525db8ad 100644 --- a/app/views/services/finder.html.haml +++ b/app/views/services/finder.html.haml @@ -11,7 +11,7 @@ = t('.invite_your_friends_from', :service => params[:provider].titleize) .description - if @friends.keys.length > 0 - = "#{@friends.keys.length} friends" + = t('.friends', :count => @friends.keys.length) - else %i= t('.not_connected') @@ -37,7 +37,7 @@ = select_tag(:aspect_id, options_from_collection_for_select(@all_aspects, 'id', 'name')) = hidden_field_tag :uid, uid = hidden_field_tag :provider, 'facebook' - = submit_tag "invite" + = submit_tag t('.invite') - if friend[:person] = person_image_link(friend[:person]) diff --git a/app/views/shared/_invitations.haml b/app/views/shared/_invitations.haml index 461cb2f0b269a6df31ec5873bc7e61197067cf35..3c2f4d0b6154dfae19b3fc241df57e303f7a1dfc 100644 --- a/app/views/shared/_invitations.haml +++ b/app/views/shared/_invitations.haml @@ -5,7 +5,7 @@ - if SERVICES['facebook']['app_id'] !="" %h4{:style => 'text-align:center;'} = link_to t('.from_facebook'), friend_finder_path('facebook'), :rel => 'facebox' - or + = t('or') = link_to t('.by_email'), new_user_invitation_path, :title => t('.invite_someone') = t('.invitations_left', :count => invites) - else diff --git a/config/locales/diaspora/en.yml b/config/locales/diaspora/en.yml index 50ba870484942418b6ee192e098b4a88ade2f3ed..79232d2abf8ee352370819b9b1e736f3bf5dc57a 100644 --- a/config/locales/diaspora/en.yml +++ b/config/locales/diaspora/en.yml @@ -437,6 +437,12 @@ en: resend: "resend" invite_your_friends_from: "Invite your friends from %{service}" not_connected: "not connected" + friends: + zero: "no friends" + one: "1 friend" + few: "%{count} friends" + other: "%{count} friends" + invite: "invite" notifier: hello: "Hello %{name}!" love: "love,"