Commit Graph

52 Commits

Author SHA1 Message Date
Raphael Michel
059179aecb Fix babel locale discovery for zh_Hans_US 2026-01-23 11:36:12 +01:00
Raphael Michel
b5ad372bb2 Fix crash when not language is set 2026-01-16 21:39:38 +01:00
Raphael Michel
de9045afcf Allow to combine language variant with region (fixes #3947, Z#23220951) (#5814)
* Allow to combine language variant with region (fixes #3947, Z#23220951)

This only affects babel-based formatting (currently: currencies and phone numbers),
**not** Django-based formatting (currently: date and time formats).

* Remove tests where I don'T actually know whats right

* Fix lookup order
2026-01-16 17:08:46 +01:00
Raphael Michel
177a7d07fc Update license header (#5540) 2025-10-10 15:32:46 +02:00
Raphael Michel
403b8191e4 Upgrade to Django 3.2 (#2056) 2021-05-07 12:00:30 +02:00
Raphael Michel
a93287207b pretix Community Edition moves to AGPLv3-based license (#2023) 2021-04-12 10:33:47 +02:00
Raphael Michel
3f30ddc9ab Fix #1888 -- UnknownLocaleError if locale is set 2020-12-22 13:14:56 +01:00
Raphael Michel
04bfa63a5e Add region setting to supplement localization (#1875) 2020-12-14 13:15:38 +01:00
Felix Rindt
8f2c125435 Payment term in minutes (#1760)
Co-authored-by: Raphael Michel <michel@rami.io>
2020-09-14 13:44:28 +02:00
Felix Rindt
77f76195c8 isort 5.0 config/docs (#1736) 2020-07-30 17:57:26 +02:00
Raphael Michel
af23d6e4bf Upgrade to Django 3.0 and other dependencies (#1568)
* Upgrade Django to 3.0 and other dependencies to recent versions

* Fix otp version contsraint

* Remove six dependency

* Resolve some warnings

* Fix failing tests

* Update django-countries

* Resolve all RemovedInDjango31Warnings in test suite

* Run isort

* Fix import

* Update PostgreSQL version on travis
2020-03-23 15:02:20 +01:00
Raphael Michel
3c3e59e932 Refs #99 -- Improve support for currencies with less than 2 decimal places (#783)
* Refs #99 -- Fix stripe support for zero-decimal currencies

* Add new money formatting method

* Force decimal places in many places

* Locale-aware currency rendering

* Fix currencies in more places

* More currency fixes
2018-02-26 10:46:07 +01:00
Raphael Michel
f03ad7c68f Revert 36d6b6f9, pass language to async tasks 2017-03-25 11:32:29 +01:00
Raphael Michel
36d6b6f9ab Support LazyI18nString arguments for LazyLocaleException 2017-03-24 17:03:41 +01:00
Raphael Michel
8b7d2314b8 Use django-i18nfield library (#418) 2017-02-27 21:16:28 +01:00
Raphael Michel
1c54ca7b74 Improve LazyI18nString logic 2017-01-01 20:32:35 +01:00
Raphael Michel
d1f79faef2 New tests and minor fixes 2016-09-20 16:13:13 +02:00
Raphael Michel
0bc504761b Fixed a problem with default values in I18nWidget 2016-08-29 20:07:36 +02:00
Tobias Kunze
6027262194 Fix #203 -- Add mouseover text to I18nFormFields (#217) 2016-08-29 19:17:24 +02:00
Raphael Michel
b53ef744ec Fixed a bug in I18nFormField (thanks @JRodDynamite) 2016-08-14 10:44:55 +02:00
Raphael Michel
5031393136 Force isort to treat typing in the py3.5 style, not py3.4 2016-08-13 21:19:36 +02:00
Tobias Kunze
bfc721978d Fixed minor documentation errors and mistakes (#151) 2016-07-14 20:01:38 +02:00
Raphael Michel
33d3e5c753 Fixed problems when running the Django shell 2016-05-30 22:16:03 +02:00
Raphael Michel
ead7d8ed78 Improved and documented i18n and background tasks 2016-05-29 20:02:31 +02:00
Unicorn-rzl
f3f5f8d049 Change language tag of input fields to standard to enable spell checking (#140)
* change language tag from data-lang to lang to enable spell checking

See https://www.w3.org/International/questions/qa-html-language-declarations for reference

* change language tag from data-lang to lang in correspondence to i18n.py

change necessary to enable spell checking in textareas
2016-05-28 13:20:55 +02:00
Raphael Michel
1cd0c1f53b Refs #102 -- Added multiple-choice question types 2016-03-26 12:47:44 +01:00
Raphael Michel
abf5af4253 Fixed bugs in LazyI18nString.__eq__ 2016-03-24 17:09:11 +01:00
Raphael Michel
be4435cdd8 Added test for serialization of LazyI18nString in settings 2016-03-24 14:12:20 +01:00
Raphael Michel
7aa944e128 Fixed a bug in LazyI18nString.__bool__ 2016-03-24 12:58:27 +01:00
Raphael Michel
b2f703ffc0 Fixed a bug in LazyI18nString 2016-03-22 18:55:34 +01:00
Raphael Michel
9fb3ccbde8 Implemented LazyI18nString.__bool__ to return False on empty strings 2016-03-22 18:03:44 +01:00
Raphael Michel
fde5fffd3c Fixed localization and error reporting with exceptions thrown in celery 2016-03-21 17:50:55 +01:00
Raphael Michel
4272959ba7 Fixed a bug in LazyI18nString.LazyGettextProxy 2016-03-15 18:47:38 +01:00
Raphael Michel
1f665e6f48 Use a context manager for temporary locale switches 2016-03-15 17:59:32 +01:00
Raphael Michel
8812da5325 Fixed a wrong locale string 2016-03-15 17:09:32 +01:00
Raphael Michel
7e69d8ea10 Moved sender and prefix settings to mail page 2015-12-13 17:36:36 +01:00
Raphael Michel
d8ca0d527e Fixed #42 -- Configurable e-mail texts 2015-12-13 17:33:38 +01:00
Raphael Michel
f748752391 Removed multi-dimensional item variations [backwards-incompatible] 2015-12-13 15:03:56 +01:00
Raphael Michel
84655449d9 Fixed problems with the I18nTextField widget 2015-12-12 23:49:35 +01:00
Raphael Michel
9df77c6c27 Removed usage of deprecated SubfieldBase metaclass 2015-12-12 23:18:00 +01:00
Raphael Michel
58b85819bc Added logging for all basic operations 2015-12-12 22:53:11 +01:00
Raphael Michel
79ad8b40ed Added python3.5-style type annotations to pretix.base 2015-11-04 23:39:59 +01:00
Raphael Michel
8f6b92fbf3 Added tests and test configuration for pretix/base 2015-08-25 17:18:33 +02:00
Raphael Michel
22b4d514d6 Fixed #83 -- Added an informal German translation 2015-08-16 14:25:14 +02:00
Raphael Michel
e828d711bd Used isort to order all import statements 2015-07-19 20:46:34 +02:00
Raphael Michel
164d7f82b9 Add tests for the i18n string handling 2015-04-10 16:29:10 +02:00
Raphael Michel
febfea68f7 Make available languages configurable 2015-04-06 00:14:59 +02:00
Raphael Michel
95c31ec3f6 Fix a bug in I18nWidget and the categories unit tests 2015-04-05 23:40:05 +02:00
Raphael Michel
f563217529 Fix a bug in I18FormField 2015-04-05 22:53:25 +02:00
Raphael Michel
d060a4b19b Form groups for i18n input 2015-04-05 22:36:22 +02:00