about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/environments/production.rb2
-rw-r--r--config/i18n-tasks.yml3
-rw-r--r--config/initializers/rack-attack.rb2
-rw-r--r--config/locales/fr.yml32
-rw-r--r--config/locales/simple_form.de.yml3
-rw-r--r--config/locales/simple_form.en.yml3
-rw-r--r--config/locales/simple_form.fr.yml11
7 files changed, 31 insertions, 25 deletions
diff --git a/config/environments/production.rb b/config/environments/production.rb
index dcb659d6c..0672cd587 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -13,7 +13,7 @@ Rails.application.configure do
   # Full error reports are disabled and caching is turned on.
   config.consider_all_requests_local       = false
   config.action_controller.perform_caching = true
-  config.action_controller.asset_host      = ENV['CDN_HOST']
+  config.action_controller.asset_host      = ENV['CDN_HOST'] if ENV.key?('CDN_HOST')
 
   # Disable serving static files from the `/public` folder by default since
   # Apache or NGINX already handles this.
diff --git a/config/i18n-tasks.yml b/config/i18n-tasks.yml
index d345ce6c0..4dc6985b7 100644
--- a/config/i18n-tasks.yml
+++ b/config/i18n-tasks.yml
@@ -30,9 +30,6 @@ search:
     - app/assets/fonts
     - app/assets/videos
 
-ignore_missing:
-  - '{devise,simple_form}.*'
-
 ignore_unused:
   - 'activerecord.attributes.*'
   - '{devise,will_paginate,doorkeeper}.*'
diff --git a/config/initializers/rack-attack.rb b/config/initializers/rack-attack.rb
index 6d9286e66..0e96f5381 100644
--- a/config/initializers/rack-attack.rb
+++ b/config/initializers/rack-attack.rb
@@ -11,7 +11,7 @@ class Rack::Attack
     headers = {
       'X-RateLimit-Limit'     => match_data[:limit].to_s,
       'X-RateLimit-Remaining' => '0',
-      'X-RateLimit-Reset'     => (now + (match_data[:period] - now.to_i % match_data[:period])).to_s
+      'X-RateLimit-Reset'     => (now + (match_data[:period] - now.to_i % match_data[:period])).iso8601(6)
     }
 
     [429, headers, [{ error: 'Throttled' }.to_json]]
diff --git a/config/locales/fr.yml b/config/locales/fr.yml
index c9258381c..f78cd0de5 100644
--- a/config/locales/fr.yml
+++ b/config/locales/fr.yml
@@ -7,44 +7,44 @@ fr:
     source_code: "Code source"
     terms: "Conditions d’utilisation"
   accounts:
-    follow: "S’abonner"
+    follow: "Suivre"
     followers: "Abonnés"
     following: "Abonnements"
-    nothing_here: "Rien à voir ici !"
-    people_followed_by: "Personnes auxquelles %{name} est abonné⋅e"
-    people_who_follow: "Personnes abonnées à %{name}"
+    nothing_here: "Rien à voir ici !"
+    people_followed_by: "Personnes suivies par %{name}"
+    people_who_follow: "Personnes qui suivent %{name}"
     posts: "Statuts"
-    unfollow: "Se désabonner"
+    unfollow: "Ne plus suivre"
   application_mailer:
     signature: "Notifications de Mastodon depuis %{instance}"
   auth:
     change_password: "Changer de mot de passe"
-    didnt_get_confirmation: "Vous n’avez pas reçu les consignes de confirmation ?"
-    forgot_password: "Mode passe oublié ?"
+    didnt_get_confirmation: "Vous n’avez pas reçu les consignes de confirmation ?"
+    forgot_password: "Mode passe oublié ?"
     login: "Se connecter"
     register: "S’inscrire"
     resend_confirmation: "Envoyer à nouveau les consignes de confirmation"
     reset_password: "Réinitialiser le mot de passe"
     set_new_password: "Établir le nouveau mot de passe"
   generic:
-    changes_saved_msg: "Les modifications ont été enregistrées avec succès !"
+    changes_saved_msg: "Les modifications ont été enregistrées avec succès !"
     powered_by: "propulsé par %{link}"
     save_changes: "Enregistrer les modifications"
     validation_errors:
