about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/mailers/notification_mailer.rb8
-rw-r--r--app/views/about/index.html.haml21
-rw-r--r--app/views/about/terms.en.html.haml (renamed from app/views/about/terms.html.haml)0
-rw-r--r--app/views/accounts/_header.html.haml10
-rw-r--r--app/views/accounts/_nothing_here.html.haml2
-rw-r--r--app/views/accounts/followers.html.haml3
-rw-r--r--app/views/accounts/following.html.haml4
-rw-r--r--app/views/auth/mailer/confirmation_instructions.en.html.erb (renamed from app/views/auth/mailer/confirmation_instructions.html.erb)0
-rw-r--r--app/views/auth/mailer/confirmation_instructions.en.text.erb (renamed from app/views/auth/mailer/confirmation_instructions.text.erb)0
-rw-r--r--app/views/auth/mailer/password_change.en.html.erb (renamed from app/views/auth/mailer/password_change.html.erb)0
-rw-r--r--app/views/auth/mailer/password_change.en.text.erb (renamed from app/views/auth/mailer/password_change.text.erb)0
-rw-r--r--app/views/auth/mailer/reset_password_instructions.en.html.erb (renamed from app/views/auth/mailer/reset_password_instructions.html.erb)0
-rw-r--r--app/views/auth/mailer/reset_password_instructions.en.text.erb (renamed from app/views/auth/mailer/reset_password_instructions.text.erb)0
-rw-r--r--app/views/layouts/mailer.text.erb2
-rw-r--r--app/views/notification_mailer/favourite.text.erb2
-rw-r--r--app/views/notification_mailer/follow.text.erb2
-rw-r--r--app/views/notification_mailer/mention.text.erb2
-rw-r--r--app/views/notification_mailer/reblog.text.erb2
-rw-r--r--app/views/oauth/authorizations/new.html.haml10
-rw-r--r--app/views/stream_entries/_favourite.html.haml2
-rw-r--r--app/views/stream_entries/_follow.html.haml2
21 files changed, 30 insertions, 42 deletions
diff --git a/app/mailers/notification_mailer.rb b/app/mailers/notification_mailer.rb
index 2ed562979..33bea4c79 100644
--- a/app/mailers/notification_mailer.rb
+++ b/app/mailers/notification_mailer.rb
@@ -8,7 +8,7 @@ class NotificationMailer < ApplicationMailer
     @status = status
 
     return unless @me.user.settings(:notification_emails).mention
-    mail to: @me.user.email, subject: "You were mentioned by #{@status.account.acct}"
+    mail to: @me.user.email, subject: I18n.t('notification_mailer.mention.subject', name: @status.account.acct)
   end
 
   def follow(followed_account, follower)
@@ -16,7 +16,7 @@ class NotificationMailer < ApplicationMailer
     @account = follower
 
     return unless @me.user.settings(:notification_emails).follow
-    mail to: @me.user.email, subject: "#{@account.acct} is now following you"
+    mail to: @me.user.email, subject: I18n.t('notification_mailer.follow.subject', name: @account.acct)
   end
 
   def favourite(target_status, from_account)
@@ -25,7 +25,7 @@ class NotificationMailer < ApplicationMailer
     @status  = target_status
 
     return unless @me.user.settings(:notification_emails).favourite
-    mail to: @me.user.email, subject: "#{@account.acct} favourited your status"
+    mail to: @me.user.email, subject: I18n.t('notification_mailer.favourite.subject', name: @account.acct)
   end
 
   def reblog(target_status, from_account)
@@ -34,6 +34,6 @@ class NotificationMailer < ApplicationMailer
     @status  = target_status
 
     return unless @me.user.settings(:notification_emails).reblog
-    mail to: @me.user.email, subject: "#{@account.acct} reblogged your status"
+    mail to: @me.user.email, subject: I18n.t('notification_mailer.reblog.subject', name: @account.acct)
   end
 end
diff --git a/app/views/about/index.html.haml b/app/views/about/index.html.haml
index e9e2f9d93..307d75c81 100644
--- a/app/views/about/index.html.haml
+++ b/app/views/about/index.html.haml
@@ -6,24 +6,15 @@
     = image_tag 'logo.png'
     Mastodon
 
