浏览代码

Merge pull request #367 from m4sk1n/nosavedposts

Add message for no saved posts
daniel 7 年之前
父节点
当前提交
98dc7cc211

+ 1 - 0
resources/lang/en/profile.php

@@ -4,5 +4,6 @@ return [
   'emptyTimeline' => 'This user has no posts yet!',
   'emptyFollowers' => 'This user has no followers yet!',
   'emptyFollowing' => 'This user is not following anyone yet!',
+  'emptySaved' => 'You haven’t saved any post yet!',
   'savedWarning'  => 'Only you can see what you’ve saved',
 ];

+ 1 - 0
resources/lang/pl/navmenu.php

@@ -9,5 +9,6 @@ return [
     'settings' => 'Ustawienia',
     'admin' => 'Administrator',
     'logout' => 'Wyloguj się',
+    'directMessages' => 'Wiadomości bezpośrednie',
 
 ];

+ 4 - 4
resources/lang/pl/notification.php

@@ -2,9 +2,9 @@
 
 return [
 
-  'likedPhoto' => 'polubił Twoje zdjęcie.',
-  'startedFollowingYou' => 'zaczął Cię obserwować.',
-  'commented' => 'skomentował Twój wpis',
-  'mentionedYou' => 'wspomniał o Tobie.'
+  'likedPhoto' => 'polubił(a) Twoje zdjęcie.',
+  'startedFollowingYou' => 'zaczął(-ęła) Cię obserwować.',
+  'commented' => 'skomentował(a) Twój wpis',
+  'mentionedYou' => 'wspomniał(a) o Tobie.'
 
 ];

+ 2 - 1
resources/lang/pl/profile.php

@@ -4,5 +4,6 @@ return [
   'emptyTimeline' => 'Ten użytkownik nie opublikował jeszcze niczego!',
   'emptyFollowers' => 'Nikt nie obserwuje tego użytkownika!',
   'emptyFollowing' => 'Ten użytkownik nie obserwuje nikogo!',
-  'savedWarning'  => 'Tylko Ty widzisz to, co zapisałeś',
+  'emptySaved' => 'Nie zapisałeś(-aś) jeszcze niczego!',
+  'savedWarning'  => 'Tylko Ty widzisz to, co zapisałeś(-aś)',
 ];

+ 5 - 1
resources/views/profile/show.blade.php

@@ -56,7 +56,11 @@
         <div class="card">
           <div class="card-body py-5 my-5">
             <div class="d-flex my-5 py-5 justify-content-center align-items-center">
-              <p class="lead font-weight-bold">{{ __('profile.emptyTimeline') }}</p>
+              @if($owner && request()->is('*/saved'))
+                <p class="lead font-weight-bold">{{ __('profile.emptySaved') }}</p>
+              @else
+                <p class="lead font-weight-bold">{{ __('profile.emptyTimeline') }}</p>
+              @endif
             </div>
           </div>
       </div>