diff --git a/.travis.sh b/.travis.sh index 5cee1168f8..e507bb219a 100755 --- a/.travis.sh +++ b/.travis.sh @@ -25,7 +25,7 @@ if [ "$1" == "doctests" ]; then cd doc make doctest fi -if [ "$1" == "spelling" ]; then +if [ "$1" == "doc-spelling" ]; then XDG_CACHE_HOME=/cache pip3 install -Ur doc/requirements.txt cd doc make spelling @@ -33,6 +33,11 @@ if [ "$1" == "spelling" ]; then exit 1 fi fi +if [ "$1" == "translation-spelling" ]; then + XDG_CACHE_HOME=/cache pip3 install -Ur src/requirements/dev.txt + cd src + potypo +fi if [ "$1" == "tests" ]; then pip3 install -r src/requirements.txt -Ur src/requirements/dev.txt -r src/requirements/py34.txt cd src diff --git a/.travis.yml b/.travis.yml index a53476926d..9398bcd6f0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -37,12 +37,16 @@ matrix: - python: 3.6 env: JOB=plugins - python: 3.6 - env: JOB=spelling + env: JOB=doc-spelling + - python: 3.6 + env: JOB=translation-spelling addons: postgresql: "9.4" apt: packages: - enchant + - myspell-de-de + - aspell-en branches: except: - /^weblate-.*/ diff --git a/src/pretix/base/models/auth.py b/src/pretix/base/models/auth.py index f0428009bb..965cdedd22 100644 --- a/src/pretix/base/models/auth.py +++ b/src/pretix/base/models/auth.py @@ -93,7 +93,7 @@ class User(AbstractBaseUser, PermissionsMixin, LoggingMixin): verbose_name=_('Timezone')) require_2fa = models.BooleanField( default=False, - verbose_name=_('Two-factor authentification is required to log in') + verbose_name=_('Two-factor authentication is required to log in') ) notifications_send = models.BooleanField( default=True, diff --git a/src/pretix/base/services/orders.py b/src/pretix/base/services/orders.py index 66cb63fb1a..e97ad3c335 100644 --- a/src/pretix/base/services/orders.py +++ b/src/pretix/base/services/orders.py @@ -679,7 +679,7 @@ class OrderChangeManager: 'no quota is available.'), 'paid_price_change': _('Currently, paid orders can only be changed in a way that does not change the total ' 'price of the order as partial payments or refunds are not yet supported.'), - 'addon_to_required': _('This is an addon product, please select the base position it should be added to.'), + 'addon_to_required': _('This is an add-on product, please select the base position it should be added to.'), 'addon_invalid': _('The selected base position does not allow you to add this product as an add-on.'), 'subevent_required': _('You need to choose a subevent for the new position.'), } diff --git a/src/pretix/control/forms/event.py b/src/pretix/control/forms/event.py index a6517a1db9..245e25fbd3 100644 --- a/src/pretix/control/forms/event.py +++ b/src/pretix/control/forms/event.py @@ -430,8 +430,8 @@ class PaymentSettingsForm(SettingsForm): ) payment_term_weekdays = forms.BooleanField( label=_('Only end payment terms on weekdays'), - help_text=_("If this is activated and the payment term of any order ends on a saturday or sunday, it will be " - "moved to the next monday instead. This is required in some countries by civil law. This will " + help_text=_("If this is activated and the payment term of any order ends on a Saturday or Sunday, it will be " + "moved to the next Monday instead. This is required in some countries by civil law. This will " "not effect the last date of payments configured above."), required=False, ) diff --git a/src/pretix/control/forms/item.py b/src/pretix/control/forms/item.py index 2c4ebaecb0..b30b8b040b 100644 --- a/src/pretix/control/forms/item.py +++ b/src/pretix/control/forms/item.py @@ -348,7 +348,7 @@ class ItemVariationsFormSet(I18nFormSet): f.fields['DELETE'].disabled = True raise ValidationError( message=_('The variation "%s" cannot be deleted because it has already been ordered by a user or ' - 'currently is in a users\'s cart. Please set the variation as "inactive" instead.'), + 'currently is in a user\'s cart. Please set the variation as "inactive" instead.'), params=(str(f.instance),) ) diff --git a/src/pretix/control/templates/pretixcontrol/auth/login_2fa.html b/src/pretix/control/templates/pretixcontrol/auth/login_2fa.html index f5f0b565f6..e06e531b4e 100644 --- a/src/pretix/control/templates/pretixcontrol/auth/login_2fa.html +++ b/src/pretix/control/templates/pretixcontrol/auth/login_2fa.html @@ -8,7 +8,7 @@ {% csrf_token %}
- {% trans "You configured your account to require authentification with a second medium, e.g. your phone. Please enter your verification code here:" %} + {% trans "You configured your account to require authentication with a second medium, e.g. your phone. Please enter your verification code here:" %}