{ "info": { "author": "Marek Nogacki", "author_email": "m.nogacki@hiddendata.co", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "django-C3PO\n=============\ndjango-C3PO is a Django application using C3PO - module responsible for converting .po files from locale folder\nwith translations to .ods format and sending them to Google Spreadsheets.\n\nThis Django application provides panel where user can synchronize translations with GDocs and it gives\npossibility to push all translations on git and checkout last commit.\n\nAfter synchronization django-C3PO sends post_compilemessages signal which notifies that translations are ready.\nServer restart is needed then to reload compiled .mo files into application.\n\nApplication uses celery to prevent timeout when synchronizing translations.\nBe sure to properly configure it before use.\n\ndjango-C3PO includes custom compilemessages command called verbosecompilemessages.\nIt is needed to write msgfmt errors on the stderr, because standard compile messages\ndoes not show them.\n\nQuick start\n-----------\n\n1. Add \"django-C3PO\" to your INSTALLED_APPS setting like this:\n\n```python\nINSTALLED_APPS = (\n ...\n 'django_c3po',\n)\n```\n\n2. Add C3PO variable to your settings and define them. For example:\n\n```python\nC3PO = {\n 'LANGUAGES': ['en', 'pl', 'jp'],\n 'EMAIL': 'ttestt123321@gmail.com',\n 'PASSWORD': 'zxcasdqwe.',\n 'URL': 'https://docs.google.com/spreadsheet/ccc?key=0AnVOHClWGpLZdGRuQVlrWG5Ia3QtOHJEWWpmZVYyYnc#gid=0',\n 'HEADER': '# translated with po_translator\\n',\n 'LOCALE_ROOT': os.path.join('conf', 'locale'),\n 'PO_FILES_PATH': 'LC_MESSAGES',\n 'TEMP_PATH': 'temp',\n 'GIT_REPOSITORY': 'git@git.hiddendata.co:mnogacki/testpo.git',\n 'GIT_BRANCH': 'master',\n 'SOURCE': 'PO Translator',\n}\n```\n\n3. Include the po_translator URLconf in your project urls.py like this::\n\n```python\nurl(r'^c3po/', include('django_c3po.urls')),\n```\n\n4. Add post_compilemessages signal receiver for server restart:\n```python\n@receiver(post_compilemessages)\ndef restart_server_callback(sender, *args, **kwargs):\n manage_path = os.path.join(settings.ROOT_DIR, '..', 'manage.py')\n os.system('touch ' + manage_path)\n```\n\n5. Configure celery in your settings:\n```python\nBROKER_URL = 'django://'\nCELERY_IMPORTS = ('test_app.models',)\n\nimport djcelery\ndjcelery.setup_loader()\n```\nBe sure to include module with your signal receiver in CELERY_IMPORTS.\n\n6. Start the development server, visit http://127.0.0.1:8000/admin/\n and add permission 'django-C3PO.can_translate' to user.\n\n7. Visit http://127.0.0.1:8000/c3po/ and log in as user with can_translate permission.\n\n8. Use buttons to synchronize, make messages and git operations.\n-\nUsage\n-----\nAfter configuration and logging into the translator's panel, you will see basic configuration info with\nlink to the spreadsheet defined in settings. User can manage app translations with three actions:\n\n - Synchronize - Synchronized translations from local files with GDoc state. If project has new expressions\n which are not in the spreadsheet, GDoc is updated with this entries. Remember that after this action server\n should be restarted.\n - Make messages - Runs makemessages command updating po files with new expressions to translate.\n - Publish - Pushes current po files to git repository.\n - Reset - Reverts current changes and checkouts project to last commit. Note that changes are also reverted\n in spreadsheet, so all new translations will be lost.\n", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/VorskiImagineering/django-C3PO/tarball/master", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/VorskiImagineering/django-C3PO", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "django-C3PO", "package_url": "https://pypi.org/project/django-C3PO/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-C3PO/", "project_urls": { "Download": "https://github.com/VorskiImagineering/django-C3PO/tarball/master", "Homepage": "https://github.com/VorskiImagineering/django-C3PO" }, "release_url": "https://pypi.org/project/django-C3PO/0.3.0/", "requires_dist": null, "requires_python": null, "summary": "django-C3PO is a Django application using C3PO - module\n responsible for converting .po files from locale folder with translations\n to .ods format and sending them to Google Spreadsheets.\n\n This Django application provides panel where user can synchronize\n translations with GDocs and it gives possibility to push all translations\n on git and checkout last commit.\n\n django-C3PO uses celery since version 0.2. Be sure to properly configure\n it before using application.", "version": "0.3.0" }, "last_serial": 992258, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "dd6f8f8a580eccf1f7d39ba74ce9ef86", "sha256": "2495f3c0a84a1e1f4402af21280d74a265ab6fae85f63ba5d4bff73db7366bef" }, "downloads": -1, "filename": "django_C3PO-0.0.1-py2.7.egg", "has_sig": false, "md5_digest": "dd6f8f8a580eccf1f7d39ba74ce9ef86", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 8095, "upload_time": "2013-07-29T08:12:32", "url": "https://files.pythonhosted.org/packages/94/c2/cdd94cf949fd73286c08df3a07efa00834ec8756a3eff638083c6e40a046/django_C3PO-0.0.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "0418e8af4c3f2d92612d1df77cd7f99a", "sha256": "924e1e1aa824f284d06e62b8a56514a214b40d0634ae84dd42820225d8a200f8" }, "downloads": -1, "filename": "django-C3PO-0.0.1.tar.gz", "has_sig": false, "md5_digest": "0418e8af4c3f2d92612d1df77cd7f99a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2897, "upload_time": "2013-07-22T15:04:47", "url": "https://files.pythonhosted.org/packages/21/fe/c914d6077d85211ee8b90dd28d1874182e77e9d15712c86e368eb845f4d4/django-C3PO-0.0.1.tar.gz" } ], "0.0.1-dev": [], "0.0.2": [ { "comment_text": "", "digests": { "md5": "20448595c2079d78abb29a6effe4b5f5", "sha256": "892ae51e8dcc05ebfe6206d124e8f52964d779875e961296629d0cf6b63bbe36" }, "downloads": -1, "filename": "django-C3PO-0.0.2.tar.gz", "has_sig": false, "md5_digest": "20448595c2079d78abb29a6effe4b5f5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2567, "upload_time": "2013-07-29T08:20:46", "url": "https://files.pythonhosted.org/packages/27/1c/800479abb03744f40b4fca15d022f6469def33d19fc576255aa2b09cbdfe/django-C3PO-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "e64c2f764362d1a836e2c25e1fbb0a0f", "sha256": "217a816d53d0e8d09ebf5f4e654770d71f1dd5ef4505a99e133dc53fdfaccb13" }, "downloads": -1, "filename": "django-C3PO-0.0.3.tar.gz", "has_sig": false, "md5_digest": "e64c2f764362d1a836e2c25e1fbb0a0f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 89133, "upload_time": "2013-07-29T08:27:11", "url": "https://files.pythonhosted.org/packages/78/bc/df4d310acb8784ad5faf3ed203eda948e6293a98a2c9df46b6dcd7a6e9ee/django-C3PO-0.0.3.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "539c74a3d494696e208ae5a5c56fd55b", "sha256": "991913c4a64fa860a0db748d5676565c1a08c87e777173b20a5086c7dc11c843" }, "downloads": -1, "filename": "django-C3PO-0.1.0.tar.gz", "has_sig": false, "md5_digest": "539c74a3d494696e208ae5a5c56fd55b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 92079, "upload_time": "2013-07-31T14:38:31", "url": "https://files.pythonhosted.org/packages/01/ad/6ce3f623bfd48b34753c641ffc15cd89dbf332270c2eaf2578c1210925d9/django-C3PO-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "d58529130ab221641b053b620e52615a", "sha256": "07408839326c00afc282012cf9a751d1fb32838e392714b415d6791e888b21ce" }, "downloads": -1, "filename": "django-C3PO-0.1.1.tar.gz", "has_sig": false, "md5_digest": "d58529130ab221641b053b620e52615a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 92089, "upload_time": "2013-07-31T14:43:11", "url": "https://files.pythonhosted.org/packages/92/c1/70672235b81221a9cb02a5f91832a5d63203121a8cbed9e321a58ae7c190/django-C3PO-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "c5b12dd59db4fec720c090fdeb198095", "sha256": "3e736cabf020db418801a7674176587f4a871e19c55c6957c30de1c7c5de2909" }, "downloads": -1, "filename": "django-C3PO-0.1.2.tar.gz", "has_sig": false, "md5_digest": "c5b12dd59db4fec720c090fdeb198095", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 92108, "upload_time": "2013-08-01T13:27:04", "url": "https://files.pythonhosted.org/packages/a5/4c/11b7626d9b6573e8d1e87a5045c1dcd507e39b14a746f793438f3e0c4408/django-C3PO-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "d6935389e3883be0ccf4e6d055a12b13", "sha256": "f21f4c78415cf5fde529fa928b73e9250a17359938004d815ba5a8a465fef5c3" }, "downloads": -1, "filename": "django-C3PO-0.1.3.tar.gz", "has_sig": false, "md5_digest": "d6935389e3883be0ccf4e6d055a12b13", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 93182, "upload_time": "2013-08-26T12:24:14", "url": "https://files.pythonhosted.org/packages/3a/06/3f8b8cecf910cd6a14b10dd7e25d336c95d1e6940169c29eb322ce080fff/django-C3PO-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "00778537a14ad1fa735f457682f65efe", "sha256": "33b84238c5943dcb22ae2ac6eea24d8c2ed377798922a0e1da03f04bd1ddf304" }, "downloads": -1, "filename": "django-C3PO-0.1.4.tar.gz", "has_sig": false, "md5_digest": "00778537a14ad1fa735f457682f65efe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 93221, "upload_time": "2013-08-26T13:42:39", "url": "https://files.pythonhosted.org/packages/18/4e/02916b59655ed70a44dda0da5e50d89e12e8d8eb53d8f73198ce44a97748/django-C3PO-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "4e2506690dcbfca2edcc6f23506c3cbe", "sha256": "6498b562ff06e8d9bbe4d40cbdc2c8d8c5717a45e6e67eade51442f2bb31e9d6" }, "downloads": -1, "filename": "django-C3PO-0.1.5.tar.gz", "has_sig": false, "md5_digest": "4e2506690dcbfca2edcc6f23506c3cbe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 93218, "upload_time": "2013-08-26T14:42:58", "url": "https://files.pythonhosted.org/packages/c3/f2/ae94486e2d8811320417b8636287df36bcb2087f8af4d646a453ca9a589c/django-C3PO-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "4d19e4538e5ca46bcab131b597bbddd4", "sha256": "2c141aa4d5effd94624cd281e7a2d530ba30a34197b5fedf63ec1378c902f0bc" }, "downloads": -1, "filename": "django-C3PO-0.1.6.tar.gz", "has_sig": false, "md5_digest": "4d19e4538e5ca46bcab131b597bbddd4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 93184, "upload_time": "2013-09-11T07:43:50", "url": "https://files.pythonhosted.org/packages/2e/3c/6526f7b786df08c36bbbd75a3f93cd5d9005756fe689d4cf7c9faace0c2c/django-C3PO-0.1.6.tar.gz" } ], "0.2.0": [], "0.2.1": [], "0.2.2": [ { "comment_text": "", "digests": { "md5": "4c0bc7fcdd9519c67984b0bd01de4a68", "sha256": "525e0fe2e4fc17f6ee429798eca99af96c3478aefc3bfc8fa0559097831c926c" }, "downloads": -1, "filename": "django-C3PO-0.2.2.tar.gz", "has_sig": false, "md5_digest": "4c0bc7fcdd9519c67984b0bd01de4a68", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 183057, "upload_time": "2013-10-15T08:26:20", "url": "https://files.pythonhosted.org/packages/5c/32/b8713604a9a5671aa481e9866e84553874ea9cc428a38ddc05f2b1e49c85/django-C3PO-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "7cc6ea74abcbcc6355bfe2b1ec62f934", "sha256": "48c0b099b6917ed412ce49fb4683b2d70a4696e3867e84a8e9a62002a11eacdf" }, "downloads": -1, "filename": "django-C3PO-0.2.3.tar.gz", "has_sig": false, "md5_digest": "7cc6ea74abcbcc6355bfe2b1ec62f934", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 186396, "upload_time": "2013-10-29T09:19:38", "url": "https://files.pythonhosted.org/packages/98/87/76b7038266bb5241d99c0ba2ed3f7dd528ba22ca3daec00933806dfbf072/django-C3PO-0.2.3.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "25c3140911edbacbbff6eb1304d686b9", "sha256": "d31ebdf70bf2886049abf8ee5b6417a84a8e5ba5b7bcf144237a8058c73188c7" }, "downloads": -1, "filename": "django-C3PO-0.3.0.tar.gz", "has_sig": false, "md5_digest": "25c3140911edbacbbff6eb1304d686b9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 185123, "upload_time": "2014-02-06T12:15:41", "url": "https://files.pythonhosted.org/packages/77/fb/63c3fa06bb14d60c027176834921754efa74703727ac50f2d05d08aff045/django-C3PO-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "25c3140911edbacbbff6eb1304d686b9", "sha256": "d31ebdf70bf2886049abf8ee5b6417a84a8e5ba5b7bcf144237a8058c73188c7" }, "downloads": -1, "filename": "django-C3PO-0.3.0.tar.gz", "has_sig": false, "md5_digest": "25c3140911edbacbbff6eb1304d686b9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 185123, "upload_time": "2014-02-06T12:15:41", "url": "https://files.pythonhosted.org/packages/77/fb/63c3fa06bb14d60c027176834921754efa74703727ac50f2d05d08aff045/django-C3PO-0.3.0.tar.gz" } ] }