diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-15 23:56:03 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-16 00:55:33 +0100 |
commit | 546c4718e781f8900ba6498307ccb1e659de5edd (patch) | |
tree | f69b4941a8806cceff656991cffc46c9661654e7 /app/views/accounts | |
parent | 3ce6ac0ce2e482bc1f2784c3c7f716172b151902 (diff) |
Localizations for most server-side strings
Diffstat (limited to 'app/views/accounts')
-rw-r--r-- | app/views/accounts/_header.html.haml | 10 | ||||
-rw-r--r-- | app/views/accounts/_nothing_here.html.haml | 2 | ||||
-rw-r--r-- | app/views/accounts/followers.html.haml | 3 | ||||
-rw-r--r-- | app/views/accounts/following.html.haml | 4 |
4 files changed, 8 insertions, 11 deletions
diff --git a/app/views/accounts/_header.html.haml b/app/views/accounts/_header.html.haml index ec2233b77..0063d9f16 100644 --- a/app/views/accounts/_header.html.haml +++ b/app/views/accounts/_header.html.haml @@ -2,9 +2,9 @@ - if user_signed_in? && current_account.id != @account.id .controls - if current_account.following?(@account) - = link_to 'Unfollow', unfollow_account_path(@account), data: { method: :post }, class: 'button' + = link_to t('accounts.unfollow'), unfollow_account_path(@account), data: { method: :post }, class: 'button' - else - = link_to 'Follow', follow_account_path(@account), data: { method: :post }, class: 'button' + = link_to t('accounts.follow'), follow_account_path(@account), data: { method: :post }, class: 'button' .avatar= image_tag @account.avatar.url(:large) %h1.name @@ -17,13 +17,13 @@ .details-counters .counter{ class: active_nav_class(account_url(@account)) } = link_to account_url(@account) do - %span.counter-label Posts + %span.counter-label= t('accounts.posts') %span.counter-number= @account.statuses.count .counter{ class: active_nav_class(following_account_url(@account)) } = link_to following_account_url(@account) do - %span.counter-label Following + %span.counter-label= t('accounts.following') %span.counter-number= @account.following.count .counter{ class: active_nav_class(followers_account_url(@account)) } = link_to followers_account_url(@account) do - %span.counter-label Followers + %span.counter-label= t('accounts.followers') %span.counter-number= @account.followers.count diff --git a/app/views/accounts/_nothing_here.html.haml b/app/views/accounts/_nothing_here.html.haml index faa1feb20..0c6dc1168 100644 --- a/app/views/accounts/_nothing_here.html.haml +++ b/app/views/accounts/_nothing_here.html.haml @@ -1 +1 @@ -%p.nothing-here There is nothing here! +%p.nothing-here= t('accounts.nothing_here') diff --git a/app/views/accounts/followers.html.haml b/app/views/accounts/followers.html.haml index 7a6e270ac..493491020 100644 --- a/app/views/accounts/followers.html.haml +++ b/app/views/accounts/followers.html.haml @@ -1,6 +1,5 @@ - content_for :page_title do - People who follow - = display_name(@account) + = t('accounts.people_who_follow', name: display_name(@account)) = render partial: 'header' diff --git a/app/views/accounts/following.html.haml b/app/views/accounts/following.html.haml index 95843f64d..370cd6c48 100644 --- a/app/views/accounts/following.html.haml +++ b/app/views/accounts/following.html.haml @@ -1,7 +1,5 @@ - content_for :page_title do - People whom - = display_name(@account) - follows + = t('accounts.people_followed_by', name: display_name(@account)) = render partial: 'header' |