From 992e478e95293feb69dbb5666b58f84fe815ec1f Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sat, 11 Sep 2021 14:16:52 -0700 Subject: [PATCH] Use readable/translatable strings for db choices --- .../migrations/0095_auto_20210911_2053.py | 45 ++++ bookwyrm/models/base_model.py | 18 +- bookwyrm/models/connector.py | 2 +- bookwyrm/models/federated_server.py | 16 +- bookwyrm/models/user.py | 2 +- .../templates/settings/federated_server.html | 2 +- bookwyrm/templates/settings/federation.html | 2 +- bookwyrm/templates/user_admin/user_info.html | 2 +- locale/de_DE/LC_MESSAGES/django.po | 194 +++++++++++++---- locale/en_US/LC_MESSAGES/django.po | 168 +++++++++++---- locale/es/LC_MESSAGES/django.po | 197 ++++++++++++++---- locale/fr_FR/LC_MESSAGES/django.po | 192 +++++++++++++---- locale/zh_Hans/LC_MESSAGES/django.po | 190 +++++++++++++---- locale/zh_Hant/LC_MESSAGES/django.po | 190 +++++++++++++---- 14 files changed, 970 insertions(+), 250 deletions(-) create mode 100644 bookwyrm/migrations/0095_auto_20210911_2053.py diff --git a/bookwyrm/migrations/0095_auto_20210911_2053.py b/bookwyrm/migrations/0095_auto_20210911_2053.py new file mode 100644 index 00000000..06d15f5e --- /dev/null +++ b/bookwyrm/migrations/0095_auto_20210911_2053.py @@ -0,0 +1,45 @@ +# Generated by Django 3.2.4 on 2021-09-11 20:53 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("bookwyrm", "0094_auto_20210911_1550"), + ] + + operations = [ + migrations.AlterField( + model_name="connector", + name="deactivation_reason", + field=models.CharField( + blank=True, + choices=[ + ("pending", "Pending"), + ("self_deletion", "Self deletion"), + ("moderator_suspension", "Moderator suspension"), + ("moderator_deletion", "Moderator deletion"), + ("domain_block", "Domain block"), + ], + max_length=255, + null=True, + ), + ), + migrations.AlterField( + model_name="user", + name="deactivation_reason", + field=models.CharField( + blank=True, + choices=[ + ("pending", "Pending"), + ("self_deletion", "Self deletion"), + ("moderator_suspension", "Moderator suspension"), + ("moderator_deletion", "Moderator deletion"), + ("domain_block", "Domain block"), + ], + max_length=255, + null=True, + ), + ), + ] diff --git a/bookwyrm/models/base_model.py b/bookwyrm/models/base_model.py index f19ebfd9..0ac2061a 100644 --- a/bookwyrm/models/base_model.py +++ b/bookwyrm/models/base_model.py @@ -3,21 +3,19 @@ import base64 from Crypto import Random from django.db import models from django.dispatch import receiver +from django.utils.translation import gettext_lazy as _ from bookwyrm.settings import DOMAIN from .fields import RemoteIdField -DeactivationReason = models.TextChoices( - "DeactivationReason", - [ - "pending", - "self_deletion", - "moderator_suspension", - "moderator_deletion", - "domain_block", - ], -) +DeactivationReason = [ + ("pending", _("Pending")), + ("self_deletion", _("Self deletion")), + ("moderator_suspension", _("Moderator suspension")), + ("moderator_deletion", _("Moderator deletion")), + ("domain_block", _("Domain block")), +] def new_access_code(): diff --git a/bookwyrm/models/connector.py b/bookwyrm/models/connector.py index 2d671790..17ba3148 100644 --- a/bookwyrm/models/connector.py +++ b/bookwyrm/models/connector.py @@ -19,7 +19,7 @@ class Connector(BookWyrmModel): api_key = models.CharField(max_length=255, null=True, blank=True) active = models.BooleanField(default=True) deactivation_reason = models.CharField( - max_length=255, choices=DeactivationReason.choices, null=True, blank=True + max_length=255, choices=DeactivationReason, null=True, blank=True ) base_url = models.CharField(max_length=255) diff --git a/bookwyrm/models/federated_server.py b/bookwyrm/models/federated_server.py index 2be13b38..eb03d457 100644 --- a/bookwyrm/models/federated_server.py +++ b/bookwyrm/models/federated_server.py @@ -1,16 +1,16 @@ """ connections to external ActivityPub servers """ from urllib.parse import urlparse + from django.apps import apps from django.db import models +from django.utils.translation import gettext_lazy as _ + from .base_model import BookWyrmModel -FederationStatus = models.TextChoices( - "Status", - [ - "federated", - "blocked", - ], -) +FederationStatus = [ + ("federated", _("Federated")), + ("blocked", _("Blocked")), +] class FederatedServer(BookWyrmModel): @@ -18,7 +18,7 @@ class FederatedServer(BookWyrmModel): server_name = models.CharField(max_length=255, unique=True) status = models.CharField( - max_length=255, default="federated", choices=FederationStatus.choices + max_length=255, default="federated", choices=FederationStatus ) # is it mastodon, bookwyrm, etc application_type = models.CharField(max_length=255, null=True, blank=True) diff --git a/bookwyrm/models/user.py b/bookwyrm/models/user.py index 1b03f93a..a33daf72 100644 --- a/bookwyrm/models/user.py +++ b/bookwyrm/models/user.py @@ -134,7 +134,7 @@ class User(OrderedCollectionPageMixin, AbstractUser): max_length=255, ) deactivation_reason = models.CharField( - max_length=255, choices=DeactivationReason.choices, null=True, blank=True + max_length=255, choices=DeactivationReason, null=True, blank=True ) deactivation_date = models.DateTimeField(null=True, blank=True) confirmation_code = models.CharField(max_length=32, default=new_access_code) diff --git a/bookwyrm/templates/settings/federated_server.html b/bookwyrm/templates/settings/federated_server.html index 140a0af7..6a1a5488 100644 --- a/bookwyrm/templates/settings/federated_server.html +++ b/bookwyrm/templates/settings/federated_server.html @@ -29,7 +29,7 @@
{% trans "Status:" %}
-
{{ server.status }}
+
{{ server.get_status_display }}
diff --git a/bookwyrm/templates/settings/federation.html b/bookwyrm/templates/settings/federation.html index ed122e0b..16fe1686 100644 --- a/bookwyrm/templates/settings/federation.html +++ b/bookwyrm/templates/settings/federation.html @@ -34,7 +34,7 @@ {{ server.server_name }} {{ server.created_date }} {{ server.application_type }} ({{ server.application_version }}) - {{ server.status }} + {{ server.get_status_display }} {% endfor %} diff --git a/bookwyrm/templates/user_admin/user_info.html b/bookwyrm/templates/user_admin/user_info.html index 69a84a66..7ad57e0e 100644 --- a/bookwyrm/templates/user_admin/user_info.html +++ b/bookwyrm/templates/user_admin/user_info.html @@ -27,7 +27,7 @@

{% trans "Inactive" %} {% if user.deactivation_reason %} - ({{ user.deactivation_reason }}) + ({% trans user.get_deactivation_reason_display %}) {% endif %}

