Merge branch 'master' of github.com:diaspora/diaspora

This commit is contained in:
Sarah Mei 2011-05-22 17:40:36 -07:00
commit 57aa8fd7c3
48 changed files with 279 additions and 108 deletions

1
.gitignore vendored
View file

@ -34,6 +34,7 @@ db/*.sqlite3
.redcar
# Temporary files of every sort
.sass-cache/*
.DS_Store
.idea
.rvmrc

View file

@ -22,7 +22,15 @@ module NotificationsHelper
else
t('notifications.also_commented_deleted')
end
else #Notifications:StartedSharing, Notifications::Liked, etc.
elsif note.instance_of?(Notifications::Liked)
post = note.target
post = post.post if post.is_a? Like
if post
"#{translation(target_type, post.author.name)} #{link_to t('notifications.post'), object_path(post), 'data-ref' => post.id, :class => 'hard_object_link'}".html_safe
else
t('notifications.liked_post_deleted')
end
else #Notifications:StartedSharing, etc.
translation(target_type)
end
end
@ -41,11 +49,20 @@ module NotificationsHelper
def notification_people_link(note)
actors = note.actors
number_of_actors = actors.count
actor_links = actors.collect{ |person| link_to("#{h(person.name.titlecase)}", person_path(person))}
sentence_translations = {:two_words_connector => " #{t('notifications.index.and')} ", :last_word_connector => ", #{t('notifications.index.and')} " }
actor_links = actors.collect{ |person| link_to("#{h(person.name.titlecase.strip)}", person_path(person))}
if number_of_actors < 4
message = actor_links.join(', ')
message = actor_links.to_sentence(sentence_translations)
else
message = actor_links[0..2].join(', ') << "<a class='more' href='#'> #{t('.and_others', :number =>(number_of_actors - 3))}</a><span class='hidden'>, " << actor_links[3..(number_of_actors-2)].join(', ')<< " #{t('.and')} "<< actor_links.last << '</span>'
first, second, third, *others = actor_links
others_sentence = others.to_sentence(sentence_translations)
if others.count == 1
others_sentence = " #{t('notifications.index.and')} " + others_sentence
end
message = "#{first}, #{second}, #{third},"
message += "<a class='more' href='#'> #{t('notifications.index.and_others', :number =>(number_of_actors - 3))}</a>"
message += "<span class='hidden'> #{others_sentence} </span>"
end
message.html_safe
end

View file

@ -2,21 +2,20 @@
-# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file.
= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f|
#user
%p.username
#login_form
= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f|
%div{:data => {:role => 'fieldcontain'}}
= f.label :username , t('username')
= f.text_field :username
%p.user_network
="@#{AppConfig[:pod_uri].host}"
%p
%p.user_network
="@#{AppConfig[:pod_uri].host}"
= f.label :password , t('password')
= f.password_field :password
= f.submit t('devise.sessions.new.sign_in')
- if devise_mapping.rememberable?
= f.check_box :remember_me
= f.label :remember_me, t('devise.sessions.new.remember_me')
= f.submit t('devise.sessions.new.sign_in')
- if devise_mapping.rememberable?
= f.check_box :remember_me
= f.label :remember_me, t('devise.sessions.new.remember_me')
%p
= render :partial => "devise/shared/links"
%p
= render :partial => "devise/shared/links"

View file

@ -23,6 +23,7 @@
- if post.activity_streams?
= link_to "#{t('comments', :count => post.comments.length)} →", activity_streams_photo_path(post), :class => 'comment_link right'
%br
- else
= link_to "#{t('comments', :count => post.comments.length)} →", status_message_path(post), :class => 'comment_link right'

View file

@ -12,7 +12,7 @@ de:
send_instructions: "Du wirst in ein paar Minuten eine E-Mail erhalten, die beschreibt, wie du dein Konto bestätigst."
failure:
inactive: "Dein Konto wurde noch nicht aktiviert."
invalid: "Ungültige E-Mail-Adresse oder Kennwort."
invalid: "Ungültiger Benutzername oder ungültiges Kennwort."
invalid_token: "Ungültiger Authentifizierungstoken."
locked: "Dein Konto ist gesperrt."
timeout: "Deine Sitzung ist abgelaufen! Um fortzufahren, melde dich bitte erneut an."

View file

@ -207,6 +207,7 @@ ar:
already_contacts: "لقد قمت بإنشاء اتصال مع هذا العضو مسبقا"
already_sent: "لقد قمت بدعوة هذا الشخص مسبقا"
no_more: "لم يتبقى لك أية دعوات"
own_address: "You can't send an invitation to your own address."
rejected: "واجه هذا البريد الإلكتروني مشاكلا: "
sent: "تم إرسال دعوتك"
edit:
@ -273,6 +274,7 @@ ar:
mark_all_as_read: "وضع الجميع كمقروء"
notifications: "تنبيهات"
liked: "أعجبه منشورك:"
liked_post_deleted: "liked your deleted post."
mentioned: "قام بذكرك في"
new_request: "عرض المشاركة معك"
post: "منشور"

View file

@ -207,6 +207,7 @@ bg:
already_contacts: "Вече сте свързани с тава лице"
already_sent: "Вече сте свързани с тава лице."
no_more: "Не разполагате с повече покани."
own_address: "You can't send an invitation to your own address."
rejected: "The following email addresses had problems: "
sent: "Покани са изпратени до: "
edit:
@ -273,6 +274,7 @@ bg:
mark_all_as_read: "Маркиране на всички като прочетени"
notifications: "Известия"
liked: "току-що хареса ваша публикация."
liked_post_deleted: "liked your deleted post."
mentioned: "ви спомена в"
new_request: "ви предложи да споделяте."
post: "публикация."
@ -513,7 +515,7 @@ bg:
by_email: "по ел. поща"
dont_have_now: "За момента не разполагате с покани, но скоро ще имате!"
from_facebook: "от Facebook"
invitations_left: "(остават още %{count} покани)"
invitations_left: "(имате %{count} покани)"
invite_someone: "Поканете някого"
invite_your_friends: "Поканете приятелите си"
invites: "Покани"

View file

@ -207,6 +207,7 @@ br:
already_contacts: "You are already connected with this person"
already_sent: "You already invited this person."
no_more: "You have no more invitations."
own_address: "You can't send an invitation to your own address."
rejected: "The following email addresses had problems: "
sent: "Invitations have been sent to: "
edit:
@ -273,6 +274,7 @@ br:
mark_all_as_read: "Mark All as Read"
notifications: "Notifications"
liked: "has just liked your post"
liked_post_deleted: "liked your deleted post."
mentioned: "en deus meneget ac'hanoc'h e-barzh ur skrid"
new_request: "offered to share with you."
post: "post"

View file

@ -43,13 +43,13 @@ cs:
are_you_sure: "Jste si jist?"
aspect_memberships:
aspect_dropdown:
add_to_aspect: "přidat k aspektu"
add_to_aspect: "Přidat do aspektu"
toggle:
few: "v %{count} aspektech"
many: "v %{count} aspektech"
one: "v %{count} aspektech"
other: "v %{count} aspektech"
zero: "přidat k aspektu"
few: "V %{count} aspektech"
many: "Ve %{count} aspektech"
one: "V %{count} aspektu"
other: "V %{count} aspektech"
zero: "Přidat do aspektu"
destroy:
failure: "Nepodařilo se odstranit osobu z aspektu"
no_membership: "Nelze najít vybrané osoby v tomto aspektu"
@ -207,6 +207,7 @@ cs:
already_contacts: "Jste již propojen s touto osobou"
already_sent: "Již jste pozval tuto osobu."
no_more: "Nemáte žádné další pozvánky."
own_address: "You can't send an invitation to your own address."
rejected: "Následující emailové adresy mají problémy: "
sent: "Pozvánky byly poslány pro:"
edit:
@ -273,6 +274,7 @@ cs:
mark_all_as_read: "Označit vše jako přečtené"
notifications: "Oznámení"
liked: "si právě oblíbil váš příspěvek"
liked_post_deleted: "liked your deleted post."
mentioned: "vás zmínil v příspěvku"
new_request: "nabídnul vám sdílení."
post: "zpráva"

View file

@ -207,6 +207,7 @@ cy:
already_contacts: "You are already connected with this person"
already_sent: "You already invited this person."
no_more: "You have no more invitations."
own_address: "You can't send an invitation to your own address."
rejected: "The following email addresses had problems: "
sent: "Your invitation has been sent."
edit:
@ -273,6 +274,7 @@ cy:
mark_all_as_read: "Mark All as Read"
notifications: "Notifications"
liked: "has just liked your post"
liked_post_deleted: "liked your deleted post."
mentioned: "has mentioned you in their"
new_request: "offered to share with you."
post: "post"

View file

@ -207,6 +207,7 @@ da:
already_contacts: "Du er allerede forbundet med denne person"
already_sent: "Du har allerede inviteret denne person."
no_more: "Du har ikke flere invitationer."
own_address: "You can't send an invitation to your own address."
rejected: "Der var problemer med de følgende e-mail adresser: "
sent: "Din invitation er blevet sendt til:"
edit:
@ -273,6 +274,7 @@ da:
mark_all_as_read: "Marker alle som læst"
notifications: "Notifikationer"
liked: "has just liked your post"
liked_post_deleted: "liked your deleted post."
mentioned: "har omtalt dig i deres"
new_request: "tilbød at dele med dig."
post: "indlæg"

View file

@ -207,6 +207,7 @@ de:
already_contacts: "Du bist bereits mit dieser Person verbunden"
already_sent: "Du hast diese Person bereits eingeladen."
no_more: "Du hast keine Einladungen mehr."
own_address: "You can't send an invitation to your own address."
rejected: "Mit dieser E-Mail-Adresse gab es Probleme:"
sent: "Einladungen wurden verschickt an:"
edit:
@ -273,6 +274,7 @@ de:
mark_all_as_read: "Markiere alle als gelesen"
notifications: "Benachrichtigungen"
liked: "gefällt dein Beitrag"
liked_post_deleted: "liked your deleted post."
mentioned: "hat dich erwähnt in einem"
new_request: "hat angeboten mit dir zu teilen."
post: "Beitrag"

View file

@ -43,13 +43,13 @@ el:
are_you_sure: "Είστε σίγουρος/η;"
aspect_memberships:
aspect_dropdown:
add_to_aspect: "Add to aspect"
add_to_aspect: "Προσθήκη σε πτυχή"
toggle:
few: "In %{count} aspects"
many: "In %{count} aspects"
one: "In %{count} aspect"
other: "In %{count} aspects"
zero: "Add to aspect"
few: "Σε %{count} πτυχές"
many: "Σε %{count} πτυχές"
one: "Σε %{count} πτυχές"
other: "Σε %{count} πτυχές"
zero: "Προσθήκη σε πτυχή"
destroy:
failure: "Αποτυχία στην αφαίρεση προσώπου από την πτυχή"
no_membership: "Δεν βρέθηκε το επιλεγμένο άτομο σε αυτή την πτυχή"
@ -123,8 +123,8 @@ el:
zero: "καμία πτυχή"
back: "Πίσω"
bookmarklet:
explanation: "%{link} από οπουδήποτε προσθέτοντας αυτόν τον σύνδεσμο."
explanation_link_text: "Δημοσιεύστε στο Diaspora"
explanation: "Δημοσιεύστε στο Diaspora από οπουδήποτε προσθέτοντας αυτόν τον σύνδεσμο %{link}."
explanation_link_text: "αυτός ο σύνδεσμος"
post_something: "Δημοσιεύστε κάτι στο Diaspora"
post_success: "Δημοσιεύτηκε! Κλείνει!"
cancel: "Ακύρωση"
@ -207,6 +207,7 @@ el:
already_contacts: "Είστε ήδη συνδεδεμένος με αυτό το άτομο"
already_sent: "Έχετε ήδη προσκαλέσει αυτό το άτομο."
no_more: "Δεν έχετε άλλες προσκλήσεις."
own_address: "You can't send an invitation to your own address."
rejected: "Οι παρακάτω διευθύνσεις ηλεκτρονικού ταχυδρομείου είχαν προβλήματα:"
sent: "Η πρόσκλησή σας έχει σταλεί στο:"
edit:
@ -231,7 +232,7 @@ el:
whats_new: "Τι νέα?"
your_aspects: "οι πτυχές σας"
header:
admin: "admin"
admin: "διαχειριστής"
blog: "blog"
code: "κώδικας"
login: "Είσοδος"
@ -273,6 +274,7 @@ el:
mark_all_as_read: "Σήμανση όλων ως διαβασμένα"
notifications: "Ειδοποιήσεις"
liked: "μόλις του/της άρεσε η δημοσίευση σας"
liked_post_deleted: "liked your deleted post."
mentioned: "σας ανέφερε σε"
new_request: "προσφέρθηκε να μοιραστεί μαζί σας."
post: "δημοσίευση."
@ -510,12 +512,12 @@ el:
logged_in_as: "συνδεδεμένος/η ως %{name}"
your_aspects: "οι πτυχές σας"
invitations:
by_email: "με ηλεκτρονικό ταχυδρομείο"
by_email: "Μέσω ηλεκτρονικού ταχυδρομείου"
dont_have_now: "Δεν έχετε κάποιο δικαίωμα τώρα, αλλά περισσότερες προσκλήσεις έρχονται σύντομα!"
from_facebook: "Από το Facebook"
invitations_left: "(απομένουν %{count})"
invitations_left: "απομένουν %{count}"
invite_someone: "Προσκαλέστε κάποιον/α"
invite_your_friends: "Προσκαλέστε τους φίλους σας"
invite_your_friends: "Προσκαλέστε φίλους"
invites: "Προσκλήσεις"
invites_closed: "Οι προσκλήσεις είναι κλειστές αυτή την περίοδο στο Diaspora pod"
notification:
@ -544,7 +546,7 @@ el:
dislike: "Δεν μ' αρέσει"
like: "Μου αρέσει"
unlike: "Δεν μου αρέσει"
via: "via %{link}"
via: "μέσω %{link}"
status_messages:
create:
success: "Αναφέρθηκαν επιτυχώς: %{names}"
@ -559,11 +561,11 @@ el:
not_found: "Συγνώμη, δεν μπορέσαμε να βρούμε αυτή τη δημοσίευση."
permalink: "permalink"
too_long:
few: "please make your status messages less than %{count} characters"
few: "παρακαλώ μετατρέψτε τα μηνύματα κατάστασης σας σε λιγότερους από %{count} χαρακτήρες"
many: "παρακαλώ ελαττώστε την κατάσταση σας σε λιγότερο από %{count} χαρακτήρες"
one: "please make your status messages less than %{count} character"
other: "please make your status messages less than %{count} characters"
zero: "please make your status messages less than %{count} characters"
one: "παρακαλώ μετατρέψτε τα μηνύματα κατάστασης σας σε λιγότερο από %{count} χαρακτήρα"
other: "παρακαλώ μετατρέψτε τα μηνύματα κατάστασης σας σε λιγότερους από %{count} χαρακτήρες"
zero: "παρακαλώ μετατρέψτε τα μηνύματα κατάστασης σας σε λιγότερους από %{count} χαρακτήρες"
stream_helper:
hide_comments: "απόκρυψη σχολίων"
show_comments: "προβολή όλων των σχολίων"

View file

@ -295,10 +295,11 @@ en:
comment_on_post: "commented on your"
also_commented: "also commented on %{post_author}'s"
mentioned: "has mentioned you in a "
liked: "has just liked your post"
liked: "has just liked your"
post: "post."
deleted: "deleted"
also_commented_deleted: "commented on a deleted post."
liked_post_deleted: "liked your deleted post."
index:
notifications: "Notifications"
mark_all_as_read: "Mark All as Read"

View file

@ -207,6 +207,7 @@ en_shaw:
already_contacts: "𐑿 𐑣𐑨𐑝 𐑷𐑤𐑮𐑧𐑛𐑦 𐑒𐑩𐑯𐑧𐑒𐑑𐑩𐑛 𐑢𐑦𐑞 𐑞𐑦𐑕 𐑐𐑻𐑕𐑩𐑯"
already_sent: "𐑿 𐑷𐑤𐑮𐑧𐑛𐑦 𐑦𐑯𐑝𐑲𐑑𐑩𐑛 𐑞𐑦𐑕 𐑐𐑻𐑕𐑩𐑯."
no_more: "𐑿 𐑣𐑨𐑝 𐑯𐑴 𐑥𐑹 𐑦𐑯𐑝𐑦𐑑𐑱𐑖𐑩𐑯𐑟."
own_address: "You can't send an invitation to your own address."
rejected: "𐑞 𐑓𐑪𐑤𐑴𐑦𐑙 𐑦-𐑥𐑱𐑤 𐑩𐑛𐑮𐑧𐑕 𐑣𐑨𐑛 𐑐𐑮𐑪𐑚𐑤𐑩𐑥𐑟: "
sent: "𐑦𐑯𐑝𐑦𐑑𐑱𐑖𐑩𐑯𐑟 𐑣𐑨𐑝 𐑚𐑧𐑯 𐑕𐑧𐑯𐑑 𐑑: "
edit:
@ -273,6 +274,7 @@ en_shaw:
mark_all_as_read: "𐑥𐑸𐑒 𐑷𐑤 𐑨𐑟 𐑮𐑧𐑛"
notifications: "𐑯𐑴𐑑𐑦𐑓𐑦𐑒𐑱𐑖𐑩𐑯𐑟"
liked: "has just liked your post"
liked_post_deleted: "liked your deleted post."
mentioned: "𐑣𐑨𐑟 𐑥𐑧𐑯𐑖𐑩𐑯𐑛 𐑿 𐑦𐑯 𐑩"
new_request: "𐑪𐑓𐑼𐑛 𐑑 𐑖𐑺 𐑢𐑦𐑞 𐑿."
post: "𐑐𐑴𐑕𐑑"

View file

@ -207,6 +207,7 @@ eo:
already_contacts: "You are already connected with this person"
already_sent: "You already invited this person."
no_more: "You have no more invitations."
own_address: "You can't send an invitation to your own address."
rejected: "The following email addresses had problems: "
sent: "Invitations have been sent to: "
edit:
@ -273,6 +274,7 @@ eo:
mark_all_as_read: "Mark All as Read"
notifications: "Notifications"
liked: "has just liked your post"
liked_post_deleted: "liked your deleted post."
mentioned: "has mentioned you in their"
new_request: "offered to share with you."
post: "post"

View file

@ -43,13 +43,13 @@ es-CL:
are_you_sure: "¿Estás seguro?"
aspect_memberships:
aspect_dropdown:
add_to_aspect: "Add to aspect"
add_to_aspect: "Agregar al aspecto"
toggle:
few: "In %{count} aspects"
many: "In %{count} aspects"
one: "In %{count} aspect"
other: "In %{count} aspects"
zero: "Add to aspect"
few: "En %{count} aspectos"
many: "En %{count} aspectos"
one: "En %{count} aspecto"
other: "En %{count} aspectos"
zero: "Agregar al aspecto"
destroy:
failure: "No se pudo eliminar a la persona del Aspecto"
no_membership: "No se pudo encontrar la persona seleccionada en ese Aspecto"
@ -207,6 +207,7 @@ es-CL:
already_contacts: "Ya estás conectado con esta persona"
already_sent: "Ya has invitado a esta persona."
no_more: "No tienes más invitaciones."
own_address: "You can't send an invitation to your own address."
rejected: "Las siguientes direcciones de correo han tenido problemas:"
sent: "Las invitaciones han sido enviadas a:"
edit:
@ -231,7 +232,7 @@ es-CL:
whats_new: "¿Qué hay de nuevo?"
your_aspects: "Tus Aspectos"
header:
admin: "admin"
admin: "administrar"
blog: "blog"
code: "codigo"
login: "entrar"
@ -273,6 +274,7 @@ es-CL:
mark_all_as_read: "Marcar todo como leido"
notifications: "Notificaciones"
liked: "le gustó tu post"
liked_post_deleted: "liked your deleted post."
mentioned: "te mencionó en un"
new_request: "quiere compartir contigo."
post: "post."
@ -345,7 +347,7 @@ es-CL:
gender: "sexo"
in_aspects: "en aspectos"
location: "Ubicación"
remove_contact: "remove contact"
remove_contact: "eliminar contacto"
remove_from: "¿Eliminar a %{name} de %{aspect}?"
show:
add_some: "agrega algunas"
@ -513,7 +515,7 @@ es-CL:
by_email: "Por email"
dont_have_now: "No tienes ninguna ahora, ¡pero pronto vendrán mas invitaciones!"
from_facebook: "Desde Facebook"
invitations_left: "(quedan %{count})"
invitations_left: "quedan %{count}"
invite_someone: "Invita a alguien"
invite_your_friends: "Invita a tus amigos"
invites: "Invitaciones"
@ -559,11 +561,11 @@ es-CL:
not_found: "Perdón, no pudimos encontrar ese post."
permalink: "permalink"
too_long:
few: "please make your status messages less than %{count} characters"
many: "please make your status messages less than %{count} characters"
one: "please make your status messages less than %{count} character"
other: "please make your status messages less than %{count} characters"
zero: "please make your status messages less than %{count} characters"
few: "Tu mensaje de estado debe tener menos de %{count} caracteres"
many: "Tu mensaje de estado debe tener menos de %{count} caracteres"
one: "Tu mensaje de estado debe tener menos de %{count} caracter"
other: "Tu mensaje de estado debe tener menos de %{count} caracteres"
zero: "Tu mensaje de estado debe tener menos de %{count} caracteres"
stream_helper:
hide_comments: "ocultar comentarios"
show_comments: "mostrar todos los comentarios"

View file

@ -43,13 +43,13 @@ es:
are_you_sure: "¿Estás seguro?"
aspect_memberships:
aspect_dropdown:
add_to_aspect: "Add to aspect"
add_to_aspect: "Añadir al aspecto"
toggle:
few: "In %{count} aspects"
many: "In %{count} aspects"
one: "In %{count} aspect"
other: "In %{count} aspects"
zero: "Add to aspect"
few: "En %{count} aspectos"
many: "En %{count} aspectos"
one: "En %{count} aspecto"
other: "En %{count} aspectos"
zero: "Añadir al aspecto"
destroy:
failure: "No se pudo eliminar a la persona del aspecto"
no_membership: "No se pudo encontrar a la persona seleccionada en ese aspecto"
@ -207,6 +207,7 @@ es:
already_contacts: "Ya estás conectado con esa persona"
already_sent: "Ya has invitado a esa persona."
no_more: "No tienes más invitaciones."
own_address: "You can't send an invitation to your own address."
rejected: "Las siguientes direcciones de correo han tendido problemas:"
sent: "Invitaciones enviadas a:"
edit:
@ -231,7 +232,7 @@ es:
whats_new: "Novedades en Diaspora*"
your_aspects: "tus aspectos"
header:
admin: "admin"
admin: "administrar"
blog: "Blog"
code: "Código"
login: "Conectarse"
@ -273,6 +274,7 @@ es:
mark_all_as_read: "Marcar todo como leído"
notifications: "Notificaciones"
liked: "le gustó tu publicación"
liked_post_deleted: "liked your deleted post."
mentioned: "te mencionó en una"
new_request: "quisiera compartir contigo."
post: "publicación."
@ -345,7 +347,7 @@ es:
gender: "Género / Sexo"
in_aspects: "en aspectos"
location: "Ubicación "
remove_contact: "remove contact"
remove_contact: "eliminar contacto"
remove_from: "¿Eliminar a %{name} de %{aspect}?"
show:
add_some: "agrega algunos"
@ -513,7 +515,7 @@ es:
by_email: "vía Email"
dont_have_now: "No tienes invitaciones ahora mismo pero, ¡pronto llegarán más!"
from_facebook: "Desde Facebook"
invitations_left: "(%{count} restantes)"
invitations_left: "%{count} restantes"
invite_someone: "Invita a alguien"
invite_your_friends: "Invita a tus amigos"
invites: "Invitaciones"
@ -559,11 +561,11 @@ es:
not_found: "Lo sentimos, no pudimos encontrar esa publicación."
permalink: "Enlace permanente"
too_long:
few: "please make your status messages less than %{count} characters"
many: "please make your status messages less than %{count} characters"
one: "please make your status messages less than %{count} character"
other: "please make your status messages less than %{count} characters"
zero: "please make your status messages less than %{count} characters"
few: "Tu mensaje de estado debe tener menos de %{count} caracteres"
many: "Tu mensaje de estado debe tener menos de %{count} caracteres"
one: "Tu mensaje de estado debe tener menos de %{count} caracter"
other: "Tu mensaje de estado debe tener menos de %{count} caracteres"
zero: "Tu mensaje de estado debe tener menos de %{count} caracteres"
stream_helper:
hide_comments: "Ocultar comentarios"
show_comments: "Mostrar comentarios"

View file

@ -207,6 +207,7 @@ eu:
already_contacts: "Pertsona honekin harremanetan zaude jadanik"
already_sent: "Pertsona hau gonbidatu duzu jada."
no_more: "Ez daukazu gonbidapen gehiago."
own_address: "You can't send an invitation to your own address."
rejected: "Hurrengo e-posta hauek arazoak sortu dituzte:"
sent: "Gonbidapenen jasotzaileak hauek izan dira:"
edit:
@ -273,6 +274,7 @@ eu:
mark_all_as_read: "Guztiak irakurrita"
notifications: "Jakinarazpenak"
liked: "(e)k zure mezua gustoko du"
liked_post_deleted: "liked your deleted post."
mentioned: "(e)k zu aipatu zaitu hemen:"
new_request: "(e)k zurekin partekatu nahi du."
post: "mezua."

View file

@ -207,6 +207,7 @@ fi:
already_contacts: "Olet jo yhteydessä tähän henkilöön"
already_sent: "Olet jo kutsunut tämän henkilön."
no_more: "Sinulla ei ole enempää kutsuja."
own_address: "You can't send an invitation to your own address."
rejected: "Seuraavissa sähköpostiosoitteissa oli ongelmia: "
sent: "Kutsut on lähetetty seuraaviin osoitteisiin:"
edit:
@ -273,6 +274,7 @@ fi:
mark_all_as_read: "Merkitse kaikki luetuiksi"
notifications: "Ilmoitukset"
liked: "has just liked your post"
liked_post_deleted: "liked your deleted post."
mentioned: "on maininnut sinut "
new_request: "haluaa jakaa kanssasi."
post: "viesti."

View file

@ -43,13 +43,13 @@ fr:
are_you_sure: "Êtes-vous certains?"
aspect_memberships:
aspect_dropdown:
add_to_aspect: "Add to aspect"
add_to_aspect: "Ajouter à l'aspect"
toggle:
few: "In %{count} aspects"
many: "In %{count} aspects"
one: "In %{count} aspect"
other: "In %{count} aspects"
zero: "Add to aspect"
few: "Dans %{count} aspects"
many: "Dans %{count} aspects"
one: "Dans %{count} aspect"
other: "Dans %{count} aspects"
zero: "Ajouter à l'aspect"
destroy:
failure: "Impossible de retirer la personne de l'aspect"
no_membership: "Impossible de trouver la personne sélectionnée dans cet aspect"
@ -123,8 +123,8 @@ fr:
zero: "aucun aspect"
back: "Retour"
bookmarklet:
explanation: "%{link} depuis n'importe où en ajoutant ce bookmarklet à vos marque-pages ou favoris."
explanation_link_text: "Publier sur Diaspora"
explanation: "Publier sur Diaspora depuis n'importe où en ajoutant %{link} à vos marque-pages."
explanation_link_text: "ce lien"
post_something: "Publier quelque chose sur Diaspora"
post_success: "Publié ! Fermeture !"
cancel: "Annuler"
@ -207,6 +207,7 @@ fr:
already_contacts: "Vous avez déjà établi une connexion avec cette personne"
already_sent: "Vous avez déjà invité cette personne."
no_more: "Vous navez plus dinvitation."
own_address: "You can't send an invitation to your own address."
rejected: "Les adresses de courrier électronique suivantes ont rencontré des problèmes :"
sent: "Les invitations ont été envoyées à :"
edit:
@ -273,6 +274,7 @@ fr:
mark_all_as_read: "Tout marquer comme lu"
notifications: "Notifications"
liked: "vient juste d'aimer votre message"
liked_post_deleted: "liked your deleted post."
mentioned: "vous a mentionné(e) dans un"
new_request: "a proposé de partager avec vous."
post: "message."
@ -510,10 +512,10 @@ fr:
logged_in_as: "Connecté en tant que %{name}"
your_aspects: "vos aspects"
invitations:
by_email: "par courriel"
by_email: "Par courriel"
dont_have_now: "Vous n'en avez aucune pour l'instant, mais d'autres invitations arriveront bientôt !"
from_facebook: "depuis Facebook"
invitations_left: "(il vous en reste %{count})"
invitations_left: "il vous en reste %{count}"
invite_someone: "Inviter quelqu'un"
invite_your_friends: "Invitez vos amis"
invites: "Invitations"

View file

@ -207,6 +207,7 @@ ga:
already_contacts: "Tá tú cheanna féin ceangailte leis an duine seo"
already_sent: "Cheana féin sheol tú cuireadh chuig an duine seo."
no_more: "Níl aon cuiridh eile agat."
own_address: "You can't send an invitation to your own address."
rejected: "Bhí fadbhanna ag na seolaí ríomhphost seo: "
sent: "Tá cuiridh seola chuigh: "
edit:
@ -273,6 +274,7 @@ ga:
mark_all_as_read: "Mark All as Read"
notifications: "Fograí"
liked: "has just liked your post"
liked_post_deleted: "liked your deleted post."
mentioned: "has mentioned you in their"
new_request: "ofráiladh chun roint leant"
post: "póst"

View file

@ -207,6 +207,7 @@ he:
already_contacts: "כבר יש לך קשר עם אדם זה"
already_sent: "כבר הזמנת אדם זה."
no_more: "אין לך עוד הזמנות."
own_address: "You can't send an invitation to your own address."
rejected: "בכתובת הדוא״ל הבאה התגלו שגיאות:"
sent: "נשלחו הזמנות אל:"
edit:
@ -273,6 +274,7 @@ he:
mark_all_as_read: "סימון הכול כלאחר קריאה"
notifications: "התרעות"
liked: "has just liked your post"
liked_post_deleted: "liked your deleted post."
mentioned: "הזכיר/ה אותך ב"
new_request: "הציע/ה לשתף אתך."
post: "רשומה."

View file

@ -207,6 +207,7 @@ hu:
already_contacts: "Már ismerősöd ez a személy"
already_sent: "Már meghívtad ezt a személyt."
no_more: "Nincs több felkérésed."
own_address: "You can't send an invitation to your own address."
rejected: "Az alábbi e-mail címmel voltak problémák:"
sent: "Meghívók elküldve ide:"
edit:
@ -273,6 +274,7 @@ hu:
mark_all_as_read: "Mind megjelölése olvasottként"
notifications: "Értesítések"
liked: "has just liked your post"
liked_post_deleted: "liked your deleted post."
mentioned: "megemlített téged egy"
new_request: "megosztást ajánlott neked."
post: "bejegyzésben."

View file

@ -207,6 +207,7 @@ id:
already_contacts: "You are already connected with this person"
already_sent: "You already invited this person."
no_more: "You have no more invitations."
own_address: "You can't send an invitation to your own address."
rejected: "The following email addresses had problems: "
sent: "Your invitation has been sent."
edit:
@ -273,6 +274,7 @@ id:
mark_all_as_read: "Mark All as Read"
notifications: "Notifications"
liked: "has just liked your post"
liked_post_deleted: "liked your deleted post."
mentioned: "has mentioned you in their"
new_request: "offered to share with you."
post: "post"

View file

@ -207,6 +207,7 @@ is:
already_contacts: "Þú tengist þessari manneskju nú þegar"
already_sent: "Þessari manneskju hefur þegar verið boðið."
no_more: "Ekki eru til fleiri boðsmiðar."
own_address: "You can't send an invitation to your own address."
rejected: "Eftirfarandi netföng ollu vandræðum: "
sent: "Boðsmiðar hafa verið sendir til:"
edit:
@ -273,6 +274,7 @@ is:
mark_all_as_read: "Merkja allt sem lesið"
notifications: "Tilkynningar"
liked: "has just liked your post"
liked_post_deleted: "liked your deleted post."
mentioned: "hefur getið þín í þeirra"
new_request: "bauð þér samnýtingu."
post: "setja inn"

View file

@ -207,6 +207,7 @@ it:
already_contacts: "Sei già connessa con questa persona"
already_sent: "Hai già invitato questa persona."
no_more: "Non hai più inviti a disposizione"
own_address: "You can't send an invitation to your own address."
rejected: "Questi indirizzi email hanno dei problemi:"
sent: "Il tuoi inviti sono stati inviati a:"
edit:
@ -273,6 +274,7 @@ it:
mark_all_as_read: "Segna Tutti come Letti"
notifications: "Notifiche"
liked: "ha appena apprezzato il tuo post"
liked_post_deleted: "liked your deleted post."
mentioned: "ti ha menzionato in un "
new_request: "vuole condividere con te."
post: "post."

View file

@ -207,6 +207,7 @@ ja:
already_contacts: "既に連絡先として登録しています。"
already_sent: "既に招待しました。"
no_more: "招待権がもう残っていません。"
own_address: "You can't send an invitation to your own address."
rejected: "次のメールアドレスに問題が発生しました:"
sent: "次の人々に招待を送信しました:"
edit:
@ -273,6 +274,7 @@ ja:
mark_all_as_read: "全件を既読にする"
notifications: "通知"
liked: "has just liked your post"
liked_post_deleted: "liked your deleted post."
mentioned: "さんはあなたをメンションしました。"
new_request: "さんは共有の許可を求めました。"
post: "(投稿で)"

View file

@ -43,13 +43,13 @@ ko:
are_you_sure: "확실합니까?"
aspect_memberships:
aspect_dropdown:
add_to_aspect: "Add to aspect"
add_to_aspect: "애스펙에 넣기"
toggle:
few: "In %{count} aspects"
many: "In %{count} aspects"
one: "In %{count} aspect"
other: "In %{count} aspects"
zero: "Add to aspect"
few: "애스펙 %{count}개 안에 있어요"
many: "애스펙 %{count}개 안에 있어요"
one: "애스펙 한 개 안에 있어요"
other: "애스펙 %{count}개 안에 있어요"
zero: "애스펙에 넣기"
destroy:
failure: "애스펙에서 지우지 못했습니다"
no_membership: "애스펙에서 찾을 수 없는 사람입니다"
@ -207,6 +207,7 @@ ko:
already_contacts: "이미 컨택인 사람입니다."
already_sent: "이미 초대한 사람입니다."
no_more: "가진 초대장 이 없습니다."
own_address: "You can't send an invitation to your own address."
rejected: "아래의 이메일 주소는 문제가 있습니다: "
sent: "초대장이 보내진 이메일 주소: "
edit:
@ -273,6 +274,7 @@ ko:
mark_all_as_read: "모두 읽음으로 표시"
notifications: "알림"
liked: "님이 내 공유물을 좋아합니다"
liked_post_deleted: "liked your deleted post."
mentioned: " 님이 나를 멘션했습니다:"
new_request: " 님이 나와 공유를 시작했습니다."
post: "공유물"

View file

@ -207,6 +207,7 @@ lt:
already_contacts: "You are already connected with this person"
already_sent: "You already invited this person."
no_more: "Daugiau pakvietimų neturi."
own_address: "You can't send an invitation to your own address."
rejected: "Šie el. pašto adresai neveikė: "
sent: "Pakvietimas išsiųstas."
edit:
@ -273,6 +274,7 @@ lt:
mark_all_as_read: "Mark All as Read"
notifications: "Notifications"
liked: "has just liked your post"
liked_post_deleted: "liked your deleted post."
mentioned: "has mentioned you in their"
new_request: "offered to share with you."
post: "post"

View file

@ -207,6 +207,7 @@ mk:
already_contacts: "You are already connected with this person"
already_sent: "You already invited this person."
no_more: "Немате повеќе покани."
own_address: "You can't send an invitation to your own address."
rejected: "Следните е-маил адреси имаа проблем:"
sent: "Поканите беа испратени кон:"
edit:
@ -273,6 +274,7 @@ mk:
mark_all_as_read: "Mark All as Read"
notifications: "Notifications"
liked: "has just liked your post"
liked_post_deleted: "liked your deleted post."
mentioned: "has mentioned you in their"
new_request: "offered to share with you."
post: "post"

View file

@ -207,6 +207,7 @@ nb:
already_contacts: "Du er allerede tilknyttet denne personen"
already_sent: "Du har allerede invitert denne personen."
no_more: "Du har ikke flere invitasjoner."
own_address: "You can't send an invitation to your own address."
rejected: "Følgende e-postadresser hadde problemer:"
sent: "Invitasjoner har blitt sendt til:"
edit:
@ -273,6 +274,7 @@ nb:
mark_all_as_read: "Merk alle som leste"
notifications: "Varsler"
liked: "has just liked your post"
liked_post_deleted: "liked your deleted post."
mentioned: "har nevnt deg i sin"
new_request: "spør om å få dele med deg."
post: "innlegg"

View file

@ -207,6 +207,7 @@ nl:
already_contacts: "Je bent al verbonden met deze persoon"
already_sent: "Je hebt deze persoon al uitgenodigd."
no_more: "Je hebt geen uitnodigingen meer."
own_address: "You can't send an invitation to your own address."
rejected: "De volgende e-mailadressen gaven problemen: "
sent: "Uitnodigingen zijn verzonden aan:"
edit:
@ -273,6 +274,7 @@ nl:
mark_all_as_read: "Markeer alles gelezen"
notifications: "Notificaties"
liked: "vind je post leuk"
liked_post_deleted: "liked your deleted post."
mentioned: "heeft je genoemd in een"
new_request: "bood aan om met jou te delen."
post: "post."

View file

@ -207,6 +207,7 @@ pa:
already_contacts: "You are already connected with this person"
already_sent: "You already invited this person."
no_more: "You have no more invitations."
own_address: "You can't send an invitation to your own address."
rejected: "The following email addresses had problems: "
sent: "Invitations have been sent to: "
edit:
@ -273,6 +274,7 @@ pa:
mark_all_as_read: "Mark All as Read"
notifications: "Notifications"
liked: "has just liked your post"
liked_post_deleted: "liked your deleted post."
mentioned: "has mentioned you in their"
new_request: "offered to share with you."
post: "ਪੋਸਟ"

View file

@ -207,6 +207,7 @@ pl:
already_contacts: "{m,f:Jesteś już|n:Połączono już}{ }{m,f:połączon}{m:y|f:a} z tą osobą."
already_sent: "Już zapros@{m:iłeś|f:iłaś|n:zono} tę osobę."
no_more: "Nie masz więcej zaproszeń."
own_address: "You can't send an invitation to your own address."
rejected: "Poniższy adres e-mail okazał się problematyczny:"
sent: "Zaproszenia zostały wysłane do:"
edit:
@ -273,6 +274,7 @@ pl:
mark_all_as_read: "Oznacz wszystkie jako przeczytane"
notifications: "Powiadomienia"
liked: "polubił twój wpis"
liked_post_deleted: "liked your deleted post."
mentioned: "wspomniał o tobie we wpisie"
new_request: "chce zostać twoim znajomym."
post: "wpis."

View file

@ -207,6 +207,7 @@ pt-BR:
already_contacts: "Você já está conectado com essa pessoa."
already_sent: "Você já convidou essa pessoa."
no_more: "Você não possui mais convites."
own_address: "You can't send an invitation to your own address."
rejected: "Emails com problemas: "
sent: "Convites foram enviados para:"
edit:
@ -273,6 +274,7 @@ pt-BR:
mark_all_as_read: "Marcar Tudo como Lido"
notifications: "Notificações"
liked: "has just liked your post"
liked_post_deleted: "liked your deleted post."
mentioned: "has mentioned you in their"
new_request: "deseja partilhar com você."
post: "post"

View file

@ -43,13 +43,13 @@ pt-PT:
are_you_sure: "Tem a certeza?"
aspect_memberships:
aspect_dropdown:
add_to_aspect: "Add to aspect"
add_to_aspect: "Adicionar ao aspecto"
toggle:
few: "In %{count} aspects"
many: "In %{count} aspects"
one: "In %{count} aspect"
other: "In %{count} aspects"
zero: "Add to aspect"
few: "Em %{count} aspectos"
many: "Em %{count} aspectos"
one: "Em %{count} aspecto"
other: "Em %{count} aspectos"
zero: "Adicionar ao aspecto"
destroy:
failure: "Erro ao remover a pessoa do aspecto"
no_membership: "A pessoa seleccionada não foi encontrada neste aspecto"
@ -123,8 +123,8 @@ pt-PT:
zero: "não há aspectos"
back: "Voltar"
bookmarklet:
explanation: "%{link} de qualquer lado ao adicionar esta hiperligação como marcador."
explanation_link_text: "Publicar no Diaspora"
explanation: "Publique no Diaspora de qualquer lado ao adicionar %{link} como marcador."
explanation_link_text: "esta hiperligação"
post_something: "Publique qualquer coisa no Diaspora"
post_success: "Publicado! A fechar!"
cancel: "Cancelar"
@ -207,6 +207,7 @@ pt-PT:
already_contacts: "Já está ligado a esta pessoa"
already_sent: "Já convidou esta pessoa."
no_more: "Não tem mais convites."
own_address: "You can't send an invitation to your own address."
rejected: "Os seguintes endereços de email tiveram problemas: "
sent: "Os convites foram enviados a:"
edit:
@ -273,6 +274,7 @@ pt-PT:
mark_all_as_read: "Marcar Tudo como Lido"
notifications: "Notificações"
liked: "gostou da sua publicação"
liked_post_deleted: "liked your deleted post."
mentioned: "mencionou-o numa"
new_request: "deseja partilhar consigo."
post: "publicação."
@ -510,10 +512,10 @@ pt-PT:
logged_in_as: "iniciou sessão como %{name}"
your_aspects: "os seus aspectos"
invitations:
by_email: "por email"
by_email: "Por Email"
dont_have_now: "Não tem nenhum agora, mas terá mais convites brevemente!"
from_facebook: "do Facebook"
invitations_left: "(faltam %{count})"
invitations_left: "ainda tem %{count}"
invite_someone: "Convidar alguém"
invite_your_friends: "Convide os seus amigos"
invites: "Convites"

View file

@ -207,6 +207,7 @@ ro:
already_contacts: "Eşti deja conectat cu această persoană"
already_sent: "Ai invitat deja această persoană."
no_more: "Nu mai dispui de invitaţii."
own_address: "You can't send an invitation to your own address."
rejected: "The following email addresses had problems: "
sent: "Invitaţia dvs. a fost trimisă."
edit:
@ -273,6 +274,7 @@ ro:
mark_all_as_read: "Marchează-le pe toate ca citite"
notifications: "Notificări"
liked: "has just liked your post"
liked_post_deleted: "liked your deleted post."
mentioned: "has mentioned you in their"
new_request: "offered to share with you."
post: "post"

View file

@ -207,6 +207,7 @@ ru:
already_contacts: "Вы уже связаны с этим человеком"
already_sent: "Вы уже пригласили этого человека."
no_more: "У вас закончились приглашения."
own_address: "You can't send an invitation to your own address."
rejected: "Следующие адреса электронной почты имеют проблемы:"
sent: "Ваши приглашения отправлены:"
edit:
@ -273,6 +274,7 @@ ru:
mark_all_as_read: "Отметить все как прочитанные"
notifications: "Уведомления"
liked: "понравилось Ваше сообщение"
liked_post_deleted: "liked your deleted post."
mentioned: "упомянул вас в"
new_request: "предлагает поделиться с вами."
post: "сообщение."

View file

@ -207,6 +207,7 @@ sk:
already_contacts: "S touto osobou ste už spojený."
already_sent: "Túto osobu ste už pozvali."
no_more: "Nemáte žiadné nové pozvania."
own_address: "You can't send an invitation to your own address."
rejected: "Problém s nasledujúcimi adresami: "
sent: "Vaše pozvanie bolo odoslané."
edit:
@ -273,6 +274,7 @@ sk:
mark_all_as_read: "Všetko označiť ako prečítané"
notifications: "Notifikácie"
liked: "has just liked your post"
liked_post_deleted: "liked your deleted post."
mentioned: "ťa spomenuli v ich"
new_request: "offered to share with you."
post: "príspevok"

View file

@ -207,6 +207,7 @@ sl:
already_contacts: "S to osebo ste že povezani"
already_sent: "To osebo ste že povabili."
no_more: "Nimate več povabil."
own_address: "You can't send an invitation to your own address."
rejected: "Naslednji e-naslovi imajo težave z dostavo povabila: "
sent: "Povabila so bila poslana naslednjim: "
edit:
@ -273,6 +274,7 @@ sl:
mark_all_as_read: "Označi vse kot prebrano"
notifications: "Sporočila"
liked: "has just liked your post"
liked_post_deleted: "liked your deleted post."
mentioned: "bili ste omenjeni v objavi"
new_request: "nekdo želi deliti z vami."
post: "prispevek"

View file

@ -207,6 +207,7 @@ sv:
already_contacts: "Du är redan ansluten med denna personen"
already_sent: "Du har redan bjudit in denna personen."
no_more: "Du har inga fler inbjudningar."
own_address: "You can't send an invitation to your own address."
rejected: "Det var problem med följande e-postadresser: "
sent: "Inbjudningar har skickats till:"
edit:
@ -273,6 +274,7 @@ sv:
mark_all_as_read: "Markera alla som läst"
notifications: "Notifieringar"
liked: "har precis gillat ditt inlägg"
liked_post_deleted: "liked your deleted post."
mentioned: "har nämnt dig i sitt"
new_request: "erbjöd sig att dela med dig."
post: "inlägg."

View file

@ -207,6 +207,7 @@ tr:
already_contacts: "You are already connected with this person"
already_sent: "You already invited this person."
no_more: "Başka davetiyeniz bulunmamaktadır."
own_address: "You can't send an invitation to your own address."
rejected: "The following email addresses had problems: "
sent: "Your invitation has been sent."
edit:
@ -273,6 +274,7 @@ tr:
mark_all_as_read: "Mark All as Read"
notifications: "Notifications"
liked: "has just liked your post"
liked_post_deleted: "liked your deleted post."
mentioned: "has mentioned you in their"
new_request: "offered to share with you."
post: "post"

View file

@ -207,6 +207,7 @@ zh-CN:
already_contacts: "你已经将他加为好友了"
already_sent: "你邀请过这个人了。"
no_more: "你没有邀请函了。"
own_address: "You can't send an invitation to your own address."
rejected: "下列电子信箱有问题: "
sent: "邀请函已经寄给: "
edit:
@ -273,6 +274,7 @@ zh-CN:
mark_all_as_read: "全部标示为已读"
notifications: "消息"
liked: "has just liked your post"
liked_post_deleted: "liked your deleted post."
mentioned: "在他发布的内容中提到了你"
new_request: "想要与您分享。"
post: "日志。"

View file

@ -207,6 +207,7 @@ zh-TW:
already_contacts: "你已經和這個人相連了"
already_sent: "你邀請過這個人了."
no_more: "你沒有邀請函了."
own_address: "You can't send an invitation to your own address."
rejected: "下列電子信箱有問題: "
sent: "邀請函已經寄給: "
edit:
@ -273,6 +274,7 @@ zh-TW:
mark_all_as_read: "全部標示為已讀"
notifications: "消息"
liked: "剛剛對你的貼文說讚"
liked_post_deleted: "liked your deleted post."
mentioned: "在貼文中提到了你"
new_request: "想要跟你分享."
post: "貼文."

View file

@ -17,7 +17,7 @@ el:
hide: "Απόκρυψη σχολίων"
show: "προβολή σχολίων"
confirm_dialog: "Είστε σίγουρος/η;"
failed_to_like: "Failed to like!"
failed_to_like: "Αποτυχία!"
failed_to_post_message: "Αποτυχία δημοσίευσης μηνύματος!"
infinite_scroll:
no_more: "Δεν υπάρχουν άλλες δημοσιεύσεις."

View file

@ -26,7 +26,9 @@ a.ui-link-inherit
.info_pane
:text-align left
#login_form
:padding 15px
:padding-top 0px
#diaspora_description
:background

View file

@ -2,20 +2,92 @@ require 'spec_helper'
describe NotificationsHelper do
include ApplicationHelper
before do
@user = Factory(:user)
@person = Factory(:person)
@post = Factory(:status_message, :author => @user.person)
@person2 = Factory(:person)
@notification = Notification.notify(@user, Factory(:like, :author => @person, :post => @post), @person)
@notification = Notification.notify(@user, Factory(:like, :author => @person2, :post => @post), @person2)
end
describe '#notification_people_link' do
context 'formatting' do
include ActionView::Helpers::SanitizeHelper
let(:output){ strip_tags(notification_people_link(@note)) }
before do
@max = Factory(:person)
@max.profile.first_name = 'max'
@max.profile.last_name = 'salzberg'
@sarah = Factory(:person)
@sarah.profile.first_name = 'sarah'
@sarah.profile.last_name = 'mei'
@daniel = Factory(:person)
@daniel.profile.first_name = 'daniel'
@daniel.profile.last_name = 'grippi'
@ilya = Factory(:person)
@ilya.profile.first_name = 'ilya'
@ilya.profile.last_name = 'zhit'
@note = mock()
end
it 'with two, does not comma seperate two actors' do
@note.stub!(:actors).and_return([@max, @sarah])
output.scan(/,/).should be_empty
output.scan(/and/).count.should be 1
end
it 'with three, comma seperates the first two, and and the last actor' do
@note.stub!(:actors).and_return([@max, @sarah, @daniel])
output.scan(/,/).count.should be 2
output.scan(/and/).count.should be 1
end
it 'with more than three, lists the first three, then the others tag' do
@note.stub!(:actors).and_return([@max, @sarah, @daniel, @ilya])
puts output
output.scan(/,/).count.should be 3
output.scan(/and/).count.should be 2
end
end
describe 'for a like' do
it 'displays #{list of actors}' do
@user = Factory(:user)
@person = Factory(:person)
p = Factory(:status_message, :author => @user.person)
person2 = Factory(:person)
notification = Notification.notify(@user, Factory(:like, :author => @person, :post => p), @person)
notification2 = Notification.notify(@user, Factory(:like, :author => person2, :post => p), person2)
output = notification_people_link(notification2)
output.should include person2.name
output = notification_people_link(@notification)
output.should include @person2.name
output.should include @person.name
end
end
end
describe '#object_link' do
describe 'for a like' do
it 'should include a link to the post' do
output = object_link(@notification)
output.should include status_message_path(@post)
end
it 'includes the boilerplate translation' do
output = object_link(@notification)
output.should include t("#{@notification.popup_translation_key}")
end
context 'when post is deleted' do
it 'works' do
@post.destroy
expect{ object_link(@notification)}.should_not raise_error
end
it 'displays that the post was deleted' do
@post.destroy
object_link(@notification).should == t('notifications.liked_post_deleted')
end
end
end
end
end