django-modeltranslation-wrapper

Wrapper around modeltranslation package, adding nice features
Download

django-modeltranslation-wrapper Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Price:
  • FREE
  • Publisher Name:
  • Jacek Tomaszewski
  • Publisher web site:
  • https://github.com/zlorf/

django-modeltranslation-wrapper Tags


django-modeltranslation-wrapper Description

django-modeltranslation-wrapper is a Django app that provides a bunch of patches for django-modeltranslation, which can enhance usage of this nice app and target some annoying aspects.Two features were added:- autodiscover of translation.py files within apps- intelligent manager: filtering, ordering, creating and so on takes current language into consideration (This feature was mainly ported from django-linguo, another good app. However, modeltranslation idea of translation fields registration is better than linguo model code edition - especially with 3rd-party apps)Later, modeltranslation will be referred as MT, and django-modeltranslation-wrapper as Wrapper.Installation1. Install app: pip install django-modeltranslation-wrapper or download it manually and put in python path.2. Add modeltranslation_wrapper to INSTALLED_APPS before plain modeltranslation: INSTALLED_APPS = ( ... 'modeltranslation_wrapper', 'modeltranslation', ... )3. Optionally, specify MODELTRANSLATION_TRANSLATION_FILES in settings: MODELTRANSLATION_TRANSLATION_FILES = ( 'myproject.flatpages_translation', 'myproject.foo_translation', ) These modules will be imported in addition to autodiscovered ones.4. Optionally, specify MODELTRANSLATION_AUTO_POPULATE (see above): MODELTRANSLATION_AUTO_POPULATE = TrueProduct's homepage


django-modeltranslation-wrapper Related Software