From cdd44b36245a13d9ac5027f365a16804fb2b3bdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=A4fer?= <felix@thegcat.net> Date: Thu, 10 Feb 2022 22:53:55 +0100 Subject: [PATCH] More consistent locale strings --- pretix_matrix_inviter/__init__.py | 4 ++-- pretix_matrix_inviter/forms.py | 14 ++++++++------ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/pretix_matrix_inviter/__init__.py b/pretix_matrix_inviter/__init__.py index 01167ef..e5fddb0 100644 --- a/pretix_matrix_inviter/__init__.py +++ b/pretix_matrix_inviter/__init__.py @@ -10,10 +10,10 @@ __version__ = "1.1.0" class PluginApp(PluginConfig): name = "pretix_matrix_inviter" - verbose_name = "Matrix Inviter" + verbose_name = "Matrix inviter" class PretixPluginMeta: - name = gettext_lazy("Matrix Inviter") + name = gettext_lazy("Matrix inviter") author = "Felix Schäfer" description = gettext_lazy( "Ask participants for their Matrix ID and invite them to a Matrix Room or Space." diff --git a/pretix_matrix_inviter/forms.py b/pretix_matrix_inviter/forms.py index 37a2324..401a634 100644 --- a/pretix_matrix_inviter/forms.py +++ b/pretix_matrix_inviter/forms.py @@ -20,10 +20,10 @@ class MatrixInviterForm(SettingsForm): help_text=_("These products will ask for a Matrix ID."), ) matrix_inviter_authorization_token = CharField( - label=_("Authorization token"), + label=_("Access token"), strip=True, help_text=_( - "This should be the authorization token of a user that can invite attendees to the target Room or Space. " + "This should be the access token of a user that can invite attendees to the target Room or Space. " "Please note that other administrators of this event will be able to see this token, it should not be from " "your own Matrix account but from a dedicated Matrix account." ), @@ -31,14 +31,14 @@ class MatrixInviterForm(SettingsForm): matrix_inviter_matrix_server = CharField( label=_("Matrix server"), strip=True, - help_text=_("The matrix server the above authorization token is valid for."), + help_text=_("The matrix server the above access token is valid for."), ) matrix_inviter_hint = I18nFormField( widget=I18nTextInput, label=_("Matrix ID field help text"), required=True, help_text=_( - "This will be shown as help text on the Matrix ID field. It is recommended to inform your attendees to " + "This will be shown as help text on the Matrix ID field. It is recommended to inform your attendees " "which room they will be invited to and what that room will be used for." ), ) @@ -63,13 +63,15 @@ class MatrixInviterForm(SettingsForm): room_info = matrix_room_info_for_event(self.obj) if self.obj.settings.matrix_inviter_matrix_room.startswith("!"): if room_info["canonical_alias"]: - room_help_text = _('"{name}" (<code>{canonical_alias}</code>)') + room_help_text = _( + '"{name}" (main address: <code>{canonical_alias}</code>)' + ) else: room_help_text = _('"{name}"') else: if room_info["canonical_alias"]: room_help_text = _( - '"{name}" (<code>{room_id}</code>, main alias: <code>{canonical_alias}</code>)' + '"{name}" (<code>{room_id}</code>, main address: <code>{canonical_alias}</code>)' ) else: room_help_text = _('"{name}" (<code>{room_id}</code>)') -- GitLab