{% endif %} diff --git a/locale/de_DE/LC_MESSAGES/django.po b/locale/de_DE/LC_MESSAGES/django.po index e6d04039..976f8caa 100644 --- a/locale/de_DE/LC_MESSAGES/django.po +++ b/locale/de_DE/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: 0.0.1\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-09-10 22:50+0000\n" +"POT-Creation-Date: 2021-09-11 20:58+0000\n" "PO-Revision-Date: 2021-03-02 17:19-0800\n" "Last-Translator: Mouse Reeve \n" "Language-Team: English \n" @@ -18,72 +18,111 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: bookwyrm/forms.py:236 +#: bookwyrm/forms.py:242 #, fuzzy #| msgid "A user with that username already exists." msgid "A user with this email already exists." msgstr "Dieser Benutzename ist bereits vergeben." -#: bookwyrm/forms.py:250 +#: bookwyrm/forms.py:256 msgid "One Day" msgstr "Ein Tag" -#: bookwyrm/forms.py:251 +#: bookwyrm/forms.py:257 msgid "One Week" msgstr "Eine Woche" -#: bookwyrm/forms.py:252 +#: bookwyrm/forms.py:258 msgid "One Month" msgstr "Ein Monat" -#: bookwyrm/forms.py:253 +#: bookwyrm/forms.py:259 msgid "Does Not Expire" msgstr "Läuft nicht aus" -#: bookwyrm/forms.py:258 +#: bookwyrm/forms.py:264 #, python-format msgid "%(count)d uses" msgstr "%(count)d Benutzungen" -#: bookwyrm/forms.py:261 +#: bookwyrm/forms.py:267 #, fuzzy #| msgid "Unlisted" msgid "Unlimited" msgstr "Ungelistet" -#: bookwyrm/forms.py:317 +#: bookwyrm/forms.py:323 msgid "List Order" msgstr "Reihenfolge der Liste" -#: bookwyrm/forms.py:318 +#: bookwyrm/forms.py:324 #, fuzzy #| msgid "Title" msgid "Book Title" msgstr "Titel" -#: bookwyrm/forms.py:319 +#: bookwyrm/forms.py:325 #: bookwyrm/templates/snippets/create_status/review.html:33 #: bookwyrm/templates/user/shelf/shelf.html:117 #: bookwyrm/templates/user/shelf/shelf.html:148 msgid "Rating" msgstr "" -#: bookwyrm/forms.py:321 bookwyrm/templates/lists/list.html:107 +#: bookwyrm/forms.py:327 bookwyrm/templates/lists/list.html:107 msgid "Sort By" msgstr "Sortieren nach" -#: bookwyrm/forms.py:325 +#: bookwyrm/forms.py:331 #, fuzzy #| msgid "Started reading" msgid "Ascending" msgstr "Zu lesen angefangen" -#: bookwyrm/forms.py:326 +#: bookwyrm/forms.py:332 #, fuzzy #| msgid "Started reading" msgid "Descending" msgstr "Zu lesen angefangen" +#: bookwyrm/models/base_model.py:13 +#, fuzzy +#| msgid "Started reading" +msgid "Pending" +msgstr "Zu lesen angefangen" + +#: bookwyrm/models/base_model.py:14 +msgid "Self deletion" +msgstr "" + +#: bookwyrm/models/base_model.py:15 +#, fuzzy +#| msgid "Moderator Comments" +msgid "Moderator suspension" +msgstr "Moderator:innenkommentare" + +#: bookwyrm/models/base_model.py:16 +#, fuzzy +#| msgid "List curation:" +msgid "Moderator deletion" +msgstr "Listenkuratierung:" + +#: bookwyrm/models/base_model.py:17 +msgid "Domain block" +msgstr "" + +#: bookwyrm/models/federated_server.py:11 +#: bookwyrm/templates/settings/edit_server.html:40 +msgid "Federated" +msgstr "Föderiert" + +#: bookwyrm/models/federated_server.py:12 +#: bookwyrm/templates/settings/edit_server.html:41 +#: bookwyrm/templates/settings/federated_server.html:10 +#, fuzzy +#| msgid "Blocked Users" +msgid "Blocked" +msgstr "Blockierte Nutzer*innen" + #: bookwyrm/models/fields.py:27 #, python-format msgid "%(value)s is not a valid remote_id" @@ -782,6 +821,7 @@ msgstr "Passwort bestätigen:" #: bookwyrm/templates/confirm_email/confirm_email.html:25 #: bookwyrm/templates/landing/landing_layout.html:70 #: bookwyrm/templates/moderation/report_modal.html:33 +#: bookwyrm/templates/settings/dashboard.html:93 msgid "Submit" msgstr "Absenden" @@ -1509,7 +1549,7 @@ msgid "Settings" msgstr "Einstellungen" #: bookwyrm/templates/layout.html:118 -#: bookwyrm/templates/settings/layout.html:33 +#: bookwyrm/templates/settings/layout.html:40 #: bookwyrm/templates/settings/manage_invite_requests.html:15 #: bookwyrm/templates/settings/manage_invites.html:3 #: bookwyrm/templates/settings/manage_invites.html:15 @@ -1894,7 +1934,7 @@ msgstr "Listen: %(username)s" #: bookwyrm/templates/moderation/reports.html:8 #: bookwyrm/templates/moderation/reports.html:17 -#: bookwyrm/templates/settings/layout.html:48 +#: bookwyrm/templates/settings/layout.html:55 #, fuzzy #| msgid "Recent Imports" msgid "Reports" @@ -2189,7 +2229,7 @@ msgstr "Suche" #: bookwyrm/templates/search/layout.html:23 #: bookwyrm/templates/search/layout.html:46 -#: bookwyrm/templates/settings/layout.html:27 +#: bookwyrm/templates/settings/layout.html:34 #: bookwyrm/templates/user_admin/user_admin.html:3 #: bookwyrm/templates/user_admin/user_admin.html:10 msgid "Users" @@ -2236,6 +2276,7 @@ msgstr "Nein" #: bookwyrm/templates/settings/announcement.html:47 #: bookwyrm/templates/settings/announcement_form.html:40 +#: bookwyrm/templates/settings/dashboard.html:71 #, fuzzy #| msgid "Birth date:" msgid "Start date:" @@ -2243,6 +2284,7 @@ msgstr "Geburtsdatum:" #: bookwyrm/templates/settings/announcement.html:54 #: bookwyrm/templates/settings/announcement_form.html:49 +#: bookwyrm/templates/settings/dashboard.html:77 #, fuzzy #| msgid "Birth date:" msgid "End date:" @@ -2282,7 +2324,7 @@ msgstr "Geburtsdatum:" #: bookwyrm/templates/settings/announcements.html:3 #: bookwyrm/templates/settings/announcements.html:5 -#: bookwyrm/templates/settings/layout.html:61 +#: bookwyrm/templates/settings/layout.html:68 msgid "Announcements" msgstr "Ankündigungen" @@ -2331,6 +2373,91 @@ msgstr "Aktivität" msgid "inactive" msgstr "Aktivität" +#: bookwyrm/templates/settings/dashboard.html:6 +#: bookwyrm/templates/settings/dashboard.html:8 +#: bookwyrm/templates/settings/layout.html:26 +msgid "Dashboard" +msgstr "" + +#: bookwyrm/templates/settings/dashboard.html:15 +#, fuzzy +#| msgid "Max uses" +msgid "Total users" +msgstr "Maximale Benutzungen" + +#: bookwyrm/templates/settings/dashboard.html:21 +#: bookwyrm/templates/settings/dashboard_user_chart.html:12 +msgid "Active this month" +msgstr "" + +#: bookwyrm/templates/settings/dashboard.html:27 +#, fuzzy +#| msgid "Import Status" +msgid "Statuses" +msgstr "Importstatus" + +#: bookwyrm/templates/settings/dashboard.html:33 +msgid "Works" +msgstr "" + +#: bookwyrm/templates/settings/dashboard.html:43 +#, fuzzy, python-format +#| msgid "%(count)d uses" +msgid "%(display_count)s open report" +msgid_plural "%(display_count)s open reports" +msgstr[0] "%(count)d Benutzungen" +msgstr[1] "%(count)d Benutzungen" + +#: bookwyrm/templates/settings/dashboard.html:54 +#, fuzzy, python-format +#| msgid "%(count)d uses" +msgid "%(display_count)s invite request" +msgid_plural "%(display_count)s invite requests" +msgstr[0] "%(count)d Benutzungen" +msgstr[1] "%(count)d Benutzungen" + +#: bookwyrm/templates/settings/dashboard.html:65 +#, fuzzy +#| msgid "User Activity" +msgid "Instance Activity" +msgstr "Nutzer*innenaktivität" + +#: bookwyrm/templates/settings/dashboard.html:83 +msgid "Interval:" +msgstr "" + +#: bookwyrm/templates/settings/dashboard.html:86 +msgid "Days" +msgstr "" + +#: bookwyrm/templates/settings/dashboard.html:87 +#, fuzzy +#| msgid "One Week" +msgid "Weeks" +msgstr "Eine Woche" + +#: bookwyrm/templates/settings/dashboard.html:100 +#, fuzzy +#| msgid "User Activity" +msgid "User signup activity" +msgstr "Nutzer*innenaktivität" + +#: bookwyrm/templates/settings/dashboard.html:106 +#, fuzzy +#| msgid "User Activity" +msgid "Status activity" +msgstr "Nutzer*innenaktivität" + +#: bookwyrm/templates/settings/dashboard_status_chart.html:7 +#, fuzzy +#| msgid "No statuses reported" +msgid "Statuses posted" +msgstr "Keine Beiträge gemeldet" + +#: bookwyrm/templates/settings/dashboard_user_chart.html:7 +msgid "Total" +msgstr "" + #: bookwyrm/templates/settings/domain_form.html:5 #: bookwyrm/templates/settings/email_blocklist.html:10 msgid "Add domain" @@ -2380,17 +2507,6 @@ msgstr "Instanzname" msgid "Status:" msgstr "Importstatus" -#: bookwyrm/templates/settings/edit_server.html:40 -msgid "Federated" -msgstr "Föderiert" - -#: bookwyrm/templates/settings/edit_server.html:41 -#: bookwyrm/templates/settings/federated_server.html:10 -#, fuzzy -#| msgid "Blocked Users" -msgid "Blocked" -msgstr "Blockierte Nutzer*innen" - #: bookwyrm/templates/settings/edit_server.html:48 #: bookwyrm/templates/settings/federated_server.html:23 #: bookwyrm/templates/user_admin/user_info.html:117 @@ -2411,7 +2527,7 @@ msgstr "" #: bookwyrm/templates/settings/email_blocklist.html:5 #: bookwyrm/templates/settings/email_blocklist.html:7 -#: bookwyrm/templates/settings/layout.html:52 +#: bookwyrm/templates/settings/layout.html:59 #, fuzzy #| msgid "Import Books" msgid "Email Blocklist" @@ -2520,7 +2636,7 @@ msgstr "" #: bookwyrm/templates/settings/federation.html:3 #: bookwyrm/templates/settings/federation.html:5 -#: bookwyrm/templates/settings/layout.html:38 +#: bookwyrm/templates/settings/layout.html:45 #, fuzzy #| msgid "Federated Servers" msgid "Federated Instances" @@ -2547,42 +2663,42 @@ msgstr "" msgid "Administration" msgstr "" -#: bookwyrm/templates/settings/layout.html:22 +#: bookwyrm/templates/settings/layout.html:29 msgid "Manage Users" msgstr "Nutzer*innen verwalten" -#: bookwyrm/templates/settings/layout.html:44 +#: bookwyrm/templates/settings/layout.html:51 #, fuzzy #| msgid "List curation:" msgid "Moderation" msgstr "Listenkuratierung:" -#: bookwyrm/templates/settings/layout.html:57 +#: bookwyrm/templates/settings/layout.html:64 msgid "Instance Settings" msgstr "Instanzeinstellungen" -#: bookwyrm/templates/settings/layout.html:65 +#: bookwyrm/templates/settings/layout.html:72 #: bookwyrm/templates/settings/site.html:4 #: bookwyrm/templates/settings/site.html:6 msgid "Site Settings" msgstr "Seiteneinstellungen" -#: bookwyrm/templates/settings/layout.html:68 +#: bookwyrm/templates/settings/layout.html:75 #: bookwyrm/templates/settings/site.html:13 msgid "Instance Info" msgstr "Instanzinformationen" -#: bookwyrm/templates/settings/layout.html:69 +#: bookwyrm/templates/settings/layout.html:76 #: bookwyrm/templates/settings/site.html:44 msgid "Images" msgstr "Bilder" -#: bookwyrm/templates/settings/layout.html:70 +#: bookwyrm/templates/settings/layout.html:77 #: bookwyrm/templates/settings/site.html:64 msgid "Footer Content" msgstr "Inhalt des Footers" -#: bookwyrm/templates/settings/layout.html:71 +#: bookwyrm/templates/settings/layout.html:78 #: bookwyrm/templates/settings/site.html:86 msgid "Registration" msgstr "Registrierung" diff --git a/locale/en_US/LC_MESSAGES/django.po b/locale/en_US/LC_MESSAGES/django.po index 33ec8c9a..70eab9b0 100644 --- a/locale/en_US/LC_MESSAGES/django.po +++ b/locale/en_US/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: 0.0.1\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-09-10 22:50+0000\n" +"POT-Creation-Date: 2021-09-11 20:58+0000\n" "PO-Revision-Date: 2021-02-28 17:19-0800\n" "Last-Translator: Mouse Reeve \n" "Language-Team: English \n" @@ -18,62 +18,93 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: bookwyrm/forms.py:236 +#: bookwyrm/forms.py:242 msgid "A user with this email already exists." msgstr "" -#: bookwyrm/forms.py:250 +#: bookwyrm/forms.py:256 msgid "One Day" msgstr "" -#: bookwyrm/forms.py:251 +#: bookwyrm/forms.py:257 msgid "One Week" msgstr "" -#: bookwyrm/forms.py:252 +#: bookwyrm/forms.py:258 msgid "One Month" msgstr "" -#: bookwyrm/forms.py:253 +#: bookwyrm/forms.py:259 msgid "Does Not Expire" msgstr "" -#: bookwyrm/forms.py:258 +#: bookwyrm/forms.py:264 #, python-format msgid "%(count)d uses" msgstr "" -#: bookwyrm/forms.py:261 +#: bookwyrm/forms.py:267 msgid "Unlimited" msgstr "" -#: bookwyrm/forms.py:317 +#: bookwyrm/forms.py:323 msgid "List Order" msgstr "" -#: bookwyrm/forms.py:318 +#: bookwyrm/forms.py:324 msgid "Book Title" msgstr "" -#: bookwyrm/forms.py:319 +#: bookwyrm/forms.py:325 #: bookwyrm/templates/snippets/create_status/review.html:33 #: bookwyrm/templates/user/shelf/shelf.html:117 #: bookwyrm/templates/user/shelf/shelf.html:148 msgid "Rating" msgstr "" -#: bookwyrm/forms.py:321 bookwyrm/templates/lists/list.html:107 +#: bookwyrm/forms.py:327 bookwyrm/templates/lists/list.html:107 msgid "Sort By" msgstr "" -#: bookwyrm/forms.py:325 +#: bookwyrm/forms.py:331 msgid "Ascending" msgstr "" -#: bookwyrm/forms.py:326 +#: bookwyrm/forms.py:332 msgid "Descending" msgstr "" +#: bookwyrm/models/base_model.py:13 +msgid "Pending" +msgstr "" + +#: bookwyrm/models/base_model.py:14 +msgid "Self deletion" +msgstr "" + +#: bookwyrm/models/base_model.py:15 +msgid "Moderator suspension" +msgstr "" + +#: bookwyrm/models/base_model.py:16 +msgid "Moderator deletion" +msgstr "" + +#: bookwyrm/models/base_model.py:17 +msgid "Domain block" +msgstr "" + +#: bookwyrm/models/federated_server.py:11 +#: bookwyrm/templates/settings/edit_server.html:40 +msgid "Federated" +msgstr "" + +#: bookwyrm/models/federated_server.py:12 +#: bookwyrm/templates/settings/edit_server.html:41 +#: bookwyrm/templates/settings/federated_server.html:10 +msgid "Blocked" +msgstr "" + #: bookwyrm/models/fields.py:27 #, python-format msgid "%(value)s is not a valid remote_id" @@ -715,6 +746,7 @@ msgstr "" #: bookwyrm/templates/confirm_email/confirm_email.html:25 #: bookwyrm/templates/landing/landing_layout.html:70 #: bookwyrm/templates/moderation/report_modal.html:33 +#: bookwyrm/templates/settings/dashboard.html:93 msgid "Submit" msgstr "" @@ -1386,7 +1418,7 @@ msgid "Settings" msgstr "" #: bookwyrm/templates/layout.html:118 -#: bookwyrm/templates/settings/layout.html:33 +#: bookwyrm/templates/settings/layout.html:40 #: bookwyrm/templates/settings/manage_invite_requests.html:15 #: bookwyrm/templates/settings/manage_invites.html:3 #: bookwyrm/templates/settings/manage_invites.html:15 @@ -1729,7 +1761,7 @@ msgstr "" #: bookwyrm/templates/moderation/reports.html:8 #: bookwyrm/templates/moderation/reports.html:17 -#: bookwyrm/templates/settings/layout.html:48 +#: bookwyrm/templates/settings/layout.html:55 msgid "Reports" msgstr "" @@ -1997,7 +2029,7 @@ msgstr "" #: bookwyrm/templates/search/layout.html:23 #: bookwyrm/templates/search/layout.html:46 -#: bookwyrm/templates/settings/layout.html:27 +#: bookwyrm/templates/settings/layout.html:34 #: bookwyrm/templates/user_admin/user_admin.html:3 #: bookwyrm/templates/user_admin/user_admin.html:10 msgid "Users" @@ -2037,11 +2069,13 @@ msgstr "" #: bookwyrm/templates/settings/announcement.html:47 #: bookwyrm/templates/settings/announcement_form.html:40 +#: bookwyrm/templates/settings/dashboard.html:71 msgid "Start date:" msgstr "" #: bookwyrm/templates/settings/announcement.html:54 #: bookwyrm/templates/settings/announcement_form.html:49 +#: bookwyrm/templates/settings/dashboard.html:77 msgid "End date:" msgstr "" @@ -2069,7 +2103,7 @@ msgstr "" #: bookwyrm/templates/settings/announcements.html:3 #: bookwyrm/templates/settings/announcements.html:5 -#: bookwyrm/templates/settings/layout.html:61 +#: bookwyrm/templates/settings/layout.html:68 msgid "Announcements" msgstr "" @@ -2106,6 +2140,75 @@ msgstr "" msgid "inactive" msgstr "" +#: bookwyrm/templates/settings/dashboard.html:6 +#: bookwyrm/templates/settings/dashboard.html:8 +#: bookwyrm/templates/settings/layout.html:26 +msgid "Dashboard" +msgstr "" + +#: bookwyrm/templates/settings/dashboard.html:15 +msgid "Total users" +msgstr "" + +#: bookwyrm/templates/settings/dashboard.html:21 +#: bookwyrm/templates/settings/dashboard_user_chart.html:12 +msgid "Active this month" +msgstr "" + +#: bookwyrm/templates/settings/dashboard.html:27 +msgid "Statuses" +msgstr "" + +#: bookwyrm/templates/settings/dashboard.html:33 +msgid "Works" +msgstr "" + +#: bookwyrm/templates/settings/dashboard.html:43 +#, python-format +msgid "%(display_count)s open report" +msgid_plural "%(display_count)s open reports" +msgstr[0] "" +msgstr[1] "" + +#: bookwyrm/templates/settings/dashboard.html:54 +#, python-format +msgid "%(display_count)s invite request" +msgid_plural "%(display_count)s invite requests" +msgstr[0] "" +msgstr[1] "" + +#: bookwyrm/templates/settings/dashboard.html:65 +msgid "Instance Activity" +msgstr "" + +#: bookwyrm/templates/settings/dashboard.html:83 +msgid "Interval:" +msgstr "" + +#: bookwyrm/templates/settings/dashboard.html:86 +msgid "Days" +msgstr "" + +#: bookwyrm/templates/settings/dashboard.html:87 +msgid "Weeks" +msgstr "" + +#: bookwyrm/templates/settings/dashboard.html:100 +msgid "User signup activity" +msgstr "" + +#: bookwyrm/templates/settings/dashboard.html:106 +msgid "Status activity" +msgstr "" + +#: bookwyrm/templates/settings/dashboard_status_chart.html:7 +msgid "Statuses posted" +msgstr "" + +#: bookwyrm/templates/settings/dashboard_user_chart.html:7 +msgid "Total" +msgstr "" + #: bookwyrm/templates/settings/domain_form.html:5 #: bookwyrm/templates/settings/email_blocklist.html:10 msgid "Add domain" @@ -2145,15 +2248,6 @@ msgstr "" msgid "Status:" msgstr "" -#: bookwyrm/templates/settings/edit_server.html:40 -msgid "Federated" -msgstr "" - -#: bookwyrm/templates/settings/edit_server.html:41 -#: bookwyrm/templates/settings/federated_server.html:10 -msgid "Blocked" -msgstr "" - #: bookwyrm/templates/settings/edit_server.html:48 #: bookwyrm/templates/settings/federated_server.html:23 #: bookwyrm/templates/user_admin/user_info.html:117 @@ -2172,7 +2266,7 @@ msgstr "" #: bookwyrm/templates/settings/email_blocklist.html:5 #: bookwyrm/templates/settings/email_blocklist.html:7 -#: bookwyrm/templates/settings/layout.html:52 +#: bookwyrm/templates/settings/layout.html:59 msgid "Email Blocklist" msgstr "" @@ -2264,7 +2358,7 @@ msgstr "" #: bookwyrm/templates/settings/federation.html:3 #: bookwyrm/templates/settings/federation.html:5 -#: bookwyrm/templates/settings/layout.html:38 +#: bookwyrm/templates/settings/layout.html:45 msgid "Federated Instances" msgstr "" @@ -2285,40 +2379,40 @@ msgstr "" msgid "Administration" msgstr "" -#: bookwyrm/templates/settings/layout.html:22 +#: bookwyrm/templates/settings/layout.html:29 msgid "Manage Users" msgstr "" -#: bookwyrm/templates/settings/layout.html:44 +#: bookwyrm/templates/settings/layout.html:51 msgid "Moderation" msgstr "" -#: bookwyrm/templates/settings/layout.html:57 +#: bookwyrm/templates/settings/layout.html:64 msgid "Instance Settings" msgstr "" -#: bookwyrm/templates/settings/layout.html:65 +#: bookwyrm/templates/settings/layout.html:72 #: bookwyrm/templates/settings/site.html:4 #: bookwyrm/templates/settings/site.html:6 msgid "Site Settings" msgstr "" -#: bookwyrm/templates/settings/layout.html:68 +#: bookwyrm/templates/settings/layout.html:75 #: bookwyrm/templates/settings/site.html:13 msgid "Instance Info" msgstr "" -#: bookwyrm/templates/settings/layout.html:69 +#: bookwyrm/templates/settings/layout.html:76 #: bookwyrm/templates/settings/site.html:44 msgid "Images" msgstr "" -#: bookwyrm/templates/settings/layout.html:70 +#: bookwyrm/templates/settings/layout.html:77 #: bookwyrm/templates/settings/site.html:64 msgid "Footer Content" msgstr "" -#: bookwyrm/templates/settings/layout.html:71 +#: bookwyrm/templates/settings/layout.html:78 #: bookwyrm/templates/settings/site.html:86 msgid "Registration" msgstr "" diff --git a/locale/es/LC_MESSAGES/django.po b/locale/es/LC_MESSAGES/django.po index ae96a3cb..8e269f48 100644 --- a/locale/es/LC_MESSAGES/django.po +++ b/locale/es/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: 0.0.1\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-09-10 22:50+0000\n" +"POT-Creation-Date: 2021-09-11 20:58+0000\n" "PO-Revision-Date: 2021-03-19 11:49+0800\n" "Last-Translator: Reese Porter \n" "Language-Team: LANGUAGE \n" @@ -18,62 +18,101 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: bookwyrm/forms.py:236 +#: bookwyrm/forms.py:242 msgid "A user with this email already exists." msgstr "Ya existe un usuario con ese correo electrónico." -#: bookwyrm/forms.py:250 +#: bookwyrm/forms.py:256 msgid "One Day" msgstr "Un día" -#: bookwyrm/forms.py:251 +#: bookwyrm/forms.py:257 msgid "One Week" msgstr "Una semana" -#: bookwyrm/forms.py:252 +#: bookwyrm/forms.py:258 msgid "One Month" msgstr "Un mes" -#: bookwyrm/forms.py:253 +#: bookwyrm/forms.py:259 msgid "Does Not Expire" msgstr "Nunca se vence" -#: bookwyrm/forms.py:258 +#: bookwyrm/forms.py:264 #, python-format msgid "%(count)d uses" msgstr "%(count)d usos" -#: bookwyrm/forms.py:261 +#: bookwyrm/forms.py:267 msgid "Unlimited" msgstr "Sin límite" -#: bookwyrm/forms.py:317 +#: bookwyrm/forms.py:323 msgid "List Order" msgstr "Orden de la lista" -#: bookwyrm/forms.py:318 +#: bookwyrm/forms.py:324 msgid "Book Title" msgstr "Título" -#: bookwyrm/forms.py:319 +#: bookwyrm/forms.py:325 #: bookwyrm/templates/snippets/create_status/review.html:33 #: bookwyrm/templates/user/shelf/shelf.html:117 #: bookwyrm/templates/user/shelf/shelf.html:148 msgid "Rating" msgstr "Calificación" -#: bookwyrm/forms.py:321 bookwyrm/templates/lists/list.html:107 +#: bookwyrm/forms.py:327 bookwyrm/templates/lists/list.html:107 msgid "Sort By" msgstr "Ordenar por" -#: bookwyrm/forms.py:325 +#: bookwyrm/forms.py:331 msgid "Ascending" msgstr "Ascendente" -#: bookwyrm/forms.py:326 +#: bookwyrm/forms.py:332 msgid "Descending" msgstr "Descendente" +#: bookwyrm/models/base_model.py:13 +#, fuzzy +#| msgid "Ascending" +msgid "Pending" +msgstr "Ascendente" + +#: bookwyrm/models/base_model.py:14 +msgid "Self deletion" +msgstr "" + +#: bookwyrm/models/base_model.py:15 +#, fuzzy +#| msgid "Moderator Comments" +msgid "Moderator suspension" +msgstr "Comentarios de moderador" + +#: bookwyrm/models/base_model.py:16 +#, fuzzy +#| msgid "Duration" +msgid "Moderator deletion" +msgstr "Duración" + +#: bookwyrm/models/base_model.py:17 +#, fuzzy +#| msgid "Un-block" +msgid "Domain block" +msgstr "Desbloquear" + +#: bookwyrm/models/federated_server.py:11 +#: bookwyrm/templates/settings/edit_server.html:40 +msgid "Federated" +msgstr "Federalizado" + +#: bookwyrm/models/federated_server.py:12 +#: bookwyrm/templates/settings/edit_server.html:41 +#: bookwyrm/templates/settings/federated_server.html:10 +msgid "Blocked" +msgstr "Bloqueado" + #: bookwyrm/models/fields.py:27 #, python-format msgid "%(value)s is not a valid remote_id" @@ -715,6 +754,7 @@ msgstr "Código de confirmación:" #: bookwyrm/templates/confirm_email/confirm_email.html:25 #: bookwyrm/templates/landing/landing_layout.html:70 #: bookwyrm/templates/moderation/report_modal.html:33 +#: bookwyrm/templates/settings/dashboard.html:93 msgid "Submit" msgstr "Enviar" @@ -1388,7 +1428,7 @@ msgid "Settings" msgstr "Configuración" #: bookwyrm/templates/layout.html:118 -#: bookwyrm/templates/settings/layout.html:33 +#: bookwyrm/templates/settings/layout.html:40 #: bookwyrm/templates/settings/manage_invite_requests.html:15 #: bookwyrm/templates/settings/manage_invites.html:3 #: bookwyrm/templates/settings/manage_invites.html:15 @@ -1741,7 +1781,7 @@ msgstr "Informes: %(instance_name)s" #: bookwyrm/templates/moderation/reports.html:8 #: bookwyrm/templates/moderation/reports.html:17 -#: bookwyrm/templates/settings/layout.html:48 +#: bookwyrm/templates/settings/layout.html:55 msgid "Reports" msgstr "Informes" @@ -2013,7 +2053,7 @@ msgstr "Tipo de búsqueda" #: bookwyrm/templates/search/layout.html:23 #: bookwyrm/templates/search/layout.html:46 -#: bookwyrm/templates/settings/layout.html:27 +#: bookwyrm/templates/settings/layout.html:34 #: bookwyrm/templates/user_admin/user_admin.html:3 #: bookwyrm/templates/user_admin/user_admin.html:10 msgid "Users" @@ -2053,11 +2093,13 @@ msgstr "Falso" #: bookwyrm/templates/settings/announcement.html:47 #: bookwyrm/templates/settings/announcement_form.html:40 +#: bookwyrm/templates/settings/dashboard.html:71 msgid "Start date:" msgstr "Fecha de inicio:" #: bookwyrm/templates/settings/announcement.html:54 #: bookwyrm/templates/settings/announcement_form.html:49 +#: bookwyrm/templates/settings/dashboard.html:77 msgid "End date:" msgstr "Fecha final:" @@ -2091,7 +2133,7 @@ msgstr "Fecha final:" #: bookwyrm/templates/settings/announcements.html:3 #: bookwyrm/templates/settings/announcements.html:5 -#: bookwyrm/templates/settings/layout.html:61 +#: bookwyrm/templates/settings/layout.html:68 msgid "Announcements" msgstr "Anuncios" @@ -2128,6 +2170,93 @@ msgstr "activo" msgid "inactive" msgstr "inactivo" +#: bookwyrm/templates/settings/dashboard.html:6 +#: bookwyrm/templates/settings/dashboard.html:8 +#: bookwyrm/templates/settings/layout.html:26 +msgid "Dashboard" +msgstr "" + +#: bookwyrm/templates/settings/dashboard.html:15 +#, fuzzy +#| msgid "Local users" +msgid "Total users" +msgstr "Usuarios locales" + +#: bookwyrm/templates/settings/dashboard.html:21 +#: bookwyrm/templates/settings/dashboard_user_chart.html:12 +msgid "Active this month" +msgstr "" + +#: bookwyrm/templates/settings/dashboard.html:27 +#, fuzzy +#| msgid "Status" +msgid "Statuses" +msgstr "Status" + +#: bookwyrm/templates/settings/dashboard.html:33 +msgid "Works" +msgstr "" + +#: bookwyrm/templates/settings/dashboard.html:43 +#, fuzzy, python-format +#| msgid "%(count)d uses" +msgid "%(display_count)s open report" +msgid_plural "%(display_count)s open reports" +msgstr[0] "%(count)d usos" +msgstr[1] "%(count)d usos" + +#: bookwyrm/templates/settings/dashboard.html:54 +#, fuzzy, python-format +#| msgid "%(count)d uses" +msgid "%(display_count)s invite request" +msgid_plural "%(display_count)s invite requests" +msgstr[0] "%(count)d usos" +msgstr[1] "%(count)d usos" + +#: bookwyrm/templates/settings/dashboard.html:65 +#, fuzzy +#| msgid "User Activity" +msgid "Instance Activity" +msgstr "Actividad de usuario" + +#: bookwyrm/templates/settings/dashboard.html:83 +#, fuzzy +#| msgid "Integer" +msgid "Interval:" +msgstr "Entero" + +#: bookwyrm/templates/settings/dashboard.html:86 +msgid "Days" +msgstr "" + +#: bookwyrm/templates/settings/dashboard.html:87 +#, fuzzy +#| msgid "One Week" +msgid "Weeks" +msgstr "Una semana" + +#: bookwyrm/templates/settings/dashboard.html:100 +#, fuzzy +#| msgid "User Activity" +msgid "User signup activity" +msgstr "Actividad de usuario" + +#: bookwyrm/templates/settings/dashboard.html:106 +#, fuzzy +#| msgid "User Activity" +msgid "Status activity" +msgstr "Actividad de usuario" + +#: bookwyrm/templates/settings/dashboard_status_chart.html:7 +#, fuzzy +#| msgid "No statuses reported" +msgid "Statuses posted" +msgstr "Ningún estatus reportado" + +#: bookwyrm/templates/settings/dashboard_user_chart.html:7 +msgid "Total" +msgstr "" + #: bookwyrm/templates/settings/domain_form.html:5 #: bookwyrm/templates/settings/email_blocklist.html:10 msgid "Add domain" @@ -2167,15 +2296,6 @@ msgstr "Instancia:" msgid "Status:" msgstr "Status:" -#: bookwyrm/templates/settings/edit_server.html:40 -msgid "Federated" -msgstr "Federalizado" - -#: bookwyrm/templates/settings/edit_server.html:41 -#: bookwyrm/templates/settings/federated_server.html:10 -msgid "Blocked" -msgstr "Bloqueado" - #: bookwyrm/templates/settings/edit_server.html:48 #: bookwyrm/templates/settings/federated_server.html:23 #: bookwyrm/templates/user_admin/user_info.html:117 @@ -2194,7 +2314,7 @@ msgstr "Notas:" #: bookwyrm/templates/settings/email_blocklist.html:5 #: bookwyrm/templates/settings/email_blocklist.html:7 -#: bookwyrm/templates/settings/layout.html:52 +#: bookwyrm/templates/settings/layout.html:59 #, fuzzy #| msgid "Import Blocklist" msgid "Email Blocklist" @@ -2291,7 +2411,7 @@ msgstr "Todos los usuarios en esta instancia serán re-activados." #: bookwyrm/templates/settings/federation.html:3 #: bookwyrm/templates/settings/federation.html:5 -#: bookwyrm/templates/settings/layout.html:38 +#: bookwyrm/templates/settings/layout.html:45 msgid "Federated Instances" msgstr "Instancias federalizadas" @@ -2312,42 +2432,42 @@ msgstr "Software" msgid "Administration" msgstr "Adminstración" -#: bookwyrm/templates/settings/layout.html:22 +#: bookwyrm/templates/settings/layout.html:29 msgid "Manage Users" msgstr "Administrar usuarios" -#: bookwyrm/templates/settings/layout.html:44 +#: bookwyrm/templates/settings/layout.html:51 #, fuzzy #| msgid "Duration" msgid "Moderation" msgstr "Duración" -#: bookwyrm/templates/settings/layout.html:57 +#: bookwyrm/templates/settings/layout.html:64 msgid "Instance Settings" msgstr "Configuración de instancia" -#: bookwyrm/templates/settings/layout.html:65 +#: bookwyrm/templates/settings/layout.html:72 #: bookwyrm/templates/settings/site.html:4 #: bookwyrm/templates/settings/site.html:6 msgid "Site Settings" msgstr "Configuración de sitio" -#: bookwyrm/templates/settings/layout.html:68 +#: bookwyrm/templates/settings/layout.html:75 #: bookwyrm/templates/settings/site.html:13 msgid "Instance Info" msgstr "Información de instancia" -#: bookwyrm/templates/settings/layout.html:69 +#: bookwyrm/templates/settings/layout.html:76 #: bookwyrm/templates/settings/site.html:44 msgid "Images" msgstr "Imagenes" -#: bookwyrm/templates/settings/layout.html:70 +#: bookwyrm/templates/settings/layout.html:77 #: bookwyrm/templates/settings/site.html:64 msgid "Footer Content" msgstr "Contenido del pie de página" -#: bookwyrm/templates/settings/layout.html:71 +#: bookwyrm/templates/settings/layout.html:78 #: bookwyrm/templates/settings/site.html:86 msgid "Registration" msgstr "Registración" @@ -3639,9 +3759,6 @@ msgstr "Actualizaciones de status de {obj.display_name}" #~ msgid "“%(value)s” value must be an integer." #~ msgstr "“%(value)s” valor debe ser un entero." -#~ msgid "Integer" -#~ msgstr "Entero" - #~ msgid "Big (8 byte) integer" #~ msgstr "Entero grande (8 byte)" diff --git a/locale/fr_FR/LC_MESSAGES/django.po b/locale/fr_FR/LC_MESSAGES/django.po index 6fb82695..d6b20872 100644 --- a/locale/fr_FR/LC_MESSAGES/django.po +++ b/locale/fr_FR/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: 0.1.1\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-09-10 22:50+0000\n" +"POT-Creation-Date: 2021-09-11 20:58+0000\n" "PO-Revision-Date: 2021-04-05 12:44+0100\n" "Last-Translator: Fabien Basmaison \n" "Language-Team: Mouse Reeve \n" @@ -18,62 +18,101 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: bookwyrm/forms.py:236 +#: bookwyrm/forms.py:242 msgid "A user with this email already exists." msgstr "Cet email est déjà associé à un compte." -#: bookwyrm/forms.py:250 +#: bookwyrm/forms.py:256 msgid "One Day" msgstr "Un jour" -#: bookwyrm/forms.py:251 +#: bookwyrm/forms.py:257 msgid "One Week" msgstr "Une semaine" -#: bookwyrm/forms.py:252 +#: bookwyrm/forms.py:258 msgid "One Month" msgstr "Un mois" -#: bookwyrm/forms.py:253 +#: bookwyrm/forms.py:259 msgid "Does Not Expire" msgstr "Sans expiration" -#: bookwyrm/forms.py:258 +#: bookwyrm/forms.py:264 #, python-format msgid "%(count)d uses" msgstr "%(count)d utilisations" -#: bookwyrm/forms.py:261 +#: bookwyrm/forms.py:267 msgid "Unlimited" msgstr "Sans limite" -#: bookwyrm/forms.py:317 +#: bookwyrm/forms.py:323 msgid "List Order" msgstr "Ordre de la liste" -#: bookwyrm/forms.py:318 +#: bookwyrm/forms.py:324 msgid "Book Title" msgstr "Titre du livre" -#: bookwyrm/forms.py:319 +#: bookwyrm/forms.py:325 #: bookwyrm/templates/snippets/create_status/review.html:33 #: bookwyrm/templates/user/shelf/shelf.html:117 #: bookwyrm/templates/user/shelf/shelf.html:148 msgid "Rating" msgstr "Note" -#: bookwyrm/forms.py:321 bookwyrm/templates/lists/list.html:107 +#: bookwyrm/forms.py:327 bookwyrm/templates/lists/list.html:107 msgid "Sort By" msgstr "Trier par" -#: bookwyrm/forms.py:325 +#: bookwyrm/forms.py:331 msgid "Ascending" msgstr "Ordre croissant" -#: bookwyrm/forms.py:326 +#: bookwyrm/forms.py:332 msgid "Descending" msgstr "Ordre décroissant" +#: bookwyrm/models/base_model.py:13 +#, fuzzy +#| msgid "Ascending" +msgid "Pending" +msgstr "Ordre croissant" + +#: bookwyrm/models/base_model.py:14 +msgid "Self deletion" +msgstr "" + +#: bookwyrm/models/base_model.py:15 +#, fuzzy +#| msgid "Moderator Comments" +msgid "Moderator suspension" +msgstr "Commentaires de l’équipe de modération" + +#: bookwyrm/models/base_model.py:16 +#, fuzzy +#| msgid "List curation:" +msgid "Moderator deletion" +msgstr "Modération de la liste :" + +#: bookwyrm/models/base_model.py:17 +#, fuzzy +#| msgid "Un-block" +msgid "Domain block" +msgstr "Débloquer" + +#: bookwyrm/models/federated_server.py:11 +#: bookwyrm/templates/settings/edit_server.html:40 +msgid "Federated" +msgstr "Fédéré" + +#: bookwyrm/models/federated_server.py:12 +#: bookwyrm/templates/settings/edit_server.html:41 +#: bookwyrm/templates/settings/federated_server.html:10 +msgid "Blocked" +msgstr "Bloqué" + #: bookwyrm/models/fields.py:27 #, python-format msgid "%(value)s is not a valid remote_id" @@ -721,6 +760,7 @@ msgstr "Code de confirmation :" #: bookwyrm/templates/confirm_email/confirm_email.html:25 #: bookwyrm/templates/landing/landing_layout.html:70 #: bookwyrm/templates/moderation/report_modal.html:33 +#: bookwyrm/templates/settings/dashboard.html:93 msgid "Submit" msgstr "Valider" @@ -1407,7 +1447,7 @@ msgid "Settings" msgstr "Paramètres" #: bookwyrm/templates/layout.html:118 -#: bookwyrm/templates/settings/layout.html:33 +#: bookwyrm/templates/settings/layout.html:40 #: bookwyrm/templates/settings/manage_invite_requests.html:15 #: bookwyrm/templates/settings/manage_invites.html:3 #: bookwyrm/templates/settings/manage_invites.html:15 @@ -1766,7 +1806,7 @@ msgstr "Signalements : %(instance_name)s" #: bookwyrm/templates/moderation/reports.html:8 #: bookwyrm/templates/moderation/reports.html:17 -#: bookwyrm/templates/settings/layout.html:48 +#: bookwyrm/templates/settings/layout.html:55 msgid "Reports" msgstr "Signalements" @@ -2045,7 +2085,7 @@ msgstr "Type de recherche" #: bookwyrm/templates/search/layout.html:23 #: bookwyrm/templates/search/layout.html:46 -#: bookwyrm/templates/settings/layout.html:27 +#: bookwyrm/templates/settings/layout.html:34 #: bookwyrm/templates/user_admin/user_admin.html:3 #: bookwyrm/templates/user_admin/user_admin.html:10 msgid "Users" @@ -2085,11 +2125,13 @@ msgstr "Faux" #: bookwyrm/templates/settings/announcement.html:47 #: bookwyrm/templates/settings/announcement_form.html:40 +#: bookwyrm/templates/settings/dashboard.html:71 msgid "Start date:" msgstr "Date de début :" #: bookwyrm/templates/settings/announcement.html:54 #: bookwyrm/templates/settings/announcement_form.html:49 +#: bookwyrm/templates/settings/dashboard.html:77 msgid "End date:" msgstr "Date de fin :" @@ -2123,7 +2165,7 @@ msgstr "Date de fin :" #: bookwyrm/templates/settings/announcements.html:3 #: bookwyrm/templates/settings/announcements.html:5 -#: bookwyrm/templates/settings/layout.html:61 +#: bookwyrm/templates/settings/layout.html:68 msgid "Announcements" msgstr "Annonces" @@ -2160,6 +2202,91 @@ msgstr "active" msgid "inactive" msgstr "inactive" +#: bookwyrm/templates/settings/dashboard.html:6 +#: bookwyrm/templates/settings/dashboard.html:8 +#: bookwyrm/templates/settings/layout.html:26 +msgid "Dashboard" +msgstr "" + +#: bookwyrm/templates/settings/dashboard.html:15 +#, fuzzy +#| msgid "Local users" +msgid "Total users" +msgstr "Comptes locaux" + +#: bookwyrm/templates/settings/dashboard.html:21 +#: bookwyrm/templates/settings/dashboard_user_chart.html:12 +msgid "Active this month" +msgstr "" + +#: bookwyrm/templates/settings/dashboard.html:27 +#, fuzzy +#| msgid "Status" +msgid "Statuses" +msgstr "Statut" + +#: bookwyrm/templates/settings/dashboard.html:33 +msgid "Works" +msgstr "" + +#: bookwyrm/templates/settings/dashboard.html:43 +#, fuzzy, python-format +#| msgid "%(count)d uses" +msgid "%(display_count)s open report" +msgid_plural "%(display_count)s open reports" +msgstr[0] "%(count)d utilisations" +msgstr[1] "%(count)d utilisations" + +#: bookwyrm/templates/settings/dashboard.html:54 +#, fuzzy, python-format +#| msgid "%(count)d uses" +msgid "%(display_count)s invite request" +msgid_plural "%(display_count)s invite requests" +msgstr[0] "%(count)d utilisations" +msgstr[1] "%(count)d utilisations" + +#: bookwyrm/templates/settings/dashboard.html:65 +#, fuzzy +#| msgid "User Activity" +msgid "Instance Activity" +msgstr "Activité du compte" + +#: bookwyrm/templates/settings/dashboard.html:83 +msgid "Interval:" +msgstr "" + +#: bookwyrm/templates/settings/dashboard.html:86 +msgid "Days" +msgstr "" + +#: bookwyrm/templates/settings/dashboard.html:87 +#, fuzzy +#| msgid "One Week" +msgid "Weeks" +msgstr "Une semaine" + +#: bookwyrm/templates/settings/dashboard.html:100 +#, fuzzy +#| msgid "User Activity" +msgid "User signup activity" +msgstr "Activité du compte" + +#: bookwyrm/templates/settings/dashboard.html:106 +#, fuzzy +#| msgid "User Activity" +msgid "Status activity" +msgstr "Activité du compte" + +#: bookwyrm/templates/settings/dashboard_status_chart.html:7 +#, fuzzy +#| msgid "No statuses reported" +msgid "Statuses posted" +msgstr "Aucun statut signalé" + +#: bookwyrm/templates/settings/dashboard_user_chart.html:7 +msgid "Total" +msgstr "" + #: bookwyrm/templates/settings/domain_form.html:5 #: bookwyrm/templates/settings/email_blocklist.html:10 msgid "Add domain" @@ -2199,15 +2326,6 @@ msgstr "Instance :" msgid "Status:" msgstr "Statut :" -#: bookwyrm/templates/settings/edit_server.html:40 -msgid "Federated" -msgstr "Fédéré" - -#: bookwyrm/templates/settings/edit_server.html:41 -#: bookwyrm/templates/settings/federated_server.html:10 -msgid "Blocked" -msgstr "Bloqué" - #: bookwyrm/templates/settings/edit_server.html:48 #: bookwyrm/templates/settings/federated_server.html:23 #: bookwyrm/templates/user_admin/user_info.html:117 @@ -2226,7 +2344,7 @@ msgstr "Remarques :" #: bookwyrm/templates/settings/email_blocklist.html:5 #: bookwyrm/templates/settings/email_blocklist.html:7 -#: bookwyrm/templates/settings/layout.html:52 +#: bookwyrm/templates/settings/layout.html:59 #, fuzzy #| msgid "Import Blocklist" msgid "Email Blocklist" @@ -2323,7 +2441,7 @@ msgstr "Tous les comptes de cette instance seront réactivés." #: bookwyrm/templates/settings/federation.html:3 #: bookwyrm/templates/settings/federation.html:5 -#: bookwyrm/templates/settings/layout.html:38 +#: bookwyrm/templates/settings/layout.html:45 msgid "Federated Instances" msgstr "Instances fédérées" @@ -2344,42 +2462,42 @@ msgstr "Logiciel" msgid "Administration" msgstr "Administration" -#: bookwyrm/templates/settings/layout.html:22 +#: bookwyrm/templates/settings/layout.html:29 msgid "Manage Users" msgstr "Gérer les comptes" -#: bookwyrm/templates/settings/layout.html:44 +#: bookwyrm/templates/settings/layout.html:51 #, fuzzy #| msgid "List curation:" msgid "Moderation" msgstr "Modération de la liste :" -#: bookwyrm/templates/settings/layout.html:57 +#: bookwyrm/templates/settings/layout.html:64 msgid "Instance Settings" msgstr "Paramètres de l’instance" -#: bookwyrm/templates/settings/layout.html:65 +#: bookwyrm/templates/settings/layout.html:72 #: bookwyrm/templates/settings/site.html:4 #: bookwyrm/templates/settings/site.html:6 msgid "Site Settings" msgstr "Paramètres du site" -#: bookwyrm/templates/settings/layout.html:68 +#: bookwyrm/templates/settings/layout.html:75 #: bookwyrm/templates/settings/site.html:13 msgid "Instance Info" msgstr "Information sur l’instance" -#: bookwyrm/templates/settings/layout.html:69 +#: bookwyrm/templates/settings/layout.html:76 #: bookwyrm/templates/settings/site.html:44 msgid "Images" msgstr "Images" -#: bookwyrm/templates/settings/layout.html:70 +#: bookwyrm/templates/settings/layout.html:77 #: bookwyrm/templates/settings/site.html:64 msgid "Footer Content" msgstr "Contenu du pied de page" -#: bookwyrm/templates/settings/layout.html:71 +#: bookwyrm/templates/settings/layout.html:78 #: bookwyrm/templates/settings/site.html:86 msgid "Registration" msgstr "Inscription" diff --git a/locale/zh_Hans/LC_MESSAGES/django.po b/locale/zh_Hans/LC_MESSAGES/django.po index 728978ae..9c91be2f 100644 --- a/locale/zh_Hans/LC_MESSAGES/django.po +++ b/locale/zh_Hans/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: 0.1.1\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-09-10 22:50+0000\n" +"POT-Creation-Date: 2021-09-11 20:58+0000\n" "PO-Revision-Date: 2021-03-20 00:56+0000\n" "Last-Translator: Kana \n" "Language-Team: Mouse Reeve \n" @@ -18,62 +18,101 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -#: bookwyrm/forms.py:236 +#: bookwyrm/forms.py:242 msgid "A user with this email already exists." msgstr "已经存在使用该邮箱的用户。" -#: bookwyrm/forms.py:250 +#: bookwyrm/forms.py:256 msgid "One Day" msgstr "一天" -#: bookwyrm/forms.py:251 +#: bookwyrm/forms.py:257 msgid "One Week" msgstr "一周" -#: bookwyrm/forms.py:252 +#: bookwyrm/forms.py:258 msgid "One Month" msgstr "一个月" -#: bookwyrm/forms.py:253 +#: bookwyrm/forms.py:259 msgid "Does Not Expire" msgstr "永不失效" -#: bookwyrm/forms.py:258 +#: bookwyrm/forms.py:264 #, python-format msgid "%(count)d uses" msgstr "%(count)d 次使用" -#: bookwyrm/forms.py:261 +#: bookwyrm/forms.py:267 msgid "Unlimited" msgstr "不受限" -#: bookwyrm/forms.py:317 +#: bookwyrm/forms.py:323 msgid "List Order" msgstr "列表顺序" -#: bookwyrm/forms.py:318 +#: bookwyrm/forms.py:324 msgid "Book Title" msgstr "书名" -#: bookwyrm/forms.py:319 +#: bookwyrm/forms.py:325 #: bookwyrm/templates/snippets/create_status/review.html:33 #: bookwyrm/templates/user/shelf/shelf.html:117 #: bookwyrm/templates/user/shelf/shelf.html:148 msgid "Rating" msgstr "评价" -#: bookwyrm/forms.py:321 bookwyrm/templates/lists/list.html:107 +#: bookwyrm/forms.py:327 bookwyrm/templates/lists/list.html:107 msgid "Sort By" msgstr "排序方式" -#: bookwyrm/forms.py:325 +#: bookwyrm/forms.py:331 msgid "Ascending" msgstr "升序" -#: bookwyrm/forms.py:326 +#: bookwyrm/forms.py:332 msgid "Descending" msgstr "降序" +#: bookwyrm/models/base_model.py:13 +#, fuzzy +#| msgid "Ascending" +msgid "Pending" +msgstr "升序" + +#: bookwyrm/models/base_model.py:14 +msgid "Self deletion" +msgstr "" + +#: bookwyrm/models/base_model.py:15 +#, fuzzy +#| msgid "Moderator Comments" +msgid "Moderator suspension" +msgstr "监察员评论" + +#: bookwyrm/models/base_model.py:16 +#, fuzzy +#| msgid "Mentions" +msgid "Moderator deletion" +msgstr "提及" + +#: bookwyrm/models/base_model.py:17 +#, fuzzy +#| msgid "Un-block" +msgid "Domain block" +msgstr "取消屏蔽" + +#: bookwyrm/models/federated_server.py:11 +#: bookwyrm/templates/settings/edit_server.html:40 +msgid "Federated" +msgstr "跨站" + +#: bookwyrm/models/federated_server.py:12 +#: bookwyrm/templates/settings/edit_server.html:41 +#: bookwyrm/templates/settings/federated_server.html:10 +msgid "Blocked" +msgstr "已屏蔽" + #: bookwyrm/models/fields.py:27 #, python-format msgid "%(value)s is not a valid remote_id" @@ -716,6 +755,7 @@ msgstr "确认代码:" #: bookwyrm/templates/confirm_email/confirm_email.html:25 #: bookwyrm/templates/landing/landing_layout.html:70 #: bookwyrm/templates/moderation/report_modal.html:33 +#: bookwyrm/templates/settings/dashboard.html:93 msgid "Submit" msgstr "提交" @@ -1389,7 +1429,7 @@ msgid "Settings" msgstr "设置" #: bookwyrm/templates/layout.html:118 -#: bookwyrm/templates/settings/layout.html:33 +#: bookwyrm/templates/settings/layout.html:40 #: bookwyrm/templates/settings/manage_invite_requests.html:15 #: bookwyrm/templates/settings/manage_invites.html:3 #: bookwyrm/templates/settings/manage_invites.html:15 @@ -1746,7 +1786,7 @@ msgstr "报告: %(instance_name)s" #: bookwyrm/templates/moderation/reports.html:8 #: bookwyrm/templates/moderation/reports.html:17 -#: bookwyrm/templates/settings/layout.html:48 +#: bookwyrm/templates/settings/layout.html:55 msgid "Reports" msgstr "报告" @@ -2019,7 +2059,7 @@ msgstr "搜索类型" #: bookwyrm/templates/search/layout.html:23 #: bookwyrm/templates/search/layout.html:46 -#: bookwyrm/templates/settings/layout.html:27 +#: bookwyrm/templates/settings/layout.html:34 #: bookwyrm/templates/user_admin/user_admin.html:3 #: bookwyrm/templates/user_admin/user_admin.html:10 msgid "Users" @@ -2059,11 +2099,13 @@ msgstr "否" #: bookwyrm/templates/settings/announcement.html:47 #: bookwyrm/templates/settings/announcement_form.html:40 +#: bookwyrm/templates/settings/dashboard.html:71 msgid "Start date:" msgstr "开始日期:" #: bookwyrm/templates/settings/announcement.html:54 #: bookwyrm/templates/settings/announcement_form.html:49 +#: bookwyrm/templates/settings/dashboard.html:77 msgid "End date:" msgstr "结束日期:" @@ -2097,7 +2139,7 @@ msgstr "结束日期:" #: bookwyrm/templates/settings/announcements.html:3 #: bookwyrm/templates/settings/announcements.html:5 -#: bookwyrm/templates/settings/layout.html:61 +#: bookwyrm/templates/settings/layout.html:68 msgid "Announcements" msgstr "公告" @@ -2134,6 +2176,89 @@ msgstr "活跃" msgid "inactive" msgstr "停用" +#: bookwyrm/templates/settings/dashboard.html:6 +#: bookwyrm/templates/settings/dashboard.html:8 +#: bookwyrm/templates/settings/layout.html:26 +msgid "Dashboard" +msgstr "" + +#: bookwyrm/templates/settings/dashboard.html:15 +#, fuzzy +#| msgid "Local users" +msgid "Total users" +msgstr "本地用户" + +#: bookwyrm/templates/settings/dashboard.html:21 +#: bookwyrm/templates/settings/dashboard_user_chart.html:12 +msgid "Active this month" +msgstr "" + +#: bookwyrm/templates/settings/dashboard.html:27 +#, fuzzy +#| msgid "Status" +msgid "Statuses" +msgstr "状态" + +#: bookwyrm/templates/settings/dashboard.html:33 +msgid "Works" +msgstr "" + +#: bookwyrm/templates/settings/dashboard.html:43 +#, fuzzy, python-format +#| msgid "%(count)d uses" +msgid "%(display_count)s open report" +msgid_plural "%(display_count)s open reports" +msgstr[0] "%(count)d 次使用" + +#: bookwyrm/templates/settings/dashboard.html:54 +#, fuzzy, python-format +#| msgid "%(count)d uses" +msgid "%(display_count)s invite request" +msgid_plural "%(display_count)s invite requests" +msgstr[0] "%(count)d 次使用" + +#: bookwyrm/templates/settings/dashboard.html:65 +#, fuzzy +#| msgid "User Activity" +msgid "Instance Activity" +msgstr "用户活动" + +#: bookwyrm/templates/settings/dashboard.html:83 +msgid "Interval:" +msgstr "" + +#: bookwyrm/templates/settings/dashboard.html:86 +msgid "Days" +msgstr "" + +#: bookwyrm/templates/settings/dashboard.html:87 +#, fuzzy +#| msgid "One Week" +msgid "Weeks" +msgstr "一周" + +#: bookwyrm/templates/settings/dashboard.html:100 +#, fuzzy +#| msgid "User Activity" +msgid "User signup activity" +msgstr "用户活动" + +#: bookwyrm/templates/settings/dashboard.html:106 +#, fuzzy +#| msgid "User Activity" +msgid "Status activity" +msgstr "用户活动" + +#: bookwyrm/templates/settings/dashboard_status_chart.html:7 +#, fuzzy +#| msgid "No statuses reported" +msgid "Statuses posted" +msgstr "没有被报告的状态" + +#: bookwyrm/templates/settings/dashboard_user_chart.html:7 +msgid "Total" +msgstr "" + #: bookwyrm/templates/settings/domain_form.html:5 #: bookwyrm/templates/settings/email_blocklist.html:10 msgid "Add domain" @@ -2173,15 +2298,6 @@ msgstr "实例:" msgid "Status:" msgstr "状态:" -#: bookwyrm/templates/settings/edit_server.html:40 -msgid "Federated" -msgstr "跨站" - -#: bookwyrm/templates/settings/edit_server.html:41 -#: bookwyrm/templates/settings/federated_server.html:10 -msgid "Blocked" -msgstr "已屏蔽" - #: bookwyrm/templates/settings/edit_server.html:48 #: bookwyrm/templates/settings/federated_server.html:23 #: bookwyrm/templates/user_admin/user_info.html:117 @@ -2200,7 +2316,7 @@ msgstr "备注:" #: bookwyrm/templates/settings/email_blocklist.html:5 #: bookwyrm/templates/settings/email_blocklist.html:7 -#: bookwyrm/templates/settings/layout.html:52 +#: bookwyrm/templates/settings/layout.html:59 #, fuzzy #| msgid "Import Blocklist" msgid "Email Blocklist" @@ -2296,7 +2412,7 @@ msgstr "来自此实例的所有用户将会被重新启用。" #: bookwyrm/templates/settings/federation.html:3 #: bookwyrm/templates/settings/federation.html:5 -#: bookwyrm/templates/settings/layout.html:38 +#: bookwyrm/templates/settings/layout.html:45 msgid "Federated Instances" msgstr "互联实例" @@ -2317,42 +2433,42 @@ msgstr "软件" msgid "Administration" msgstr "管理" -#: bookwyrm/templates/settings/layout.html:22 +#: bookwyrm/templates/settings/layout.html:29 msgid "Manage Users" msgstr "管理用户" -#: bookwyrm/templates/settings/layout.html:44 +#: bookwyrm/templates/settings/layout.html:51 #, fuzzy #| msgid "Mentions" msgid "Moderation" msgstr "提及" -#: bookwyrm/templates/settings/layout.html:57 +#: bookwyrm/templates/settings/layout.html:64 msgid "Instance Settings" msgstr "实例设置" -#: bookwyrm/templates/settings/layout.html:65 +#: bookwyrm/templates/settings/layout.html:72 #: bookwyrm/templates/settings/site.html:4 #: bookwyrm/templates/settings/site.html:6 msgid "Site Settings" msgstr "站点设置" -#: bookwyrm/templates/settings/layout.html:68 +#: bookwyrm/templates/settings/layout.html:75 #: bookwyrm/templates/settings/site.html:13 msgid "Instance Info" msgstr "实例信息" -#: bookwyrm/templates/settings/layout.html:69 +#: bookwyrm/templates/settings/layout.html:76 #: bookwyrm/templates/settings/site.html:44 msgid "Images" msgstr "图像" -#: bookwyrm/templates/settings/layout.html:70 +#: bookwyrm/templates/settings/layout.html:77 #: bookwyrm/templates/settings/site.html:64 msgid "Footer Content" msgstr "页脚内容" -#: bookwyrm/templates/settings/layout.html:71 +#: bookwyrm/templates/settings/layout.html:78 #: bookwyrm/templates/settings/site.html:86 msgid "Registration" msgstr "注册" diff --git a/locale/zh_Hant/LC_MESSAGES/django.po b/locale/zh_Hant/LC_MESSAGES/django.po index 0cc1e6c4..072cd93c 100644 --- a/locale/zh_Hant/LC_MESSAGES/django.po +++ b/locale/zh_Hant/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: 0.0.1\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-09-10 22:50+0000\n" +"POT-Creation-Date: 2021-09-11 20:58+0000\n" "PO-Revision-Date: 2021-06-30 10:36+0000\n" "Last-Translator: Grace Cheng \n" "Language-Team: LANGUAGE \n" @@ -18,62 +18,101 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -#: bookwyrm/forms.py:236 +#: bookwyrm/forms.py:242 msgid "A user with this email already exists." msgstr "已經存在使用該郵箱的使用者。" -#: bookwyrm/forms.py:250 +#: bookwyrm/forms.py:256 msgid "One Day" msgstr "一天" -#: bookwyrm/forms.py:251 +#: bookwyrm/forms.py:257 msgid "One Week" msgstr "一週" -#: bookwyrm/forms.py:252 +#: bookwyrm/forms.py:258 msgid "One Month" msgstr "一個月" -#: bookwyrm/forms.py:253 +#: bookwyrm/forms.py:259 msgid "Does Not Expire" msgstr "永不失效" -#: bookwyrm/forms.py:258 +#: bookwyrm/forms.py:264 #, python-format msgid "%(count)d uses" msgstr "%(count)d 次使用" -#: bookwyrm/forms.py:261 +#: bookwyrm/forms.py:267 msgid "Unlimited" msgstr "不受限" -#: bookwyrm/forms.py:317 +#: bookwyrm/forms.py:323 msgid "List Order" msgstr "列表順序" -#: bookwyrm/forms.py:318 +#: bookwyrm/forms.py:324 msgid "Book Title" msgstr "書名" -#: bookwyrm/forms.py:319 +#: bookwyrm/forms.py:325 #: bookwyrm/templates/snippets/create_status/review.html:33 #: bookwyrm/templates/user/shelf/shelf.html:117 #: bookwyrm/templates/user/shelf/shelf.html:148 msgid "Rating" msgstr "評價" -#: bookwyrm/forms.py:321 bookwyrm/templates/lists/list.html:107 +#: bookwyrm/forms.py:327 bookwyrm/templates/lists/list.html:107 msgid "Sort By" msgstr "排序方式" -#: bookwyrm/forms.py:325 +#: bookwyrm/forms.py:331 msgid "Ascending" msgstr "升序" -#: bookwyrm/forms.py:326 +#: bookwyrm/forms.py:332 msgid "Descending" msgstr "降序" +#: bookwyrm/models/base_model.py:13 +#, fuzzy +#| msgid "Ascending" +msgid "Pending" +msgstr "升序" + +#: bookwyrm/models/base_model.py:14 +msgid "Self deletion" +msgstr "" + +#: bookwyrm/models/base_model.py:15 +#, fuzzy +#| msgid "Moderator Comments" +msgid "Moderator suspension" +msgstr "監察員評論" + +#: bookwyrm/models/base_model.py:16 +#, fuzzy +#| msgid "Mentions" +msgid "Moderator deletion" +msgstr "提及" + +#: bookwyrm/models/base_model.py:17 +#, fuzzy +#| msgid "Un-block" +msgid "Domain block" +msgstr "取消封鎖" + +#: bookwyrm/models/federated_server.py:11 +#: bookwyrm/templates/settings/edit_server.html:40 +msgid "Federated" +msgstr "跨站" + +#: bookwyrm/models/federated_server.py:12 +#: bookwyrm/templates/settings/edit_server.html:41 +#: bookwyrm/templates/settings/federated_server.html:10 +msgid "Blocked" +msgstr "已封鎖" + #: bookwyrm/models/fields.py:27 #, python-format msgid "%(value)s is not a valid remote_id" @@ -730,6 +769,7 @@ msgstr "確認密碼:" #: bookwyrm/templates/confirm_email/confirm_email.html:25 #: bookwyrm/templates/landing/landing_layout.html:70 #: bookwyrm/templates/moderation/report_modal.html:33 +#: bookwyrm/templates/settings/dashboard.html:93 msgid "Submit" msgstr "提交" @@ -1418,7 +1458,7 @@ msgid "Settings" msgstr "設定" #: bookwyrm/templates/layout.html:118 -#: bookwyrm/templates/settings/layout.html:33 +#: bookwyrm/templates/settings/layout.html:40 #: bookwyrm/templates/settings/manage_invite_requests.html:15 #: bookwyrm/templates/settings/manage_invites.html:3 #: bookwyrm/templates/settings/manage_invites.html:15 @@ -1775,7 +1815,7 @@ msgstr "舉報: %(instance_name)s" #: bookwyrm/templates/moderation/reports.html:8 #: bookwyrm/templates/moderation/reports.html:17 -#: bookwyrm/templates/settings/layout.html:48 +#: bookwyrm/templates/settings/layout.html:55 msgid "Reports" msgstr "舉報" @@ -2054,7 +2094,7 @@ msgstr "搜尋類別" #: bookwyrm/templates/search/layout.html:23 #: bookwyrm/templates/search/layout.html:46 -#: bookwyrm/templates/settings/layout.html:27 +#: bookwyrm/templates/settings/layout.html:34 #: bookwyrm/templates/user_admin/user_admin.html:3 #: bookwyrm/templates/user_admin/user_admin.html:10 msgid "Users" @@ -2094,11 +2134,13 @@ msgstr "否" #: bookwyrm/templates/settings/announcement.html:47 #: bookwyrm/templates/settings/announcement_form.html:40 +#: bookwyrm/templates/settings/dashboard.html:71 msgid "Start date:" msgstr "開始日期:" #: bookwyrm/templates/settings/announcement.html:54 #: bookwyrm/templates/settings/announcement_form.html:49 +#: bookwyrm/templates/settings/dashboard.html:77 msgid "End date:" msgstr "結束日期:" @@ -2132,7 +2174,7 @@ msgstr "結束日期:" #: bookwyrm/templates/settings/announcements.html:3 #: bookwyrm/templates/settings/announcements.html:5 -#: bookwyrm/templates/settings/layout.html:61 +#: bookwyrm/templates/settings/layout.html:68 msgid "Announcements" msgstr "公告" @@ -2169,6 +2211,89 @@ msgstr "啟用" msgid "inactive" msgstr "停用" +#: bookwyrm/templates/settings/dashboard.html:6 +#: bookwyrm/templates/settings/dashboard.html:8 +#: bookwyrm/templates/settings/layout.html:26 +msgid "Dashboard" +msgstr "" + +#: bookwyrm/templates/settings/dashboard.html:15 +#, fuzzy +#| msgid "Local users" +msgid "Total users" +msgstr "本地使用者" + +#: bookwyrm/templates/settings/dashboard.html:21 +#: bookwyrm/templates/settings/dashboard_user_chart.html:12 +msgid "Active this month" +msgstr "" + +#: bookwyrm/templates/settings/dashboard.html:27 +#, fuzzy +#| msgid "Status" +msgid "Statuses" +msgstr "狀態" + +#: bookwyrm/templates/settings/dashboard.html:33 +msgid "Works" +msgstr "" + +#: bookwyrm/templates/settings/dashboard.html:43 +#, fuzzy, python-format +#| msgid "%(count)d uses" +msgid "%(display_count)s open report" +msgid_plural "%(display_count)s open reports" +msgstr[0] "%(count)d 次使用" + +#: bookwyrm/templates/settings/dashboard.html:54 +#, fuzzy, python-format +#| msgid "%(count)d uses" +msgid "%(display_count)s invite request" +msgid_plural "%(display_count)s invite requests" +msgstr[0] "%(count)d 次使用" + +#: bookwyrm/templates/settings/dashboard.html:65 +#, fuzzy +#| msgid "User Activity" +msgid "Instance Activity" +msgstr "使用者活動" + +#: bookwyrm/templates/settings/dashboard.html:83 +msgid "Interval:" +msgstr "" + +#: bookwyrm/templates/settings/dashboard.html:86 +msgid "Days" +msgstr "" + +#: bookwyrm/templates/settings/dashboard.html:87 +#, fuzzy +#| msgid "One Week" +msgid "Weeks" +msgstr "一週" + +#: bookwyrm/templates/settings/dashboard.html:100 +#, fuzzy +#| msgid "User Activity" +msgid "User signup activity" +msgstr "使用者活動" + +#: bookwyrm/templates/settings/dashboard.html:106 +#, fuzzy +#| msgid "User Activity" +msgid "Status activity" +msgstr "使用者活動" + +#: bookwyrm/templates/settings/dashboard_status_chart.html:7 +#, fuzzy +#| msgid "No statuses reported" +msgid "Statuses posted" +msgstr "沒有被舉報的狀態" + +#: bookwyrm/templates/settings/dashboard_user_chart.html:7 +msgid "Total" +msgstr "" + #: bookwyrm/templates/settings/domain_form.html:5 #: bookwyrm/templates/settings/email_blocklist.html:10 msgid "Add domain" @@ -2208,15 +2333,6 @@ msgstr "實例:" msgid "Status:" msgstr "狀態:" -#: bookwyrm/templates/settings/edit_server.html:40 -msgid "Federated" -msgstr "跨站" - -#: bookwyrm/templates/settings/edit_server.html:41 -#: bookwyrm/templates/settings/federated_server.html:10 -msgid "Blocked" -msgstr "已封鎖" - #: bookwyrm/templates/settings/edit_server.html:48 #: bookwyrm/templates/settings/federated_server.html:23 #: bookwyrm/templates/user_admin/user_info.html:117 @@ -2235,7 +2351,7 @@ msgstr "備註:" #: bookwyrm/templates/settings/email_blocklist.html:5 #: bookwyrm/templates/settings/email_blocklist.html:7 -#: bookwyrm/templates/settings/layout.html:52 +#: bookwyrm/templates/settings/layout.html:59 #, fuzzy #| msgid "Import Blocklist" msgid "Email Blocklist" @@ -2331,7 +2447,7 @@ msgstr "來自此實例的所有使用者將會被重新啟用。" #: bookwyrm/templates/settings/federation.html:3 #: bookwyrm/templates/settings/federation.html:5 -#: bookwyrm/templates/settings/layout.html:38 +#: bookwyrm/templates/settings/layout.html:45 msgid "Federated Instances" msgstr "聯合實例" @@ -2352,42 +2468,42 @@ msgstr "軟體" msgid "Administration" msgstr "管理" -#: bookwyrm/templates/settings/layout.html:22 +#: bookwyrm/templates/settings/layout.html:29 msgid "Manage Users" msgstr "管理使用者" -#: bookwyrm/templates/settings/layout.html:44 +#: bookwyrm/templates/settings/layout.html:51 #, fuzzy #| msgid "Mentions" msgid "Moderation" msgstr "提及" -#: bookwyrm/templates/settings/layout.html:57 +#: bookwyrm/templates/settings/layout.html:64 msgid "Instance Settings" msgstr "實例設定" -#: bookwyrm/templates/settings/layout.html:65 +#: bookwyrm/templates/settings/layout.html:72 #: bookwyrm/templates/settings/site.html:4 #: bookwyrm/templates/settings/site.html:6 msgid "Site Settings" msgstr "網站設定" -#: bookwyrm/templates/settings/layout.html:68 +#: bookwyrm/templates/settings/layout.html:75 #: bookwyrm/templates/settings/site.html:13 msgid "Instance Info" msgstr "實例資訊" -#: bookwyrm/templates/settings/layout.html:69 +#: bookwyrm/templates/settings/layout.html:76 #: bookwyrm/templates/settings/site.html:44 msgid "Images" msgstr "圖片" -#: bookwyrm/templates/settings/layout.html:70 +#: bookwyrm/templates/settings/layout.html:77 #: bookwyrm/templates/settings/site.html:64 msgid "Footer Content" msgstr "頁尾內容" -#: bookwyrm/templates/settings/layout.html:71 +#: bookwyrm/templates/settings/layout.html:78 #: bookwyrm/templates/settings/site.html:86 msgid "Registration" msgstr "註冊"