-  %p
-    Mastodon is a
-    %em free, open-source
-    social network server. A
-    %em decentralized
-    alternative to commercial platforms, it avoids the risks of a single company monopolizing your communication. Anyone can run Mastodon and participate in the
-    %em social network
-    seamlessly.
-  %p
-    %em= Rails.configuration.x.local_domain
-    is a Mastodon instance.
+  %p= t('about.about_mastodon').html_safe
+  %p= t('about.about_instance', instance: Rails.configuration.x.local_domain).html_safe
 
   .screenshot= image_tag 'screenshot.png'
 
   .actions
     .info
-      = link_to 'Terms', terms_path
-      = link_to 'Source code', 'https://github.com/Gargron/mastodon'
+      = link_to t('about.terms'), terms_path
+      = link_to t('about.source_code'), 'https://github.com/Gargron/mastodon'
 
-    = link_to 'Get started', new_user_registration_path, class: 'button'
-    = link_to 'Log in', new_user_session_path, class: 'button'
+    = link_to t('about.get_started'), new_user_registration_path, class: 'button'
+    = link_to t('auth.login'), new_user_session_path, class: 'button'
diff --git a/app/views/about/terms.html.haml b/app/views/about/terms.en.html.haml
index 9fb318053..9fb318053 100644
--- a/app/views/about/terms.html.haml
+++ b/app/views/about/terms.en.html.haml
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'
 
diff --git a/app/views/auth/mailer/confirmation_instructions.html.erb b/app/views/auth/mailer/confirmation_instructions.en.html.erb
index 69e9ff80f..69e9ff80f 100644
--- a/app/views/auth/mailer/confirmation_instructions.html.erb
+++ b/app/views/auth/mailer/confirmation_instructions.en.html.erb
diff --git a/app/views/auth/mailer/confirmation_instructions.text.erb b/app/views/auth/mailer/confirmation_instructions.en.text.erb
index bb21cf8e2..bb21cf8e2 100644
--- a/app/views/auth/mailer/confirmation_instructions.text.erb
+++ b/app/views/auth/mailer/confirmation_instructions.en.text.erb
diff --git a/app/views/auth/mailer/password_change.html.erb b/app/views/auth/mailer/password_change.en.html.erb
index a1bc77463..a1bc77463 100644
--- a/app/views/auth/mailer/password_change.html.erb
+++ b/app/views/auth/mailer/password_change.en.html.erb
diff --git a/app/views/auth/mailer/password_change.text.erb b/app/views/auth/mailer/password_change.en.text.erb
index 27581e604..27581e604 100644
--- a/app/views/auth/mailer/password_change.text.erb
+++ b/app/views/auth/mailer/password_change.en.text.erb
diff --git a/app/views/auth/mailer/reset_password_instructions.html.erb b/app/views/auth/mailer/reset_password_instructions.en.html.erb
index 643b43319..643b43319 100644
--- a/app/views/auth/mailer/reset_password_instructions.html.erb
+++ b/app/views/auth/mailer/reset_password_instructions.en.html.erb
diff --git a/app/views/auth/mailer/reset_password_instructions.text.erb b/app/views/auth/mailer/reset_password_instructions.en.text.erb
index fe73b0165..fe73b0165 100644
--- a/app/views/auth/mailer/reset_password_instructions.text.erb
+++ b/app/views/auth/mailer/reset_password_instructions.en.text.erb
diff --git a/app/views/layouts/mailer.text.erb b/app/views/layouts/mailer.text.erb
index 632702439..ae52173b5 100644
--- a/app/views/layouts/mailer.text.erb
+++ b/app/views/layouts/mailer.text.erb
@@ -2,4 +2,4 @@
 
 ---
 
-Mastodon notifications from <%= Rails.configuration.x.local_domain %>
+<%= t('application_mailer.signature', instance: Rails.configuration.x.local_domain) %>
diff --git a/app/views/notification_mailer/favourite.text.erb b/app/views/notification_mailer/favourite.text.erb
index 1b6fa274c..b2e1e3e9e 100644
--- a/app/views/notification_mailer/favourite.text.erb
+++ b/app/views/notification_mailer/favourite.text.erb
@@ -1,5 +1,5 @@
 <%= display_name(@me) %>,
 
