{ "info": { "author": "Sayyid Hamid Mahdavi", "author_email": "sayyid.hamid.mahdavi@gmail.com", "bugtrack_url": null, "classifiers": [ "Framework :: Pyramid", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: WSGI :: Application", "Topic :: Software Development :: Internationalization", "Topic :: Software Development :: Localization" ], "description": "Pyramid I18N Helper\n===================\n\nThis is a helper for internationalization and localization in `Pyramid `_\n\nviews\n-----\n\nThis package add 3 view to your pyramid based application:\n\n - i18n_helper.domain view in route /translate\n - i18n_helper.pot view in route /translate/{domain}\n - i18n_helper.po view in route /translate/{domain}/{lang}\n\nin `/translate` you see available domains and also you can create new domain.\n\nin `/translate/{domain}` you can edit pot file for selected domain.\n\nin `/translate/{domain}/{lang}` you can translate msgid to selected lang in selected domain. also you can update po file from pot file.\n\n\nadditional object\n-----------------\n\nThis package add `Babel `_ locale object to request.\nThis package use `Pyramid_flash_message `_ to handle flash messages.\n\ncollecting msgids\n-----------------\n\nyou can also use auto collect msgids. for this set `i18n_helper.collect_msgid = true` in your project config file.\nby enabling auto collect. new msgids for any domain add to its own pot file. even if pot file for specific is not available it will create automatically\n\ntranslation directory\n---------------------\n\nyou can specify translation directory in config file via `i18n_helper.locale_dir`\n\nInstallation\n------------\n\n.. code-block:: bash\n\n pip install pyramid_i18n_helper\n\nadd then add this package to your application\n\n.. code-block:: ini\n\n pyramid.includes =\n pyramid_layout\n pyramid_jinja2\n pyramid_i18n_helper\n\n\nor\n\n.. code-block:: python\n\n config.include('pyramid_layout')\n config.include('pyramid_jinja2')\n config.include('pyramid_i18n_helper')\n\nnow user with `i18n_helper` permission can access this pages.\n\nSupport\n-------\n\nYou can use `project issue page `_ to submit your issue\n\n\nKhown Issues\n------------\n\n * After translating a msgid you have to restart your application\n * At now this package use pyramid_layout default layout. form `pyramid_layout documentation page `_ `main_template is the template object that provides the main template (aka, o-wrap) for the view`.\n if your application don't have main_layout some default main_template will be used but it is so simple and you may have problem.\n at now templates will be load in block named content.\n * main_layout template have to designed via jinja2.\n * excuse me for my bad english knowledge.\n\n\nChanges\n=======\n\n\nv 0.3.5\n-------\n\n - get locale_dir from config file via `i18n_helper.locale_dir`\n\nv 0.3.4\n-------\n\n - remove dependency to master_layout. master_layout is optional.\n\nv 0.3.3\n-------\n\n - encoding bug fix.\n\nv 0.3.2\n-------\n\n - bug fix.\n\nv 0.3.1\n-------\n\n - documentation.\n - remove unnecessary dependency.\n\nv 0.3.0\n-------\n\n - many change. so new version released.\n - documentation\n\nv 0.2.14\n--------\n\n - complete domain view\n\nv 0.2.13\n--------\n\n - handle duplication error\n - create new domain if not exist\n\nv 0.2.11\n--------\n\n - compatible with pyramid_flash_message 0.2\n\nv 0.2.9\n-------\n\n - add flash message.\n\nv 0.2.8\n-------\n\n - set permission to 'i18n_helper'. so user want to access pages have to have this permission.\n\nv 0.2.7\n-------\n\n - modify create lang and select lang\n - error in creating new lang if lang not valid in babel\n\nv 0.2.6\n-------\n\n - add ability to collect msgids in pot file via `i18n_helper.collect_msgid` setting as `true`\n - some debug\n\nv 0.2.5\n-------\n\n - add babel locale object to request\n\nv 0.2.4\n-------\n\n - some bug fix\n\nv 0.2.3\n-------\n\n - some bug fix\n\nv 0.2\n-----\n\n - add (newlang / go to lang) field\n - some bug fix\n\nv 0.1\n-----\n\n - some modification\n - apply suggestion from #1. thank @mmerickel\n\nv 0.0\n-----\n\n - init project and create skeleton of it", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/sahama/pyramid_i18n_helper", "keywords": "web wsgi bfg pylons pyramid i18n l10n", "license": "", "maintainer": "", "maintainer_email": "", "name": "pyramid-i18n-helper", "package_url": "https://pypi.org/project/pyramid-i18n-helper/", "platform": "", "project_url": "https://pypi.org/project/pyramid-i18n-helper/", "project_urls": { "Homepage": "https://github.com/sahama/pyramid_i18n_helper" }, "release_url": "https://pypi.org/project/pyramid-i18n-helper/0.3.6/", "requires_dist": null, "requires_python": "", "summary": "Small tool to help in i18n and l10n", "version": "0.3.6" }, "last_serial": 3550039, "releases": { "0.2.13": [], "0.2.14": [ { "comment_text": "", "digests": { "md5": "43a013e464a20b0501876fd0e7b17b85", "sha256": "312735d2a4a72bc9ef587cc347e50dd48d7cd4ad7e533c3d97e5691480d8ec94" }, "downloads": -1, "filename": "pyramid_i18n_helper-0.2.14.tar.gz", "has_sig": false, "md5_digest": "43a013e464a20b0501876fd0e7b17b85", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6851, "upload_time": "2017-06-16T09:12:13", "url": "https://files.pythonhosted.org/packages/c0/c7/0ac357f6bf6af57a6a704709f92a365712adde43f1235b3dc69a90ee4bc9/pyramid_i18n_helper-0.2.14.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "f2957510935691b4665dd91f9f007ddb", "sha256": "5103ec98db695ca5d2cc65dfe3fd47a680d3ad33f7fc765a82dda134a73a6a59" }, "downloads": -1, "filename": "pyramid_i18n_helper-0.3.0.tar.gz", "has_sig": false, "md5_digest": "f2957510935691b4665dd91f9f007ddb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7236, "upload_time": "2017-06-16T09:45:07", "url": "https://files.pythonhosted.org/packages/0d/38/7071d773239e4a783757654261a353c1a45c20191822843e139c6626fecc/pyramid_i18n_helper-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "76deecb804e82cc1901d658cc8ea8910", "sha256": "2cc4817d9d093bb33c39d8dfaca64b03706a9907e53f7fdc91181d791f1015dd" }, "downloads": -1, "filename": "pyramid_i18n_helper-0.3.1.tar.gz", "has_sig": false, "md5_digest": "76deecb804e82cc1901d658cc8ea8910", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7308, "upload_time": "2017-06-16T09:52:22", "url": "https://files.pythonhosted.org/packages/fb/b2/7f75469cb394d9aa34ff4ac9c9c0d6fd1169b78a23458d2bf3beb40f7ac0/pyramid_i18n_helper-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "bdf57dc3de84c12bd43afe41b1be1564", "sha256": "e85a21261cd80a21549f281ac28e11a820800ef619d3db23dbb55f230f5a0b10" }, "downloads": -1, "filename": "pyramid_i18n_helper-0.3.2.tar.gz", "has_sig": false, "md5_digest": "bdf57dc3de84c12bd43afe41b1be1564", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7107, "upload_time": "2017-06-17T13:26:39", "url": "https://files.pythonhosted.org/packages/a2/c4/d75e2efd8a640b1894093d3b550f671a2211e9bcf7cddbfb07caf2bd63fa/pyramid_i18n_helper-0.3.2.tar.gz" } ], "0.3.3": [ { "comment_text": "", "digests": { "md5": "00165ebc8344cfa5a42509b239380c14", "sha256": "8ae8bc96627b59670e37d42eced11ff18223bca0121b170a4cf1d04fa804693e" }, "downloads": -1, "filename": "pyramid_i18n_helper-0.3.3.tar.gz", "has_sig": false, "md5_digest": "00165ebc8344cfa5a42509b239380c14", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7300, "upload_time": "2017-06-17T14:36:07", "url": "https://files.pythonhosted.org/packages/d7/14/0b1569c3d8a17581bb2e8c6914195f961c4709d5f536b5b2c4f28626a70a/pyramid_i18n_helper-0.3.3.tar.gz" } ], "0.3.4": [ { "comment_text": "", "digests": { "md5": "a40894f13555f76c983ca344f13de72c", "sha256": "f4d0cb74c8132e88224c52da892dd95f539ec72e172f2397e325cf105b42ff38" }, "downloads": -1, "filename": "pyramid_i18n_helper-0.3.4.tar.gz", "has_sig": false, "md5_digest": "a40894f13555f76c983ca344f13de72c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7806, "upload_time": "2017-07-05T11:02:59", "url": "https://files.pythonhosted.org/packages/08/f8/2b01f55d41725b85752e4697a7abbce5a0facceb97a56779d538e4ab828e/pyramid_i18n_helper-0.3.4.tar.gz" } ], "0.3.5": [ { "comment_text": "", "digests": { "md5": "4863216652bf68d9669a83e36d561d47", "sha256": "daaede421fc611c7e9f415d6e1345cb67e53a6aadcf29ccf01f4a8beaa27a86e" }, "downloads": -1, "filename": "pyramid_i18n_helper-0.3.5.tar.gz", "has_sig": false, "md5_digest": "4863216652bf68d9669a83e36d561d47", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7911, "upload_time": "2017-07-31T07:21:06", "url": "https://files.pythonhosted.org/packages/08/6d/6d7624972252a0b9333b8e06414763f3d5e3e3b7d1ce9ce8bbed9861279b/pyramid_i18n_helper-0.3.5.tar.gz" } ], "0.3.6": [ { "comment_text": "", "digests": { "md5": "7ee7202fb33774ddb2fd3331fe06f64c", "sha256": "ee30101a9d2506a12f13511b392fc98c24963f8e31f13b523c0c26f21fde2bf5" }, "downloads": -1, "filename": "pyramid_i18n_helper-0.3.6.tar.gz", "has_sig": false, "md5_digest": "7ee7202fb33774ddb2fd3331fe06f64c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7943, "upload_time": "2018-02-04T10:51:24", "url": "https://files.pythonhosted.org/packages/e6/e0/0bea593fbd146f5383c267ec64a357018f9bb782505b3eeb9a5805e3551f/pyramid_i18n_helper-0.3.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7ee7202fb33774ddb2fd3331fe06f64c", "sha256": "ee30101a9d2506a12f13511b392fc98c24963f8e31f13b523c0c26f21fde2bf5" }, "downloads": -1, "filename": "pyramid_i18n_helper-0.3.6.tar.gz", "has_sig": false, "md5_digest": "7ee7202fb33774ddb2fd3331fe06f64c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7943, "upload_time": "2018-02-04T10:51:24", "url": "https://files.pythonhosted.org/packages/e6/e0/0bea593fbd146f5383c267ec64a357018f9bb782505b3eeb9a5805e3551f/pyramid_i18n_helper-0.3.6.tar.gz" } ] }