Compare commits

...

4 Commits

Author SHA1 Message Date
Yucheng Lin d0e5ff947e Translated on translate.pretix.eu (Chinese (Traditional))
Currently translated at 100.0% (22 of 22 strings)

Translation: pretix/pretix Plugin: Service Fees
Translate-URL: https://translate.pretix.eu/projects/pretix/pretix-plugin-service-fees/zh_Hant/

powered by weblate
2023-05-19 16:57:37 +02:00
Yucheng Lin 815a295460 Added translation on translate.pretix.eu (Chinese (Traditional)) 2023-05-19 16:57:37 +02:00
Michael 2396c1b0e4 Translated on translate.pretix.eu (Czech)
Currently translated at 4.5% (1 of 22 strings)

Translation: pretix/pretix Plugin: Service Fees
Translate-URL: https://translate.pretix.eu/projects/pretix/pretix-plugin-service-fees/cs/

powered by weblate
2023-05-19 16:57:37 +02:00
Raphael Michel 510d90a60c Convert project to use pyproject.toml 2023-05-19 15:53:28 +02:00
6 changed files with 187 additions and 56 deletions

View File

@ -1,13 +1,11 @@
pypi:
script:
- cp /keys/.pypirc ~/.pypirc
- virtualenv env
- source env/bin/activate
- XDG_CACHE_HOME=/cache pip3 install -U pip wheel setuptools twine
- XDG_CACHE_HOME=/cache pip3 install -U pretix
- XDG_CACHE_HOME=/cache pip3 install -U pkginfo==1.8.3 # Work around https://github.com/pypa/twine/issues/940
- python setup.py develop
- python setup.py sdist bdist_wheel
- virtualenv /tmp/env
- source /tmp/env/bin/activate
- XDG_CACHE_HOME=/cache pip3 install -U pip wheel setuptools twine build pretix-plugin-build
- python -m build
- check-manifest .
- twine check dist/*
- twine upload dist/*
tags:

View File

@ -12,7 +12,7 @@ Development setup
3. Activate the virtual environment you use for pretix development.
4. Execute ``python setup.py develop`` within this directory to register this application with pretix's plugin registry.
4. Execute ``pip install -e .`` within this directory to register this application with pretix's plugin registry.
5. Execute ``make`` within this directory to compile translations.

View File

@ -8,13 +8,16 @@ msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-03-31 21:19+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"PO-Revision-Date: 2023-03-19 21:00+0000\n"
"Last-Translator: Michael <michael.happl@gmx.at>\n"
"Language-Team: Czech <https://translate.pretix.eu/projects/pretix/"
"pretix-plugin-service-fees/cs/>\n"
"Language: cs\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
"X-Generator: Weblate 4.16.4\n"
#: pretix_servicefees/__init__.py:10
msgid "Service Fees"
@ -62,7 +65,7 @@ msgstr ""
#: pretix_servicefees/templates/pretix_servicefees/settings.html:30
msgid "Save"
msgstr ""
msgstr "Uložit"
#: pretix_servicefees/views.py:13 pretix_servicefees/views.py:51
msgid "Fixed fee per order"

View File

@ -0,0 +1,129 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-03-31 21:19+0200\n"
"PO-Revision-Date: 2023-05-18 09:00+0000\n"
"Last-Translator: Yucheng Lin <yuchenglinedu@gmail.com>\n"
"Language-Team: Chinese (Traditional) <https://translate.pretix.eu/projects/"
"pretix/pretix-plugin-service-fees/zh_Hant/>\n"
"Language: zh_Hant\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Weblate 4.17\n"
#: pretix_servicefees/__init__.py:10
msgid "Service Fees"
msgstr "服務費"
#: pretix_servicefees/__init__.py:13
msgid "This plugin allows to charge a service fee on all non-free orders."
msgstr "該外掛程式允許對所有非免費訂單收取服務費。"
#: pretix_servicefees/signals.py:23
msgid "Service Fee"
msgstr "服務費"
#: pretix_servicefees/signals.py:136
msgid "per ticket"
msgstr "每張票"
#: pretix_servicefees/signals.py:140 pretix_servicefees/signals.py:144
msgid "per order"
msgstr "每訂單"
#: pretix_servicefees/signals.py:147
msgid "A service fee of {} will be added on top of each order."
msgstr "每個訂單的將加上添加{}的服務費。"
#: pretix_servicefees/signals.py:148
msgid "plus"
msgstr "加"
#: pretix_servicefees/templates/pretix_servicefees/settings.html:5
#: pretix_servicefees/templates/pretix_servicefees/settings.html:10
msgid "Service fees"
msgstr "服務費"
#: pretix_servicefees/templates/pretix_servicefees/settings.html:20
msgid "Service fees with resellers"
msgstr "轉銷商的服務費"
#: pretix_servicefees/templates/pretix_servicefees/settings.html:22
msgid ""
"If you keep values empty, we will fall back to the values from above. If you "
"do not want to charge any fees through this sales channel, set them to zero "
"explicity."
msgstr "如果將值數保留為零,我們將回退到上面的數值。如果你不想透過此銷售管道收取任何"
"費用,請將其設定為零顯性。"
#: pretix_servicefees/templates/pretix_servicefees/settings.html:30
msgid "Save"
msgstr "保存"
#: pretix_servicefees/views.py:13 pretix_servicefees/views.py:51
msgid "Fixed fee per order"
msgstr "每筆訂單的固定費用"
#: pretix_servicefees/views.py:17 pretix_servicefees/views.py:55
msgid "Percentual fee per order"
msgstr "每筆訂單的百分比費用"
#: pretix_servicefees/views.py:18 pretix_servicefees/views.py:56
msgid ""
"Percentage of the order total. Note that this percentage will currently only "
"be calculated on the summed price of sold tickets, not on other fees like e."
"g. shipping fees, if there are any."
msgstr "占訂單總額的百分比。請留意,此百分比目前只根據已售門票的總價計算,而不計算其"
"他費用,例如運費(如果有)。"
#: pretix_servicefees/views.py:24 pretix_servicefees/views.py:62
msgid "Fixed fee per ticket"
msgstr "每張票的固定費用"
#: pretix_servicefees/views.py:25 pretix_servicefees/views.py:64
msgid ""
"This fee will be added for each ticket sold, except for free items and "
"addons."
msgstr "此費用將針對每張售出的票而增加,免費物品和外掛程式除外。"
#: pretix_servicefees/views.py:29
msgid "Do not charge service fee on tickets paid with gift cards"
msgstr "不對使用禮品卡支付的票收取服務費"
#: pretix_servicefees/views.py:30
msgid ""
"If a gift card is used for the payment, the percentual fees will be applied "
"on the value of the tickets minus the value of the gift cards. All fixed "
"fees will be dropped if the tickets can be paid with gift cards entirely. "
"This only works if the gift card is redeemd when the order is submitted, not "
"if it's used to pay an unpaid order later."
msgstr ""
"如果使用禮品卡付款,則百分比費用,將適用於票價值減去禮品卡價值。如果票可以完"
"全用禮品卡支付,所有固定費用都將被取消。這僅僅適用於在提交訂單時兌換禮品卡的"
"情況,而不適用於以後用於支付未付訂單的情況。"
#: pretix_servicefees/views.py:37
msgid "Do not charge per-ticket service fee on add-on products"
msgstr "不對附加產品收取每張票的服務費"
#: pretix_servicefees/views.py:41
msgid "Do not charge per-ticket service fee on non-admission products"
msgstr "非入場商品不按票收取服務費"
#: pretix_servicefees/views.py:45
msgid "Do not charge per-ticket service fee on free products"
msgstr "免費商品不收取每張票的服務費"
#: pretix_servicefees/views.py:46
msgid ""
"Note that regardless of this setting, a per-ticket fee will not be charged "
"if the entire order is free."
msgstr "請注意,無論此設定如何,如果整個訂單都是免費的,則不會收取每張票的費用。"

43
pyproject.toml Normal file
View File

@ -0,0 +1,43 @@
[project]
name = "pretix-servicefees"
dynamic = ["version"]
description = "Allows you to impose a service fee on all non-free orders."
readme = "README.rst"
requires-python = ">=3.9"
license = {file = "LICENSE"}
keywords = ["pretix"]
authors = [
{name = "pretix team", email = "support@pretix.eu"},
]
maintainers = [
{name = "pretix team", email = "support@pretix.eu"},
]
dependencies = [
]
[project.entry-points."pretix.plugin"]
pretix_servicefees = "pretix_servicefees:PretixPluginMeta"
[project.entry-points."distutils.commands"]
build = "pretix_plugin_build.build:CustomBuild"
[build-system]
requires = [
"setuptools",
"pretix-plugin-build",
]
[project.urls]
homepage = "https://github.com/pretix/pretix-servicefees"
[tool.setuptools]
include-package-data = true
[tool.setuptools.dynamic]
version = {attr = "pretix_servicefees.__version__"}
[tool.setuptools.packages.find]
include = ["pretix*"]
namespaces = false

View File

@ -1,45 +1,3 @@
import os
from distutils.command.build import build
from setuptools import setup
from django.core import management
from setuptools import setup, find_packages
from pretix_servicefees import __version__
try:
with open(os.path.join(os.path.dirname(__file__), 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
except:
long_description = ''
class CustomBuild(build):
def run(self):
management.call_command('compilemessages', verbosity=1)
build.run(self)
cmdclass = {
'build': CustomBuild
}
setup(
name='pretix-servicefees',
version=__version__,
description='Allows you to impose a service fee on all non-free orders.',
long_description=long_description,
url='https://github.com/pretix/pretix-servicefees',
author='Raphael Michel',
author_email='michel@rami.io',
license='Apache Software License',
install_requires=[],
packages=find_packages(exclude=['tests', 'tests.*']),
include_package_data=True,
cmdclass=cmdclass,
entry_points="""
[pretix.plugin]
pretix_servicefees=pretix_servicefees:PretixPluginMeta
""",
)
setup()