{ "info": { "author": "Malthe Borch", "author_email": "mborch@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7" ], "description": "Overview\n--------\n\nThe recorder is attached to an existing translation function keeps\ntrack of the inputs and outputs.\n\nThe result is a *locales* directory structure::\n\n .pot\n /\n /LC_MESSAGES\n /LC_MESSAGES/.po\n ...\n\nThis structure is written on process exit.\n\nNote that when the recorder is initialized, it imports any existing\nmessage catalog. That is, it's robust to process startup/shutdown and\ncan operate continuously.\n\nUsage\n-----\n\nIn Python-code, enable the translation recorder by wrapping an\nexisting translation function.\n\nThe easiest way to wire this up is by patching the module that holds\nthe function (if possible)::\n\n\n import zope.i18n\n import translationrecorder\n\n # Patch Zope's translation function\n zope.i18n.translate = translationrecorder.Recorder(\n zope.i18n.translate, './locales'\n )\n\n\nFramework Integration\n---------------------\n\nThere's integration included for the Pyramid and Zope/Plone\nframeworks.\n\nSet the environment variable ``RECORD_TRANSLATIONS`` to an existing\n*locales* directory and run your server process::\n\n $ mkdir ./locales\n $ RECORD_TRANSLATIONS=./locales bin/paster serve ...\n\nThis requires that the `translationrecorder` module is imported. This\nis handled automatically on Plone. For other systems::\n\n import translationrecorder\n\nTechnically, the package applies patches against the global\ntranslation functions of the applicable frameworks.\n\n\nAuthor\n------\n\nMalthe Borch \n\n\nChanges\n=======\n\n1.0.3 (2012-10-17)\n------------------\n\n- Fixed an issue where a translation would always appear with a\n default text, even when not present in catalog.\n\n- Fixed an issue where a message with a mapping would not get properly\n decoded into a message id.\n\n1.0.2 (2012-01-13)\n------------------\n\n- Fixed issue where a quote appearing in a message id or translation\n would corrupt on save.\n\n1.0.1 (2012-01-13)\n------------------\n\n- Fixed issue where generated .po-files would result in a syntax error\n on compilation using ``pythongettext`` due to a missing initial\n dummy message translation.\n\n- Patch the translation domain instead of the (higher-level)\n global translation function.\n\n This fixes an issue where messages would not be recorded with the\n proper translation domain and the used target languages would not be\n correctly registered.\n\n1.0 (2011-11-28)\n----------------\n\n- Initial public release.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": null, "license": "BSD-like (http://repoze.org/license.html)", "maintainer": null, "maintainer_email": null, "name": "translationrecorder", "package_url": "https://pypi.org/project/translationrecorder/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/translationrecorder/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/translationrecorder/1.0.3/", "requires_dist": null, "requires_python": null, "summary": "Records gettext translation messages and synchronizes to message catalogs.", "version": "1.0.3" }, "last_serial": 800882, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "5a7f59db5c5823fd2bb4c8069c83612e", "sha256": "019fa38db946e75d4b754445026f3da979f7f9eeccac1a8a1e47c67bba52b210" }, "downloads": -1, "filename": "translationrecorder-1.0.tar.gz", "has_sig": false, "md5_digest": "5a7f59db5c5823fd2bb4c8069c83612e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4804, "upload_time": "2011-11-28T09:31:50", "url": "https://files.pythonhosted.org/packages/d4/a7/ac531094de2fd7f20ff64808ca5351bd9e3f5fb7f9bd5db123b48a65558d/translationrecorder-1.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "235d5994945e25163f99c44edea7cdb0", "sha256": "d9fd1e2600d72e72a35ece46bf4df612dc4c96a2d3bb4163e924aeece50d369a" }, "downloads": -1, "filename": "translationrecorder-1.0.1.tar.gz", "has_sig": false, "md5_digest": "235d5994945e25163f99c44edea7cdb0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5210, "upload_time": "2012-01-13T12:08:36", "url": "https://files.pythonhosted.org/packages/cd/71/da43e5590f1010916dc6ff21b7d393210ea65f5ff310b0dfb6ffc6bbb1a8/translationrecorder-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "f1c9c054cd61b89740fa1e65106d16eb", "sha256": "13430ddd398ae6101ba2a620347d07479f98b8872555a3f13b1ec4206a6b7bb4" }, "downloads": -1, "filename": "translationrecorder-1.0.2.tar.gz", "has_sig": false, "md5_digest": "f1c9c054cd61b89740fa1e65106d16eb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5275, "upload_time": "2012-01-13T13:47:28", "url": "https://files.pythonhosted.org/packages/5d/de/08bd35f6ad204ab5c3bc67283f8e9344f525f055e7ac6a9bd8bb6c2488d7/translationrecorder-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "8479a5c541f7806c806800dd4d9e9c4e", "sha256": "f2662956614689de0db9a7f0ae3f7c328156048b01ad11f0bb7bab3acc093846" }, "downloads": -1, "filename": "translationrecorder-1.0.3.tar.gz", "has_sig": false, "md5_digest": "8479a5c541f7806c806800dd4d9e9c4e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5488, "upload_time": "2012-10-17T13:29:21", "url": "https://files.pythonhosted.org/packages/4f/86/d6e10531f0c15b0378c574183dd075d428c3024842cf6b9c695543355765/translationrecorder-1.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8479a5c541f7806c806800dd4d9e9c4e", "sha256": "f2662956614689de0db9a7f0ae3f7c328156048b01ad11f0bb7bab3acc093846" }, "downloads": -1, "filename": "translationrecorder-1.0.3.tar.gz", "has_sig": false, "md5_digest": "8479a5c541f7806c806800dd4d9e9c4e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5488, "upload_time": "2012-10-17T13:29:21", "url": "https://files.pythonhosted.org/packages/4f/86/d6e10531f0c15b0378c574183dd075d428c3024842cf6b9c695543355765/translationrecorder-1.0.3.tar.gz" } ] }