معرفی شرکت ها


ckanext-fluent-1.0.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Multilingual fields for CKAN
ویژگی مقدار
سیستم عامل -
نام فایل ckanext-fluent-1.0.0
نام ckanext-fluent
نسخه کتابخانه 1.0.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Government of Canada
ایمیل نویسنده Michel.Gendron@statcan.gc.ca
آدرس صفحه اصلی UNKNOWN
آدرس اینترنتی https://pypi.org/project/ckanext-fluent/
مجوز MIT
ckanext-fluent ============== This extension provides a way to store and return multilingul fields in CKAN datasets, resources, organizations and groups. Add the `fluent` plugin to your ckan.plugins configuration settings and use ckanext-scheming or a custom form plugin to use the provided validators to store multilingual text in extra fields. The easiest way to use fluent multilingual text fields is with [ckanext-scheming](https://github.com/open-data/ckanext-scheming/). Add `ckanext.fluent:presets.json` to your scheming.presets configuration settings: ```json scheming.presets = ckanext.scheming:presets.json ckanext.fluent:presets.json ``` A fluent multilingual field in a scheming schema will look something like:: ```json { "field_name": "books", "preset": "fluent_text", "label": { "en": "Books", "fr": "Livres" }, "form_languages": ["en", "fr"] } ``` This new extra field "books" will appear as multiple fields in the dataset form, one for each language specified in `form_languages` by the [form snippet](ckanext/fluent/templates/scheming/form_snippets/fluent_text.html). ![Example of fluent form snippet](docs/multilingual-form.png) When displayed, each language with text entered will appear separately by the [display snippet](ckanext/fluent/templates/scheming/display_snippets/fluent_text.html), eg.: ![Example of fluent display snippet](docs/multilingual-display.png) When the dataset is accessed from the API the language values appear and are updated as an object, eg.: ```json { "...": "...", "books": { "en": "Franklin", "fr": "Benjamin" }, "...": "..." }


نحوه نصب


نصب پکیج whl ckanext-fluent-1.0.0:

    pip install ckanext-fluent-1.0.0.whl


نصب پکیج tar.gz ckanext-fluent-1.0.0:

    pip install ckanext-fluent-1.0.0.tar.gz