Commit graph

17 commits

Author SHA1 Message Date
Jacek Tomaszewski
3f4019cfef Remove MODELTRANSLATION_TRANSLATION_REGISTRY handling. 2013-02-27 18:18:29 +01:00
wrwrwr
7ff0506f27 Context manager for temporarily switching fallbacks on or off. 2013-02-24 11:01:08 +01:00
Dirk Eschler
e94bbcd3d2 Applied styleguide. We allow 100 chars now, let's use the space. 2013-02-06 11:52:46 +01:00
Dirk Eschler
16c761057f Fallback to DEFAULT_LANGUAGE by default. 2012-11-28 11:32:43 +01:00
Jacek Tomaszewski
5b51a7b793 Add fallback language feature and base tests. 2012-11-13 16:28:42 +01:00
Jacek Tomaszewski
0949e95441 Add MultilingualManager and its tests. 2012-11-11 16:28:29 +01:00
Dirk Eschler
1c3360f613 Fixed setting MODELTRANSLATION_TRANSLATION_FILES should be optional. Resolves issue 86. 2012-10-15 08:30:21 +00:00
Dirk Eschler
a3db814551 Added unittest for FileField and ImageField and incorporated a small fix for the pre_save method of TranslationField (thanks to Bruno Tavares). 2012-10-12 12:59:52 +00:00
Dirk Eschler
fc43291632 Included pid in registration debug output and added a new setting MODELTRANSLATION_DEBUG to disable debug output independently from the global DEBUG setting. 2012-07-11 11:52:24 +00:00
Dirk Eschler
4afb04b75a Moved autoregistration code to init and merged related changes from hyperweek's branch at github . This eliminates the need for hooking into urls.py. 2012-07-11 09:52:49 +00:00
Dirk Eschler
4579d831e5 Use app-level translation files in favour of a single project-level one. Adds an autoregister feature similiar to the one provided by Django's admin. A new setting MODELTRANSLATION_TRANSLATION_FILES keeps backwards compatibility with older versions. This is basically a merge from django-modeltranslation-wrapper with a few changes regarding how registration is triggered. See documentation for details. Resolves issues 58 and 71 (thanks to Jacek Tomaszewski, the author of modeltranslation-wrapper). 2012-07-10 12:58:08 +00:00
Dirk Eschler
6f7704bc57 Some cleanups and validated codebase against PEP8 and coding guidelines. 2012-07-04 10:09:22 +00:00
Dirk Eschler
63fd7c0c7c Changed handling of supported fields. By default CharField, TextField and subclasses of these fields are supported. Supported fields can be extended through the setting MODELTRANSLATION_CUSTOM_FIELDS. Support for related fields is experimental and these fields explicitly raise a FutureWarning now. 2010-08-27 08:39:41 +00:00
Dirk Eschler
d116c17cdd Deactivated tests of unsupported field and added tests for related fields (mostly stumbs which raise errors). 2010-07-06 22:04:31 +00:00
Dirk Eschler
974503ca0a Moved determination of default language into settings. 2010-07-06 09:52:41 +00:00
Dirk Eschler
1e10fcb01f Added tests for non-text-fields (rule 1-4 covered so far). Note that tests for boolean and nullboolean fields fail, so they aren't working as expected. 2010-06-27 19:35:37 +00:00
Dirk Eschler
77350b1e89 Factored out settings into a separate settings.py and consistently used an app specific settings prefix, TRANSLATION_REGISTRY now deprecated in favour of MODELTRANSLATION_TRANSLATION_REGISTRY. 2010-06-26 08:54:08 +00:00