{ "info": { "author": "Government of Canada", "author_email": "Michel.Gendron@statcan.gc.ca", "bugtrack_url": null, "classifiers": [], "description": "ckanext-fluent\n==============\n\nThis extension provides a way to store and return multilingul\nfields in CKAN datasets, resources, organizations and groups.\n\nAdd the `fluent` plugin to your ckan.plugins configuration\nsettings and use ckanext-scheming or a custom form plugin to\nuse the provided validators to store multilingual text in\nextra fields.\n\nThe easiest way to use fluent multilingual text fields is with\n[ckanext-scheming](https://github.com/open-data/ckanext-scheming/).\nAdd `ckanext.fluent:presets.json` to your scheming.presets\nconfiguration settings:\n\n```json\nscheming.presets = ckanext.scheming:presets.json\n ckanext.fluent:presets.json\n```\n\nA fluent multilingual field in a scheming schema\nwill look something like::\n\n```json\n{\n \"field_name\": \"books\",\n \"preset\": \"fluent_text\",\n \"label\": {\n \"en\": \"Books\",\n \"fr\": \"Livres\"\n },\n \"form_languages\": [\"en\", \"fr\"]\n}\n```\n\nThis new extra field \"books\" will appear as multiple fields in the\ndataset form, one for each language specified in `form_languages`\nby the [form snippet](ckanext/fluent/templates/scheming/form_snippets/fluent_text.html).\n\n![Example of fluent form snippet](docs/multilingual-form.png)\n\nWhen displayed, each language with text entered will appear separately\nby the\n[display snippet](ckanext/fluent/templates/scheming/display_snippets/fluent_text.html), eg.:\n\n![Example of fluent display snippet](docs/multilingual-display.png)\n\nWhen the dataset is accessed from the API the language values appear\nand are updated as an object, eg.:\n\n```json\n{\n \"...\": \"...\",\n \"books\": {\n \"en\": \"Franklin\",\n \"fr\": \"Benjamin\"\n },\n \"...\": \"...\"\n}\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": "", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "ckanext-fluent", "package_url": "https://pypi.org/project/ckanext-fluent/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/ckanext-fluent/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/ckanext-fluent/1.0.0/", "requires_dist": null, "requires_python": null, "summary": "Multilingual fields for CKAN", "version": "1.0.0" }, "last_serial": 1769043, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "4225f14fd95e9eb310d0f21741ca7141", "sha256": "f612d48db729281e500b70b392ec7c08205ed06ac7b935b150aceaea48d1db4c" }, "downloads": -1, "filename": "ckanext-fluent-1.0.0.tar.gz", "has_sig": false, "md5_digest": "4225f14fd95e9eb310d0f21741ca7141", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6880, "upload_time": "2015-10-14T19:40:35", "url": "https://files.pythonhosted.org/packages/6d/8a/bf6c92686ec39b70b20021a76fa43ef084fc7587816a75590ef42ed9b455/ckanext-fluent-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4225f14fd95e9eb310d0f21741ca7141", "sha256": "f612d48db729281e500b70b392ec7c08205ed06ac7b935b150aceaea48d1db4c" }, "downloads": -1, "filename": "ckanext-fluent-1.0.0.tar.gz", "has_sig": false, "md5_digest": "4225f14fd95e9eb310d0f21741ca7141", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6880, "upload_time": "2015-10-14T19:40:35", "url": "https://files.pythonhosted.org/packages/6d/8a/bf6c92686ec39b70b20021a76fa43ef084fc7587816a75590ef42ed9b455/ckanext-fluent-1.0.0.tar.gz" } ] }