{ "info": { "author": "Andrey Antukh", "author_email": "niwi@niwi.be", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP" ], "description": "================\ndjango-jsgettext\n================\n\nIt is an improvement to the implementation of django gettext for javascrtipt.\n\nFeatures:\n---------\n\n- Now parse javascript teplates for translatable strings (tested with underscore.template)\n- New I18n view more extensible (build on top of CBV) that exposes the djangojs gettext domain\n and djsgettext domain generated for translation scrings from js templates. Aditionaly the performance is\n improved with caching of this view (does not supports by django view as default behavior).\n\n\nHow it works?\n-------------\n\nDjango ``makemesages`` command generates a djangojs domain po file from ``*.js`` files, ``django-jsgettext``\ngenerates a djgettext domain po file from ``.html`` files (javascript templates) and the new view exposes\nthe two gettext domains to the javascript.\n\n.. note::\n The new view is created because the primary view of django is monolitic and not permits expose domains distinct than ``djangojs`` and ``django``.\n\nCurrently, only is tested with underscore templates. Example:\n\n.. code-block:: html\n\n
<%= gettext('sample message') %>
\n
<%= ngettext('1 message', 'some messages', num) %>
\n
<%= interpolate(gettext('sample %s'), [1]) %>
\n\n\nHow use it?\n-----------\n\nUrls files:\n\n.. code-block:: python\n\n from djsgettext.views import I18n\n\n urlpatterns = patterns('',\n url(r'^js-gettext/$', I18n.as_view()),\n )\n\n\nCollect messages from templates:\n\n.. code-block:: console\n\n python manage.py jsgettext_makemessages\n", "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/niwibe/django-jsgettext", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "django-jsgettext", "package_url": "https://pypi.org/project/django-jsgettext/", "platform": "OS Independent", "project_url": "https://pypi.org/project/django-jsgettext/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/niwibe/django-jsgettext" }, "release_url": "https://pypi.org/project/django-jsgettext/0.5/", "requires_dist": null, "requires_python": null, "summary": "Improved and complement gettext support for javascript for Django", "version": "0.5" }, "last_serial": 826200, "releases": { "0.5": [ { "comment_text": "", "digests": { "md5": "5ab619ebc29090cfc73df648a8570a3c", "sha256": "c834735a722d310c90320751d1a5f1cb8ed938f6e52c422a0522b07da985433e" }, "downloads": -1, "filename": "django-jsgettext-0.5.tar.gz", "has_sig": false, "md5_digest": "5ab619ebc29090cfc73df648a8570a3c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5359, "upload_time": "2013-07-27T11:35:31", "url": "https://files.pythonhosted.org/packages/1a/9e/08614cfd3e1c05444b7ae7901af79cd55c51db84855ace09172ce4264d07/django-jsgettext-0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5ab619ebc29090cfc73df648a8570a3c", "sha256": "c834735a722d310c90320751d1a5f1cb8ed938f6e52c422a0522b07da985433e" }, "downloads": -1, "filename": "django-jsgettext-0.5.tar.gz", "has_sig": false, "md5_digest": "5ab619ebc29090cfc73df648a8570a3c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5359, "upload_time": "2013-07-27T11:35:31", "url": "https://files.pythonhosted.org/packages/1a/9e/08614cfd3e1c05444b7ae7901af79cd55c51db84855ace09172ce4264d07/django-jsgettext-0.5.tar.gz" } ] }