-Your status was favourited by <%= @account.acct %>:
+<%= t('notification_mailer.favourite.body', name: @account.acct) %>
 
 <%= render partial: 'status' %>
diff --git a/app/views/notification_mailer/follow.text.erb b/app/views/notification_mailer/follow.text.erb
index 4098e4846..4b2ec142c 100644
--- a/app/views/notification_mailer/follow.text.erb
+++ b/app/views/notification_mailer/follow.text.erb
@@ -1,5 +1,5 @@
 <%= display_name(@me) %>,
 
-<%= @account.acct %> is now following you!
+<%= t('notification_mailer.follow.body', name: @account.acct) %>
 
 <%= web_url("accounts/#{@account.id}") %>
diff --git a/app/views/notification_mailer/mention.text.erb b/app/views/notification_mailer/mention.text.erb
index 72dc1b009..31a294bb9 100644
--- a/app/views/notification_mailer/mention.text.erb
+++ b/app/views/notification_mailer/mention.text.erb
@@ -1,5 +1,5 @@
 <%= display_name(@me) %>,
 
-You were mentioned by <%= @status.account.acct %> in:
+<%= t('notification_mailer.mention.body', name: @status.account.acct) %>
 
 <%= render partial: 'status' %>
diff --git a/app/views/notification_mailer/reblog.text.erb b/app/views/notification_mailer/reblog.text.erb
index 2077e949e..7af8052ca 100644
--- a/app/views/notification_mailer/reblog.text.erb
+++ b/app/views/notification_mailer/reblog.text.erb
@@ -1,5 +1,5 @@
 <%= display_name(@me) %>,
 
-Your status was reblogged by <%= @account.acct %>:
+<%= t('notification_mailer.reblog.body', name: @account.acct) %>
 
 <%= render partial: 'status' %>
diff --git a/app/views/oauth/authorizations/new.html.haml b/app/views/oauth/authorizations/new.html.haml
index ba5d426f5..cd6e93e08 100644
--- a/app/views/oauth/authorizations/new.html.haml
+++ b/app/views/oauth/authorizations/new.html.haml
@@ -1,11 +1,11 @@
+- content_for :page_title do
+  = t('doorkeeper.authorizations.new.title')
+
 .oauth-prompt
-  %h2
-    Application
-    %strong=@pre_auth.client.name
-    requests access to your account
+  %h2= t('doorkeeper.authorizations.new.prompt', name: @pre_auth.client.name)
 
   %p
-    It will be able to
+    = t('doorkeeper.authorizations.new.able_to')
     = @pre_auth.scopes.map { |scope| t(scope, scope: [:doorkeeper, :scopes]) }.map { |s| "<strong>#{s}</strong>"}.to_sentence.html_safe
 
 = form_tag oauth_authorization_path, method: :post, class: 'simple_form' do
diff --git a/app/views/stream_entries/_favourite.html.haml b/app/views/stream_entries/_favourite.html.haml
index 85e3a0824..aac90dcdf 100644
--- a/app/views/stream_entries/_favourite.html.haml
+++ b/app/views/stream_entries/_favourite.html.haml
@@ -1,5 +1,5 @@
 .entry.entry-favourite
   .content
     %strong= favourite.account.acct
-    favourited a post by
+    = t('stream_entries.favourited')
     %strong= favourite.status.account.acct
diff --git a/app/views/stream_entries/_follow.html.haml b/app/views/stream_entries/_follow.html.haml
index f6ec8c4f5..1a2e2c554 100644
--- a/app/views/stream_entries/_follow.html.haml
+++ b/app/views/stream_entries/_follow.html.haml
@@ -1,5 +1,5 @@
 .entry.entry-follow
   .content
     %strong= link_to follow.account.acct, account_path(follow.account)
-    is now following
+    = t('stream_entries.is_now_following')
     %strong= link_to follow.target_account.acct, TagManager.instance.url_for(follow.target_account)