-      one: "Quelque chose ne va pas ! Vérifiez l’erreur ci-dessous."
-      other: "Quelques choses ne vont pas ! Vérifiez les erreurs ci-dessous."
+      one: "Quelque chose ne va pas ! Vérifiez l’erreur ci-dessous."
+      other: "Quelques choses ne vont pas ! Vérifiez les erreurs ci-dessous."
   notification_mailer:
     favourite:
-      body: "%{name} a ajouté votre statut à ses favoris :"
+      body: "%{name} a ajouté votre statut à ses favoris :"
       subject: "%{name} a ajouté votre statut à ses favoris"
     follow:
-      body: "%{name} s’est abonné⋅e à vos statuts !"
-      subject: "%{name} s’est abonné⋅e à vos statuts"
+      body: "%{name} vous suit !"
+      subject: "%{name} vous suit"
     mention:
-      body: "%{name} vous a mentionné⋅e dans :"
+      body: "%{name} vous a mentionné⋅e dans :"
       subject: "%{name} vous a mentionné⋅e"
     reblog:
-      body: "%{name} a partagé votre statut :"
+      body: "%{name} a partagé votre statut :"
       subject: "%{name} a partagé votre statut"
   pagination:
     next: "Suivant"
@@ -54,6 +54,6 @@ fr:
     preferences: "Préférences"
   stream_entries:
     favourited: "a ajouté à ses favoris un statut de"
-    is_now_following: "s’est abonné⋅e à"
+    is_now_following: "suit désormais"
   will_paginate:
     page_gap: "…"
diff --git a/config/locales/simple_form.de.yml b/config/locales/simple_form.de.yml
index 36c5141a2..47e30ccb4 100644
--- a/config/locales/simple_form.de.yml
+++ b/config/locales/simple_form.de.yml
@@ -16,6 +16,9 @@ de:
         password: Passwort
         silenced: Öffentliche Beiträge nicht auflisten
         username: Nutzername
+      interactions:
+        must_be_follower: Benachrichtigungen von nicht-Folgern blockieren
+        must_be_following: Benachrichtigungen von Nutzern blockieren, denen ich nicht folge
       notification_emails:
         favourite: E-mail senden, wenn jemand meinen Beitrag favorisiert
         follow: E-mail senden, wenn mir jemand folgt
diff --git a/config/locales/simple_form.en.yml b/config/locales/simple_form.en.yml
index a7d958c06..1e975af14 100644
--- a/config/locales/simple_form.en.yml
+++ b/config/locales/simple_form.en.yml
@@ -16,6 +16,9 @@ en:
         password: Password
         silenced: Unlisted mode
         username: Username
+      interactions:
+        must_be_follower: Block notifications from non-followers
+        must_be_following: Block notifications from people you don't follow
       notification_emails:
         favourite: Send e-mail when someone favourites your status
         follow: Send e-mail when someone follows you
diff --git a/config/locales/simple_form.fr.yml b/config/locales/simple_form.fr.yml
index 7333c9e11..73905a7b3 100644
--- a/config/locales/simple_form.fr.yml
+++ b/config/locales/simple_form.fr.yml
@@ -15,12 +15,15 @@ fr:
         note: Présentation
         password: Mot de passe
         silenced: Ne pas apparaître dans le fil public
-        username: Nom d’utilisateur
+        username: Identifiant
       notification_emails:
-        favourite: Envoyer un courriel lorsque quelqu’un ajoute un de mes statuts à ses favoris
-        follow: Envoyer un courriel lorsque quelqu’un s’abonne à mes statuts
+        favourite: Envoyer un courriel lorsque quelqu’un ajoute mes statut à ses favoris
+        follow: Envoyer un courriel lorsque quelqu’un me suit
         mention: Envoyer un courriel lorsque quelqu’un me mentionne
-        reblog: Envoyer un courriel lorsque quelqu’un partage un de mes statuts
+        reblog: Envoyer un courriel lorsque quelqu’un partage mes statuts
+      interactions:
+        must_be_follower: Masquer les notifications des personnes qui ne vous suivent pas
+        must_be_following: Masquer les notifications des personnes que vous ne suivez pas
     'no': Non
     required:
       mark: "*"