From cbfefc8fc37f86b44b8c113a4bb853706fb3fd1a Mon Sep 17 00:00:00 2001 From: MrZYX <pr0fkill@gmail.com> Date: Thu, 27 Jan 2011 21:04:03 +0100 Subject: [PATCH] fixed some untranslatable strings, thanks to Nygu --- app/views/services/finder.html.haml | 4 ++-- app/views/shared/_invitations.haml | 2 +- config/locales/diaspora/en.yml | 6 ++++++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/views/services/finder.html.haml b/app/views/services/finder.html.haml index 1145041a34..ab525f7010 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 461cb2f0b2..3c2f4d0b61 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 50ba870484..79232d2abf 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," -- GitLab