Skip to content
Snippets Groups Projects
Commit e8d18d56 authored by Felix Schäfer's avatar Felix Schäfer :construction_worker:
Browse files

Update README, more consistent docs

parent 9ddfcbe5
No related branches found
No related tags found
No related merge requests found
Pipeline #65046 passed
...@@ -2,8 +2,23 @@ ...@@ -2,8 +2,23 @@
This is a plugin for [pretix](https://github.com/pretix/pretix). This is a plugin for [pretix](https://github.com/pretix/pretix).
Ask participants for their Matrix ID and invite them to a Matrix Room or Invite Pretix participants to a Matrix Room or Space.
Space.
## Installation
Activate the virtual environment for your Pretix installation and run
pip install pretix-matrix-inviter
## Configuration
Each event can enable this plugin in Settings > Plugins > Features.
Once the plugin is enabled you can configure it in Settings > Matrix inviter.
You will need an access token of a user that can invite new users to your
Matrix room or space, the address of the server said inviting user is on, and
the ID or an alias of the Matrix room or space your participants should be
invited to.
## Development setup ## Development setup
......
...@@ -16,7 +16,7 @@ class PluginApp(PluginConfig): ...@@ -16,7 +16,7 @@ class PluginApp(PluginConfig):
name = gettext_lazy("Matrix inviter") name = gettext_lazy("Matrix inviter")
author = "Felix Schäfer" author = "Felix Schäfer"
description = gettext_lazy( description = gettext_lazy(
"Ask participants for their Matrix ID and invite them to a Matrix Room or Space." "Invite Pretix participants to a Matrix Room or Space."
) )
visible = True visible = True
version = __version__ version = __version__
......
...@@ -2,7 +2,7 @@ msgid "" ...@@ -2,7 +2,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-02-10 22:58+0100\n" "POT-Creation-Date: 2022-02-11 12:44+0100\n"
"PO-Revision-Date: \n" "PO-Revision-Date: \n"
"Last-Translator: Felix Schäfer\n" "Last-Translator: Felix Schäfer\n"
"Language-Team: \n" "Language-Team: \n"
...@@ -15,15 +15,11 @@ msgstr "" ...@@ -15,15 +15,11 @@ msgstr ""
#: pretix_matrix_inviter/__init__.py:16 pretix_matrix_inviter/signals.py:94 #: pretix_matrix_inviter/__init__.py:16 pretix_matrix_inviter/signals.py:94
#: pretix_matrix_inviter/templates/pretix_matrix_inviter/settings.html:6 #: pretix_matrix_inviter/templates/pretix_matrix_inviter/settings.html:6
msgid "Matrix inviter" msgid "Matrix inviter"
msgstr "" msgstr "Matrix-Inviter"
#: pretix_matrix_inviter/__init__.py:19 #: pretix_matrix_inviter/__init__.py:19
msgid "" msgid "Invite Pretix participants to a Matrix Room or Space."
"Ask participants for their Matrix ID and invite them to a Matrix Room or " msgstr "Teilnehmende zu einem Matrix-Raum oder -Space einladen."
"Space."
msgstr ""
"Matrix-ID abfragen und Teilnehmende zu einem Matrix-Raum oder -Space "
"einladen."
#: pretix_matrix_inviter/forms.py:17 #: pretix_matrix_inviter/forms.py:17
msgid "Ask Matrix ID for" msgid "Ask Matrix ID for"
...@@ -85,17 +81,17 @@ msgstr "Dieser Text wird der Einladung zum Matrix-Raum zugefügt." ...@@ -85,17 +81,17 @@ msgstr "Dieser Text wird der Einladung zum Matrix-Raum zugefügt."
msgid "Matrix room" msgid "Matrix room"
msgstr "Matrix-Raum" msgstr "Matrix-Raum"
#: pretix_matrix_inviter/forms.py:67 #: pretix_matrix_inviter/forms.py:69
#, python-brace-format #, python-brace-format
msgid "\"{name}\" (main address: <code>{canonical_alias}</code>)" msgid "\"{name}\" (main address: <code>{canonical_alias}</code>)"
msgstr "„{name}“ (primäre Adresse: <code>{canonical_alias}</code>)" msgstr "„{name}“ (primäre Adresse: <code>{canonical_alias}</code>)"
#: pretix_matrix_inviter/forms.py:70 #: pretix_matrix_inviter/forms.py:72
#, python-brace-format #, python-brace-format
msgid "\"{name}\"" msgid "\"{name}\""
msgstr "„{name}“" msgstr "„{name}“"
#: pretix_matrix_inviter/forms.py:74 #: pretix_matrix_inviter/forms.py:76
#, python-brace-format #, python-brace-format
msgid "" msgid ""
"\"{name}\" (<code>{room_id}</code>, main address: <code>{canonical_alias}</" "\"{name}\" (<code>{room_id}</code>, main address: <code>{canonical_alias}</"
...@@ -104,7 +100,7 @@ msgstr "" ...@@ -104,7 +100,7 @@ msgstr ""
"„{name}“ (<code>{room_id}</code>, primäre Adresse: <code>{canonical_alias}</" "„{name}“ (<code>{room_id}</code>, primäre Adresse: <code>{canonical_alias}</"
"code>)" "code>)"
#: pretix_matrix_inviter/forms.py:77 #: pretix_matrix_inviter/forms.py:79
#, python-brace-format #, python-brace-format
msgid "\"{name}\" (<code>{room_id}</code>)" msgid "\"{name}\" (<code>{room_id}</code>)"
msgstr "„{name}“ (<code>{room_id}</code>)" msgstr "„{name}“ (<code>{room_id}</code>)"
......
...@@ -2,7 +2,7 @@ msgid "" ...@@ -2,7 +2,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-02-10 22:58+0100\n" "POT-Creation-Date: 2022-02-11 12:44+0100\n"
"PO-Revision-Date: \n" "PO-Revision-Date: \n"
"Last-Translator: Felix Schäfer\n" "Last-Translator: Felix Schäfer\n"
"Language-Team: \n" "Language-Team: \n"
...@@ -18,9 +18,7 @@ msgid "Matrix inviter" ...@@ -18,9 +18,7 @@ msgid "Matrix inviter"
msgstr "" msgstr ""
#: pretix_matrix_inviter/__init__.py:19 #: pretix_matrix_inviter/__init__.py:19
msgid "" msgid "Invite Pretix participants to a Matrix Room or Space."
"Ask participants for their Matrix ID and invite them to a Matrix Room or "
"Space."
msgstr "" msgstr ""
#: pretix_matrix_inviter/forms.py:17 #: pretix_matrix_inviter/forms.py:17
...@@ -74,24 +72,24 @@ msgstr "" ...@@ -74,24 +72,24 @@ msgstr ""
msgid "Matrix room" msgid "Matrix room"
msgstr "" msgstr ""
#: pretix_matrix_inviter/forms.py:67 #: pretix_matrix_inviter/forms.py:69
#, python-brace-format #, python-brace-format
msgid "\"{name}\" (main address: <code>{canonical_alias}</code>)" msgid "\"{name}\" (main address: <code>{canonical_alias}</code>)"
msgstr "" msgstr ""
#: pretix_matrix_inviter/forms.py:70 #: pretix_matrix_inviter/forms.py:72
#, python-brace-format #, python-brace-format
msgid "\"{name}\"" msgid "\"{name}\""
msgstr "" msgstr ""
#: pretix_matrix_inviter/forms.py:74 #: pretix_matrix_inviter/forms.py:76
#, python-brace-format #, python-brace-format
msgid "" msgid ""
"\"{name}\" (<code>{room_id}</code>, main address: <code>{canonical_alias}</" "\"{name}\" (<code>{room_id}</code>, main address: <code>{canonical_alias}</"
"code>)" "code>)"
msgstr "" msgstr ""
#: pretix_matrix_inviter/forms.py:77 #: pretix_matrix_inviter/forms.py:79
#, python-brace-format #, python-brace-format
msgid "\"{name}\" (<code>{room_id}</code>)" msgid "\"{name}\" (<code>{room_id}</code>)"
msgstr "" msgstr ""
......
...@@ -8,7 +8,7 @@ msgid "" ...@@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-02-10 22:58+0100\n" "POT-Creation-Date: 2022-02-11 12:44+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
...@@ -23,9 +23,7 @@ msgid "Matrix inviter" ...@@ -23,9 +23,7 @@ msgid "Matrix inviter"
msgstr "" msgstr ""
#: pretix_matrix_inviter/__init__.py:19 #: pretix_matrix_inviter/__init__.py:19
msgid "" msgid "Invite Pretix participants to a Matrix Room or Space."
"Ask participants for their Matrix ID and invite them to a Matrix Room or "
"Space."
msgstr "" msgstr ""
#: pretix_matrix_inviter/forms.py:17 #: pretix_matrix_inviter/forms.py:17
...@@ -79,24 +77,24 @@ msgstr "" ...@@ -79,24 +77,24 @@ msgstr ""
msgid "Matrix room" msgid "Matrix room"
msgstr "" msgstr ""
#: pretix_matrix_inviter/forms.py:67 #: pretix_matrix_inviter/forms.py:69
#, python-brace-format #, python-brace-format
msgid "\"{name}\" (main address: <code>{canonical_alias}</code>)" msgid "\"{name}\" (main address: <code>{canonical_alias}</code>)"
msgstr "" msgstr ""
#: pretix_matrix_inviter/forms.py:70 #: pretix_matrix_inviter/forms.py:72
#, python-brace-format #, python-brace-format
msgid "\"{name}\"" msgid "\"{name}\""
msgstr "" msgstr ""
#: pretix_matrix_inviter/forms.py:74 #: pretix_matrix_inviter/forms.py:76
#, python-brace-format #, python-brace-format
msgid "" msgid ""
"\"{name}\" (<code>{room_id}</code>, main address: <code>{canonical_alias}</" "\"{name}\" (<code>{room_id}</code>, main address: <code>{canonical_alias}</"
"code>)" "code>)"
msgstr "" msgstr ""
#: pretix_matrix_inviter/forms.py:77 #: pretix_matrix_inviter/forms.py:79
#, python-brace-format #, python-brace-format
msgid "\"{name}\" (<code>{room_id}</code>)" msgid "\"{name}\" (<code>{room_id}</code>)"
msgstr "" msgstr ""
......
...@@ -7,8 +7,8 @@ msgid "" ...@@ -7,8 +7,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-02-10 22:58+0100\n" "POT-Creation-Date: 2022-02-11 12:44+0100\n"
"PO-Revision-Date: 2022-02-11 01:07+0100\n" "PO-Revision-Date: 2022-02-11 12:44+0100\n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
"Language: fr\n" "Language: fr\n"
...@@ -24,9 +24,7 @@ msgid "Matrix inviter" ...@@ -24,9 +24,7 @@ msgid "Matrix inviter"
msgstr "Inviteur Matrix" msgstr "Inviteur Matrix"
#: pretix_matrix_inviter/__init__.py:19 #: pretix_matrix_inviter/__init__.py:19
msgid "" msgid "Invite Pretix participants to a Matrix Room or Space."
"Ask participants for their Matrix ID and invite them to a Matrix Room or "
"Space."
msgstr "Invitez vos participant·es à un salon ou espace Matrix." msgstr "Invitez vos participant·es à un salon ou espace Matrix."
#: pretix_matrix_inviter/forms.py:17 #: pretix_matrix_inviter/forms.py:17
...@@ -88,17 +86,17 @@ msgstr "Ce message sera joint à l’invitation au salon Matrix." ...@@ -88,17 +86,17 @@ msgstr "Ce message sera joint à l’invitation au salon Matrix."
msgid "Matrix room" msgid "Matrix room"
msgstr "Salon Matrix" msgstr "Salon Matrix"
#: pretix_matrix_inviter/forms.py:67 #: pretix_matrix_inviter/forms.py:69
#, python-brace-format #, python-brace-format
msgid "\"{name}\" (main address: <code>{canonical_alias}</code>)" msgid "\"{name}\" (main address: <code>{canonical_alias}</code>)"
msgstr "« {name} » (adresse principale : <code>{canonical_alias}</code>)" msgstr "« {name} » (adresse principale : <code>{canonical_alias}</code>)"
#: pretix_matrix_inviter/forms.py:70 #: pretix_matrix_inviter/forms.py:72
#, python-brace-format #, python-brace-format
msgid "\"{name}\"" msgid "\"{name}\""
msgstr "« {name} »" msgstr "« {name} »"
#: pretix_matrix_inviter/forms.py:74 #: pretix_matrix_inviter/forms.py:76
#, python-brace-format #, python-brace-format
msgid "" msgid ""
"\"{name}\" (<code>{room_id}</code>, main address: <code>{canonical_alias}</" "\"{name}\" (<code>{room_id}</code>, main address: <code>{canonical_alias}</"
...@@ -107,7 +105,7 @@ msgstr "" ...@@ -107,7 +105,7 @@ msgstr ""
"« {name} » (<code>{room_id}</code>, adresse principale : " "« {name} » (<code>{room_id}</code>, adresse principale : "
"<code>{canonical_alias}</code>)" "<code>{canonical_alias}</code>)"
#: pretix_matrix_inviter/forms.py:77 #: pretix_matrix_inviter/forms.py:79
#, python-brace-format #, python-brace-format
msgid "\"{name}\" (<code>{room_id}</code>)" msgid "\"{name}\" (<code>{room_id}</code>)"
msgstr "« {name} » (<code>{room_id}</code>)" msgstr "« {name} » (<code>{room_id}</code>)"
......
...@@ -28,13 +28,25 @@ cmdclass = {"build": CustomBuild} ...@@ -28,13 +28,25 @@ cmdclass = {"build": CustomBuild}
setup( setup(
name="pretix-matrix-inviter", name="pretix-matrix-inviter",
version=__version__, version=__version__,
description="Ask participants for their Matrix ID and invite them to a Matrix Room or Space.", description="Invite Pretix participants to a Matrix Room or Space.",
long_description=long_description, long_description=long_description,
long_description_content_type="text/markdown", long_description_content_type="text/markdown",
url="https://gitlab.fachschaften.org/kif/pretix-matrix-inviter", url="https://gitlab.fachschaften.org/kif/pretix-matrix-inviter",
project_urls={
"Changelog": "https://gitlab.fachschaften.org/kif/pretix-matrix-inviter/-/blob/main/CHANGELOG.md",
"Tracker": "https://gitlab.fachschaften.org/kif/pretix-matrix-inviter/-/issues",
"Pretix Marketplace": "https://marketplace.pretix.eu/products/pretix-matrix-inviter/",
},
author="Felix Schäfer", author="Felix Schäfer",
author_email="admin@kif.rocks", author_email="admin@kif.rocks",
license="MIT License", license="MIT",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Pretix",
"Framework :: Django",
"License :: OSI Approved :: MIT License",
"Topic :: Communications :: Chat",
],
install_requires=["requests"], install_requires=["requests"],
packages=find_packages(exclude=["tests", "tests.*"]), packages=find_packages(exclude=["tests", "tests.*"]),
include_package_data=True, include_package_data=True,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment