{ "info": { "author": "Mohammed Hammoud", "author_email": "mohammed@iktw.se", "bugtrack_url": null, "classifiers": [], "description": "# django_i18nize\nDjango i18nize extends the i18nize python client. This package contains template tag for rendering translation and management command for fetching translations.\n\n## Links\n* *Website:* http://www.i18nize.com\n* *Python client*: https://github.com/iktw/i18nize\n* *JavaScript client*: https://github.com/iktw/i18nize-javascript\n\n\n## Installation\n```pip install django_i18nize```\n\n\n## Example configuration (settings.py)\n```python\nDJANGO_I18NIZE_CONFIG = {\n \"project_id\": \"852c3729-6098-410e-ad9e-9783958bbc2d\",\n \"live\": False,\n 'destination_dir': os.path.realpath(os.path.join(REPO_DIR, 'staticfiles', 'locale'))\n}\n```\n\n### Example 1: Template tag with simple translations (Uses the django language)\n```html\n

\n {% i18n_switch \"hello\" %}\n

\n```\n\n### Example 2: Template tag example with custom language:\n```html\n

\n {% i18n_switch \"hello\" \"sv\" %}\n

\n```\n\n### Example 3: Template tag example with values\n\n#### Passed view context:\n```python\n\tcontext = {\n\t\t'values': {\n\t\t\t'name': 'John Doe'\n\t\t}\n\t}\n\n```\n\n#### Your translation at www.i18nize.com:\n`\"Hello {{name}}!\"`\n\n#### Inside your django template:\n```html\n

\n {% i18n_switch \"greet_person\" \"en\" values %}\n

\n```\n\n### Example 4: Usage within your python code\n```python\nfrom django_i18nize.utils import get_translation as _\n\n# Simple translation (Uses the django language)\ntext = _('hello')\n\n# Translation with custom language\ntext = _('hello', language='sv')\n\n# Translation with custom values, remember that your key should be injected within your translation.\n# For example, your translated key at www.i18nize.com should be \"Hello {{name}}!\"\ntext = _('greeting', values={\"name\": \"John Doe\"})\n\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/iktw/i18nize-django", "keywords": null, "license": "MIT licence, see LICENCE.txt", "maintainer": null, "maintainer_email": null, "name": "django_i18nize", "package_url": "https://pypi.org/project/django_i18nize/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django_i18nize/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/iktw/i18nize-django" }, "release_url": "https://pypi.org/project/django_i18nize/0.0.2/", "requires_dist": null, "requires_python": null, "summary": "Django i18nize extends the i18nize python client. Template tag for rendering translation and Management command for fetching translations is added.", "version": "0.0.2" }, "last_serial": 2698700, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "100448b35bdb27f3894f41a2d76ba1ef", "sha256": "6e29a37dddab4dbd3ba67d6cbd176bc3ef37ce47b1ad1d1674f15ef833a7f56a" }, "downloads": -1, "filename": "django_i18nize-0.0.1.tar.gz", "has_sig": false, "md5_digest": "100448b35bdb27f3894f41a2d76ba1ef", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3282, "upload_time": "2017-01-19T09:36:38", "url": "https://files.pythonhosted.org/packages/dd/f1/18c35cf84f88f4fbd9ee6087214357bc298534b3ea265f414a00420e58f3/django_i18nize-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "602249da719a1b02109102fc628fd8c5", "sha256": "1a0fe0703239c9b0384e5ac3295b7170d5167b3aa1f85ef2ed9fbe038b56f809" }, "downloads": -1, "filename": "django_i18nize-0.0.2.tar.gz", "has_sig": false, "md5_digest": "602249da719a1b02109102fc628fd8c5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3292, "upload_time": "2017-03-11T07:24:15", "url": "https://files.pythonhosted.org/packages/6f/87/6a911c583f5f3b641c1fe8fa95cf222991f037c261abe66f45384a597e1b/django_i18nize-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "602249da719a1b02109102fc628fd8c5", "sha256": "1a0fe0703239c9b0384e5ac3295b7170d5167b3aa1f85ef2ed9fbe038b56f809" }, "downloads": -1, "filename": "django_i18nize-0.0.2.tar.gz", "has_sig": false, "md5_digest": "602249da719a1b02109102fc628fd8c5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3292, "upload_time": "2017-03-11T07:24:15", "url": "https://files.pythonhosted.org/packages/6f/87/6a911c583f5f3b641c1fe8fa95cf222991f037c261abe66f45384a597e1b/django_i18nize-0.0.2.tar.gz" } ] }