{ "info": { "author": "Giacomo Graziosi", "author_email": "g.graziosi@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "====================\ndjango-polyglot\n==================== \n\nThis package is based on the translations module from FeinCMS. It offers functions and abstract base classes that can be used to store translated models. There isn't much magic going on here.\n\nUsage example:\n\n.. code-block:: python\n\n class News(models.Model, TranslatedObjectMixin):\n active = models.BooleanField(default=False)\n created = models.DateTimeField(default=timezone.now)\n\n\n class NewsTranslation(Translation(News)):\n title = models.CharField(max_length=200)\n body = models.TextField()\n\n\nPrint the titles of all news entries either in the current language (if\navailable) or in any other language:\n\n.. code-block:: python\n\n for news in News.objects.all():\n print news.translation.title\n\nPrint all the titles of all news entries which have an english translation:\n\n.. code-block:: python\n\n from django.utils import translation\n translation.activate('en')\n for news in News.objects.filter(translations__language_code='en'):\n print news.translation.title", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/esistgut/django-polyglot", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "django-polyglot", "package_url": "https://pypi.org/project/django-polyglot/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-polyglot/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/esistgut/django-polyglot" }, "release_url": "https://pypi.org/project/django-polyglot/0.1/", "requires_dist": null, "requires_python": null, "summary": "A simple Django package for model translations", "version": "0.1" }, "last_serial": 1106548, "releases": { "0.1": [] }, "urls": [] }