]> cat aescling's git repositories - mastodon.git/commitdiff
Split relationships page strings (#12502)
authorSasha Sorokin <dafri.nochiterov8@gmail.com>
Sun, 1 Dec 2019 06:08:40 +0000 (13:08 +0700)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 1 Dec 2019 06:08:40 +0000 (07:08 +0100)
Before this moment relationships managing page was using strings from
other context - from counters, but in order for translators to be able
to translate it relatively to the page, it must use separate strings.

I've split the strings for "Following" and "Followers" and put them to
"relationships" keyset in localization file. This should solve this
issue.

Fixes #10863

app/views/relationships/show.html.haml
config/locales/en.yml

index e6fff0ad68e94d0156d27e93365c0964262566ea..0da1596ce7bd934c335bee0d2efae8a85f50feb6 100644 (file)
@@ -8,8 +8,8 @@
   .filter-subset
     %strong= t 'relationships.relationship'
     %ul
-      %li= filter_link_to t('accounts.following', count: current_account.following_count), relationship: nil
-      %li= filter_link_to t('accounts.followers', count: current_account.followers_count), relationship: 'followed_by'
+      %li= filter_link_to t('relationships.following'), relationship: nil
+      %li= filter_link_to t('relationships.followers'), relationship: 'followed_by'
       %li= filter_link_to t('relationships.mutual'), relationship: 'mutual'
 
   .filter-subset
index e69b3596f817c09ae58f1454ff4d6f3ab9bae500..d498f6ce39bfb8c12b65e5a524ef3de9eb35b8f9 100644 (file)
@@ -925,6 +925,8 @@ en:
   relationships:
     activity: Account activity
     dormant: Dormant
+    followers: Followers
+    following: Following
     last_active: Last active
     most_recent: Most recent
     moved: Moved