From cfcb8eb6fe2820cba2bcae84818a6cb657900ec4 Mon Sep 17 00:00:00 2001
From: Hangzhi Yu <hangzhi@protonmail.com>
Date: Fri, 28 May 2021 15:59:48 +0200
Subject: [PATCH] Rename social account/3rd party account to third-party
 account

---
 aleksis/core/menus.py                                     | 2 +-
 .../templates/socialaccount/authentication_error.html     | 8 ++++----
 aleksis/core/templates/socialaccount/connections.html     | 4 ++--
 .../templates/socialaccount/snippets/provider_list.html   | 4 ++--
 aleksis/core/views.py                                     | 4 ++--
 5 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/aleksis/core/menus.py b/aleksis/core/menus.py
index a1b6f3211..8bc306950 100644
--- a/aleksis/core/menus.py
+++ b/aleksis/core/menus.py
@@ -94,7 +94,7 @@ MENUS = {
                     ],
                 },
                 {
-                    "name": _("Social accounts"),
+                    "name": _("Third-party accounts"),
                     "url": "socialaccount_connections",
                     "icon": "public",
                     "validators": [
diff --git a/aleksis/core/templates/socialaccount/authentication_error.html b/aleksis/core/templates/socialaccount/authentication_error.html
index 95bd2b5aa..00901daf7 100644
--- a/aleksis/core/templates/socialaccount/authentication_error.html
+++ b/aleksis/core/templates/socialaccount/authentication_error.html
@@ -2,18 +2,18 @@
 
 {% load i18n material_form %}
 
-{% block browser_title %}{% trans "Social Network Login Failure" %}{% endblock %}
-{% block page_title %}{% trans "Social Network Login Failure" %}{% endblock %}
+{% block browser_title %}{% trans "Third-party Account Login Failure" %}{% endblock %}
+{% block page_title %}{% trans "Third-party Account Login Failure" %}{% endblock %}
 
 {% block content %}
   <div class="container">
     <div class="card red">
       <div class="card-content white-text">
         <div class="material-icons small left">error_outline</div>
-        <span class="card-title">{% blocktrans %}Social Network Login Failure.{% endblocktrans %}</span>
+        <span class="card-title">{% blocktrans %}Third-party Account Login Failure.{% endblocktrans %}</span>
         <p>
           {% blocktrans %}
-            An error occurred while attempting to login via your social network account.
+            An error occurred while attempting to login via your third-party account.
             Please contact one of your site administrators.
           {% endblocktrans %}
         </p>
diff --git a/aleksis/core/templates/socialaccount/connections.html b/aleksis/core/templates/socialaccount/connections.html
index 2e725ee31..1ff2c2eb6 100644
--- a/aleksis/core/templates/socialaccount/connections.html
+++ b/aleksis/core/templates/socialaccount/connections.html
@@ -31,10 +31,10 @@
     </div>
 
   {% else %}
-    <p>{% trans 'You currently have no social network accounts connected to this account.' %}</p>
+    <p>{% trans 'You currently have no third-party accounts connected to this account.' %}</p>
   {% endif %}
 
-  <h5>{% trans 'Add a 3rd Party Account' %}</h5>
+  <h5>{% trans 'Add a Third-party Account' %}</h5>
 
   {% include "socialaccount/snippets/provider_list.html" with process="connect" %}
 
diff --git a/aleksis/core/templates/socialaccount/snippets/provider_list.html b/aleksis/core/templates/socialaccount/snippets/provider_list.html
index e16a81810..9d9a9c877 100644
--- a/aleksis/core/templates/socialaccount/snippets/provider_list.html
+++ b/aleksis/core/templates/socialaccount/snippets/provider_list.html
@@ -28,9 +28,9 @@
       <div>
         <i class="material-icons left">info</i>
         {% blocktrans %}
-          No 3rd party account providers available.
+          No third-party account providers available.
         {% endblocktrans %}
       </div>
     </div>
   {% endif %}
-</p>
\ No newline at end of file
+</p>
diff --git a/aleksis/core/views.py b/aleksis/core/views.py
index c1f1bcbef..ad762e3eb 100644
--- a/aleksis/core/views.py
+++ b/aleksis/core/views.py
@@ -1134,13 +1134,13 @@ class SocialAccountDeleteView(DeleteView):
             messages.error(
                 self.request,
                 _(
-                    "The social account could not be disconnected "
+                    "The third-party account could not be disconnected "
                     "because it is the only login method available."
                 ),
             )
         else:
             self.object.delete()
             messages.success(
-                self.request, _("The social account has been successfully disconnected.")
+                self.request, _("The third-party account has been successfully disconnected.")
             )
         return HttpResponseRedirect(success_url)
-- 
GitLab