<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,6 +3,7 @@ Edge
 
 * Replaced own sharing code by acts_as_shareable plugin. Please, install acts_as_shareable and it's migration before running plugins migrations.
 * Acts_as_state_machine code replaced by AASM gem
+* Better messages for bidirectional friendships
 
 0.5.4
 ----</diff>
      <filename>CHANGELOG.md</filename>
    </modified>
    <modified>
      <diff>@@ -4,12 +4,12 @@ class Member::FriendshipsController &lt; Member::BaseController
 
   def add_friend
     if @friend.add_follower(current_user.profile)
-      flash[:ok]=I18n.t(&quot;tog_social.friendships.member.friend.added&quot;, :friend_name =&gt; @friend.full_name)
+      flash[:ok]=I18n.t(&quot;tog_social.friendships.member.friend.request&quot;, :friend_name =&gt; @friend.full_name)
       Message.new(
         :from =&gt; current_user,
         :to   =&gt; @friend.user,
-        :subject =&gt; I18n.t(&quot;tog_social.friendships.member.mail.add_friend.subject&quot;, :user_name =&gt; current_user.profile.full_name),
-        :content =&gt; I18n.t(&quot;tog_social.friendships.member.mail.add_friend.content&quot;, 
+        :subject =&gt; I18n.t(&quot;tog_social.friendships.member.mail.request_friend.subject&quot;, :user_name =&gt; current_user.profile.full_name),
+        :content =&gt; I18n.t(&quot;tog_social.friendships.member.mail.request_friend.content&quot;, 
                            :user_name   =&gt; current_user.profile.full_name, 
                            :friend_name =&gt; @friend.full_name, 
                            :user_profile_url =&gt; profile_url(current_user.profile) , </diff>
      <filename>app/controllers/member/friendships_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -169,7 +169,7 @@ en:
         followed: You are now following '{{user_name}}'
         unfollowed: You aren't following '{{user_name}}' anymore
         friend:
-          added: &quot;You have added {{friend_name}} as your contact&quot;
+          request: &quot;You have requested {{friend_name}} to be your contact.&quot;
           confirmed: &quot;You have confirmed your friendship with {{friend_name}}&quot;
         mail:
           follow:
@@ -178,9 +178,9 @@ en:
           unfollow:
             subject: &quot;{{user_name}} isn't following you anymore!&quot;
             content: &quot;Hi {{friend_name}}, &lt;p&gt;{{user_name}} has stopped to following you.&lt;/p&gt; &lt;p&gt;Check out {{user_name}}'s profile here: &lt;br/&gt;&lt;a href='{{user_profile_url}}'&gt;{{user_profile_url}}&lt;/a&gt;&lt;/p&gt;&quot;
-          add_friend:
-            subject: &quot;You are the newest contact of {{user_name}}!&quot;
-            content: &quot;Hi {{friend_name}}, &lt;p&gt;{{user_name}} has marked you as a contact.&lt;/p&gt; &lt;p&gt;Check out {{user_name}}'s profile here: &lt;br/&gt;&lt;a href='{{user_profile_url}}'&gt;{{user_profile_url}}&lt;/a&gt;&lt;/p&gt; &lt;p&gt;To confirm yours friendship you can visit: &lt;br/&gt;&lt;a href='{{confirm_url}}'&gt;{{confirm_url}}&lt;/a&gt;&quot;
+          request_friend:
+            subject: &quot;{{user_name}} has requested to be your contact!&quot;
+            content: &quot;Hi {{friend_name}}, &lt;p&gt;{{user_name}} has add you as a contact.&lt;/p&gt; &lt;p&gt;Check out {{user_name}}'s profile here: &lt;br/&gt;&lt;a href='{{user_profile_url}}'&gt;{{user_profile_url}}&lt;/a&gt;&lt;/p&gt; &lt;p&gt;To confirm yours friendship you can visit: &lt;br/&gt;&lt;a href='{{confirm_url}}'&gt;{{confirm_url}}&lt;/a&gt;&lt;p&gt;Just ignore this message if you are not interested&lt;/p&gt;&quot;
           confirm_friend:
-            subject: &quot;{{user_name}} has confirmed yours friendship!&quot;
-            content: &quot;Hi {{friend_name}}, &lt;p&gt;{{user_name}} has marked you as a contact too.&lt;/p&gt; &lt;p&gt;Check out {{user_name}}'s profile here: &lt;br/&gt;&lt;a href='{{user_profile_url}}'&gt;{{user_profile_url}}&lt;/a&gt;&lt;/p&gt;&quot;
\ No newline at end of file
+            subject: &quot;{{user_name}} has confirmed your friendship!&quot;
+            content: &quot;Hi {{friend_name}}, &lt;p&gt;{{user_name}} has confirmed you as his/her contact.&lt;/p&gt; &lt;p&gt;Check out {{user_name}}'s profile here: &lt;br/&gt;&lt;a href='{{user_profile_url}}'&gt;{{user_profile_url}}&lt;/a&gt;&lt;/p&gt;&quot;
\ No newline at end of file</diff>
      <filename>locale/tog_social.yml</filename>
    </modified>
    <modified>
      <diff>@@ -169,7 +169,7 @@ es:
         followed: Ahora sigues a '{{user_name}}'
         unfollowed: Has dejado de seguir a '{{user_name}}'        
         friend:
-          added: &quot;Has a&#241;adido a {{friend_name}} como tu contacto&quot;
+          request: &quot;Has solicitado a {{friend_name}} ser tu contacto&quot;
           confirmed: &quot;Has confirmado a {{friend_name}} como tu contacto&quot;
         mail:
           follow:
@@ -178,9 +178,9 @@ es:
           unfollow:
             subject: &quot;&#161;{{user_name}} ha dejado de seguirte!&quot;
             content: &quot;Hola {{friend_name}}, &lt;p&gt;{{user_name}} ha dejado de seguirte.&lt;/p&gt; &lt;p&gt;Consulta el perfil de {{user_name}} aqu&#237;: &lt;br/&gt;&lt;a href='{{user_profile_url}}'&gt;{{user_profile_url}}&lt;/a&gt;&lt;/p&gt;&quot;
-          add_friend:
-            subject: &quot;&#161;Eres el contacto m&#225;s reciente de {{user_name}}!&quot;
-            content: &quot;Hola {{friend_name}}, &lt;p&gt;{{user_name}} te ha a&#241;adido como contacto.&lt;/p&gt; &lt;p&gt;Puedes ver el perfil de {{user_name}} aqu&#237;: &lt;br/&gt;&lt;a href='{{user_profile_url}}'&gt;{{user_profile_url}}&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Para a&#241;adirlo como contacto visita: &lt;br/&gt;&lt;a href='{{confirm_url}}'&gt;{{confirm_url}}&lt;/a&gt;&quot;
+          request_friend:
+            subject: &quot;&#161;{{user_name}} ha solicitado ser tu contacto!&quot;
+            content: &quot;Hola {{friend_name}}, &lt;p&gt;{{user_name}} ha solicitad ser tu contacto.&lt;/p&gt; &lt;p&gt;Puedes ver el perfil de {{user_name}} aqu&#237;: &lt;br/&gt;&lt;a href='{{user_profile_url}}'&gt;{{user_profile_url}}&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Para a&#241;adirlo como contacto visita: &lt;br/&gt;&lt;a href='{{confirm_url}}'&gt;{{confirm_url}}&lt;/a&gt;&lt;p&gt;Si no estas interesado simplemente ignora este mensaje&lt;/p&gt;&quot;
           confirm_friend:
             subject: &quot;&#161;{{user_name}} te ha confirmado como contacto!&quot;
-            content: &quot;Hola {{friend_name}}, &lt;p&gt;{{user_name}} tambi&#233;n te ha a&#241;adido como contacto.&lt;/p&gt; &lt;p&gt;Puedes ver el perfil de {{user_name}} aqu&#237;: &lt;br/&gt;&lt;a href='{{user_profile_url}}'&gt;{{user_profile_url}}&lt;/a&gt;&lt;/p&gt;&quot;
+            content: &quot;Hola {{friend_name}}, &lt;p&gt;{{user_name}} te ha confirmado como contacto.&lt;/p&gt; &lt;p&gt;Puedes ver el perfil de {{user_name}} aqu&#237;: &lt;br/&gt;&lt;a href='{{user_profile_url}}'&gt;{{user_profile_url}}&lt;/a&gt;&lt;/p&gt;&quot;</diff>
      <filename>locale/tog_social_es.yml</filename>
    </modified>
    <modified>
      <diff>@@ -24,10 +24,10 @@ class Member::FriendshipsControllerTest &lt; ActionController::TestCase
       
       should &quot;send an info message&quot; do
         assert_equal 1, @chavez.inbox.messages.count
-        assert_equal I18n.t(&quot;tog_social.friendships.member.mail.add_friend.subject&quot;, :user_name =&gt; @berlusconi.profile.full_name), @chavez.inbox.messages.first.subject
+        assert_equal I18n.t(&quot;tog_social.friendships.member.mail.request_friend.subject&quot;, :user_name =&gt; @berlusconi.profile.full_name), @chavez.inbox.messages.first.subject
       end
 
-      should_set_the_flash_to I18n.t(&quot;tog_social.friendships.member.friend.added&quot;, :friend_name =&gt; &quot;chavez&quot;)
+      should_set_the_flash_to I18n.t(&quot;tog_social.friendships.member.friend.request&quot;, :friend_name =&gt; &quot;chavez&quot;)
     end
     
     context &quot;on POST to :confirm_friend&quot; do</diff>
      <filename>test/functional/member/friendships_controller_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a1a3223dcc3a75f5a61674f7dab75cb51c39b5bc</id>
    </parent>
  </parents>
  <author>
    <name>molpe</name>
    <email>alberto.molpeceres@gmail.com</email>
  </author>
  <url>http://github.com/tog/tog_social/commit/4daa7af26f91ed3b1ca206bf031c6182e26bef1b</url>
  <id>4daa7af26f91ed3b1ca206bf031c6182e26bef1b</id>
  <committed-date>2009-11-02T04:43:30-08:00</committed-date>
  <authored-date>2009-11-02T04:43:30-08:00</authored-date>
  <message> Better messages for bidirectional friendships</message>
  <tree>977cf36996577bd0a0cc71faadf51937aa149d94</tree>
  <committer>
    <name>molpe</name>
    <email>alberto.molpeceres@gmail.com</email>
  </committer>
</commit>
