{ "info": { "author": "Andrew Cordery", "author_email": "cordery@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Framework :: Django", "Framework :: Django :: 1.11", "Framework :: Django :: 2.0", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6" ], "description": "=============================\nDjango Languages Plus\n=============================\n\n.. image:: https://badge.fury.io/py/django-languages-plus.svg\n :target: https://badge.fury.io/py/django-languages-plus\n\n.. image:: https://travis-ci.org/cordery/django-languages-plus.svg?branch=master\n :target: https://travis-ci.org/cordery/django-languages-plus\n\n.. image:: https://codecov.io/gh/cordery/django-languages-plus/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/cordery/django-languages-plus\n\n\n\ndjango-languages-plus provides models and fixtures for working with both common languages and 'culture codes' or locale codes, like pt-BR.\n\nNote that this is only a small (but popular) subset of all living languages, and is not even a comprehensive set of the ISO 639 languages. It does however include the endonym/autonym/exonym.\n\nThe Language model contains all ISO 639-1 languages and related information from http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes\n\nThe model provides the following fields (original wikipedia.org column name in parentheses).\n\n* name_en (ISO Language Name)\n* name_native (Native Name)\n* iso_639_1 (639-1)\n* iso_639_2T = (639-2/T)\n* iso_639_2B = (639-2/B)\n* iso_639_3 = (639-3)\n* family = (Language Family)\n* countries_spoken\n\n\n------------\nInstallation\n------------\n\n::\n\n pip install django-languages-plus\n\n\n------------\nUsage\n------------\n\n1. Add ``languages_plus`` to your INSTALLED_APPS\n\n2. Migrate your database and load the language data fixture::\n\n python manage.py migrate\n python manage.py loaddata languages_data.json.gz\n\n3. In your code use::\n\n from languages_plus.models import Language\n lang = Language.objects.get(iso_639_1='en')\n\n---------------------------------------\nGenerating Culture Codes (ex: pt_BR)\n---------------------------------------\ndjango-countries-plus(https://pypi.python.org/pypi/django-countries-plus) is now an explicit requirement. After installing both packages you can run the following command once to associate the two datasets and generate a list of culture codes (pt_BR for example)::\n\n from languages_plus.utils import associate_countries_and_languages\n associate_countries_and_languages()\n\n---------------------------------------\nRequirements\n---------------------------------------\ndjango-countries-plus\n\nDjango: Tested for 1.11, 2.0. Should also work on most previous versions of Django 1.7+.\n\n\n\nRunning Tests\n-------------\n\nDoes the code actually work?\n\n::\n\n source /bin/activate\n (myenv) $ pip install tox\n (myenv) $ tox\n\nCredits\n-------\n\nTools used in rendering this package:\n\n* Cookiecutter_\n* `cookiecutter-djangopackage`_\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage\n\n\n# Changelog\nAll notable changes to this project will be documented in this file.\n\nThe format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)\nand this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).\n\n## [Unreleased]\n\n## [1.0.0]\n# Added\n- Added support and tests for Django 2.0 (thanks decibyte)\n- Improved associate_countries_and_languages's handling of countries with no languages (thanks decibyte)\n\n### Changed\n- Dropped Language.name_other (unused)\n- Dropped Language.iso_639_6 (Proposal was withdrawn [https://www.iso.org/standard/43380.html])\n- The fixture is now called languages_data.json.gz\n- The fixture is no longer loaded by migration and must be manually loaded\n- Dropped test support for Django <1.11\n- Cleaned up project and documentation\n\n\n### Fixed\n- Fixed issue with Country().get_all_languages\n- Fixed issue with CultureCode.objects.filter_by_codes\n\n## [0.1.6] - 2015-02-22\n### Added\n- Added django-countries-plus as an explicit requirement\n\n## [0.1.5] - 2015-01-11\n\n### Changed\n- Returned to the use of initial_data.\n\n### Fixed\nEliminated warning for renaming get_query_set to get_queryset.\n\n## [0.1.4] - 2015-01-10\n### Fixed\n- Corrected version number on setup.py\n\n## [0.1.3] - 2015-01-10\n### Added\n- Added Python 3 support.\n- Added basic tests for models.\n- Added countries plus as requirement.\n\n### Changed\n- Changed the way fixtures auto loaded\n\n## [0.1.2] - 2014-11-07\n### Fixed\n- Fixed gzipped fixture loading.\n\n## [0.1.1] - 2014-11-05\n### Added\n- Added missing initial data fixture.\n\n## [0.1.0] - 2014-05-21\n### Added\n- Initial release.\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/cordery/django-languages-plus", "keywords": "django-languages-plus", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-languages-plus", "package_url": "https://pypi.org/project/django-languages-plus/", "platform": "", "project_url": "https://pypi.org/project/django-languages-plus/", "project_urls": { "Homepage": "https://github.com/cordery/django-languages-plus" }, "release_url": "https://pypi.org/project/django-languages-plus/1.0.0/", "requires_dist": null, "requires_python": "", "summary": "A django model & fixture containing common languages and culture codes", "version": "1.0.0" }, "last_serial": 3415679, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "f8b4fb1a58fbee515d2eac0aad40ae79", "sha256": "1685b9d5b9216ba2948ce5f50550da28e9c26d13e602f6f5ff3c860760875c5d" }, "downloads": -1, "filename": "django-languages-plus-0.1.0.zip", "has_sig": false, "md5_digest": "f8b4fb1a58fbee515d2eac0aad40ae79", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11456, "upload_time": "2014-10-13T21:52:04", "url": "https://files.pythonhosted.org/packages/cb/16/ca39d1759a7f2b8341e14be70c6fbc4c43602bc3c05393f6766a170924b0/django-languages-plus-0.1.0.zip" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "102f889a8342956610736bde1ad55955", "sha256": "7695f76b68b756ec0bd15e2fd2b70b546350d76926fc7c63abe71d21129376cb" }, "downloads": -1, "filename": "django-languages-plus-0.1.1.zip", "has_sig": false, "md5_digest": "102f889a8342956610736bde1ad55955", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28661, "upload_time": "2014-11-05T22:13:03", "url": "https://files.pythonhosted.org/packages/c7/b3/e7a07a8b12d9ccdeffe97eba8c384ff020a404132dd0b83e3fe8f9de6b55/django-languages-plus-0.1.1.zip" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "72c4eaefcff778a2d1257077166f0457", "sha256": "3e052174741f8ac5f669a6aa7d7222e7181a0d836d9397708ce456c2308fa383" }, "downloads": -1, "filename": "django-languages-plus-0.1.2.zip", "has_sig": false, "md5_digest": "72c4eaefcff778a2d1257077166f0457", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28695, "upload_time": "2014-11-07T16:03:54", "url": "https://files.pythonhosted.org/packages/ef/ec/23bfbe3ba24e7e9e7a9d670f38cb0f15b13696197abb3bd77fc57345d7b7/django-languages-plus-0.1.2.zip" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "04593f97b73ef5e04c902f88716002c0", "sha256": "589b422a046e70224889dad606b7f7ae9010d39fbadac8239c991c7b14a13ae1" }, "downloads": -1, "filename": "django-languages-plus-0.1.5.zip", "has_sig": false, "md5_digest": "04593f97b73ef5e04c902f88716002c0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30937, "upload_time": "2015-01-13T18:10:27", "url": "https://files.pythonhosted.org/packages/08/d9/b3908ed39e9d552561c4a09eba8fa82ca8f89a11e1415983a86fb2b9ca93/django-languages-plus-0.1.5.zip" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "8b6200abc8c051b24a8d581cefb4cb76", "sha256": "b4f6084cb2d7143382e1d245c04b0806323567eb56851e82fe140301a194f75b" }, "downloads": -1, "filename": "django_languages_plus-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8b6200abc8c051b24a8d581cefb4cb76", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 20405, "upload_time": "2017-12-14T06:36:28", "url": "https://files.pythonhosted.org/packages/78/34/b555e4b51b94e82bb8e494538492d0453e0ac810beda1fe02a197139577c/django_languages_plus-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b8bc539167226d523dc55d52f8e32b44", "sha256": "0b2ea00cd4373eb3bf21f0ccec42273560331d59e4b8c16c6c6211dd45ece565" }, "downloads": -1, "filename": "django-languages-plus-1.0.0.tar.gz", "has_sig": false, "md5_digest": "b8bc539167226d523dc55d52f8e32b44", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20859, "upload_time": "2017-12-14T06:36:26", "url": "https://files.pythonhosted.org/packages/14/12/fd98f74b369e9f5ccdcd6a32e74e02ce182468e03c1dbea69cefd3e3b0a3/django-languages-plus-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8b6200abc8c051b24a8d581cefb4cb76", "sha256": "b4f6084cb2d7143382e1d245c04b0806323567eb56851e82fe140301a194f75b" }, "downloads": -1, "filename": "django_languages_plus-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8b6200abc8c051b24a8d581cefb4cb76", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 20405, "upload_time": "2017-12-14T06:36:28", "url": "https://files.pythonhosted.org/packages/78/34/b555e4b51b94e82bb8e494538492d0453e0ac810beda1fe02a197139577c/django_languages_plus-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b8bc539167226d523dc55d52f8e32b44", "sha256": "0b2ea00cd4373eb3bf21f0ccec42273560331d59e4b8c16c6c6211dd45ece565" }, "downloads": -1, "filename": "django-languages-plus-1.0.0.tar.gz", "has_sig": false, "md5_digest": "b8bc539167226d523dc55d52f8e32b44", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20859, "upload_time": "2017-12-14T06:36:26", "url": "https://files.pythonhosted.org/packages/14/12/fd98f74b369e9f5ccdcd6a32e74e02ce182468e03c1dbea69cefd3e3b0a3/django-languages-plus-1.0.0.tar.gz" } ] }