{ "info": { "author": "Vincent MAILLOL", "author_email": "pywebgettext@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Natural Language :: French", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3.4", "Topic :: Software Development :: Internationalization" ], "description": "pywebgettext - Extract gettext strings from python template\n===========================================================\n\nYou can use pywebgettext instead of xgettext in order to \ngenerate POT translation file from HTML template.\npywebgettext can extract the gettext message inside HTML tag attributes or script tag.\n\n\nInstallation\n============\n\n.. code-block:: bash\n\n pip install pywebgettext\n\n\nDocumentation\n=============\n\n1. Generate POT translation file:\n\n.. code-block:: bash\n\n $ pywebgettext --output=locale/messages.pot --sort-by-file template1.html file2.py \n\n\n2. Merge against existing PO file or initialize a PO file:\n\n.. code-block:: bash\n\n $ msgmerge --sort-by-file --output-file=locale/fr_FR/LC_MESSAGES/messages.po locale/fr_FR/LC_MESSAGES/messages.po locale/messages.pot\n\n\nInitialize PO file, if it doesn't exist yet:\n\n.. code-block:: bash\n\n $ msginit --input=messages --output-file=locale/fr_FR/LC_MESSAGES/messages.po --no-wrap --locale=fr_FR\n\n\n3. Fill empty strings like msgstr \"\" in messages.po.\n\n4. Compile:\n \n.. code-block:: bash\n\n $ msgfmt locale/fr_FR/LC_MESSAGES/messages.po -o locale/fr_FR/LC_MESSAGES/messages.mo", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/maillol/pywebgettext", "keywords": null, "license": "WTFPL", "maintainer": null, "maintainer_email": null, "name": "pywebgettext", "package_url": "https://pypi.org/project/pywebgettext/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pywebgettext/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/maillol/pywebgettext" }, "release_url": "https://pypi.org/project/pywebgettext/0.0.3/", "requires_dist": null, "requires_python": null, "summary": "Extract gettext strings from python template", "version": "0.0.3" }, "last_serial": 2133652, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "bbe95e61191a6ae106b742f0ec3220ff", "sha256": "0ff9054e837dbc6cc98332e8fa512846f46b1f496a03c4430ca5fcfdc87a37bf" }, "downloads": -1, "filename": "pywebgettext-0.0.1.tar.gz", "has_sig": false, "md5_digest": "bbe95e61191a6ae106b742f0ec3220ff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4601, "upload_time": "2016-03-16T07:08:32", "url": "https://files.pythonhosted.org/packages/93/8c/9d16e64b99cd5cec883e219521873b94fa2eb10ead5f2a4ab40d6fa51680/pywebgettext-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "3f625a0d7a9588f215b3bed2ee85eec5", "sha256": "a6b00ba44111adc3386ee724bd1dc7531a8916f42a27d43d6e1d385c45eed4a5" }, "downloads": -1, "filename": "pywebgettext-0.0.2.tar.gz", "has_sig": false, "md5_digest": "3f625a0d7a9588f215b3bed2ee85eec5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4767, "upload_time": "2016-03-16T20:49:44", "url": "https://files.pythonhosted.org/packages/89/c7/00ccd652e8663f5f0ed3e777846e52ebca2276617215ae0941435f12db34/pywebgettext-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "e63e07de799949c35f35aeca1a276e11", "sha256": "b8dd4417ba65c33785483feb835a18d6e93e69124e40a6a8d440d8c37d67abee" }, "downloads": -1, "filename": "pywebgettext-0.0.3.tar.gz", "has_sig": false, "md5_digest": "e63e07de799949c35f35aeca1a276e11", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4857, "upload_time": "2016-05-25T20:33:33", "url": "https://files.pythonhosted.org/packages/89/b7/a5aa4b238aa481fd4559ab6b648d90917844869fe681b094b8fe8ef088b3/pywebgettext-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e63e07de799949c35f35aeca1a276e11", "sha256": "b8dd4417ba65c33785483feb835a18d6e93e69124e40a6a8d440d8c37d67abee" }, "downloads": -1, "filename": "pywebgettext-0.0.3.tar.gz", "has_sig": false, "md5_digest": "e63e07de799949c35f35aeca1a276e11", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4857, "upload_time": "2016-05-25T20:33:33", "url": "https://files.pythonhosted.org/packages/89/b7/a5aa4b238aa481fd4559ab6b648d90917844869fe681b094b8fe8ef088b3/pywebgettext-0.0.3.tar.gz" } ] }