ckanext-duo
Translate dataset/organization/group titles and descriptions using custom <field>_<locale> fields.
Requirements
Compatibility with core CKAN versions:
| CKAN version | Compatible? |
|---|---|
| 2.9 | yes |
Installation
To install ckanext-duo:
-
Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate
-
Clone the source and install it on the virtualenv
pip install ckanext-duo
-
Add
duo duo_dataset duo_organization duo_groupto theckan.pluginssetting in your CKAN config file. -
Make sure you have non-empty
ckan.locale_defaultandckan.locales_offeredoptions inside CKAN config file. -
Restart CKAN.
How to use
Depending on entity that must be translated(group, dataset, organization), one must update corresponding metadata schema. Following fields must be added:
- organization/group
title_<locale>(ex.,title_ar)description_<locale>(ex.,description_ar)
- dataset
title_<locale>(ex.,title_ar)notes_<locale>(ex.,notes_ar)
If you are using ckanext-scheming, define field like this::
...
{
"field_name": "title_ar",
"label": "Arabic Name",
"validators": "if_empty_same_as(title)"
},
...
Or you can define custom fields using low-level IDatasetForm/IGroupForm/IOrganizationForm.
If none of above is possible, provide an extra field via CKAN extras(key/value pairs of fields in the very bottom of dataset/group/organization form).
Metadata
Release files for ckanext-duo 0.1.2.post1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ckanext_duo-0.1.2.post1.tar.gz | 20.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ckanext_duo-0.1.2.post1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 42.7 kB
Release files / ckanext_duo-0.1.2.post1.tar.gz
| Download URL | ckanext_duo-0.1.2.post1.tar.gz |
|---|---|
| Size | 20.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e03c91b3cd1b46dfbe9dd834899269b47d3d8eef26a5d1ae560a2c4b23e8df61
|
|
BLAKE2b-256 checksum How to use checksums |
c2a6df79c50c6138d22e403ee72dbf3540c465214a18395af3e02199c39587f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / ckanext_duo-0.1.2.post1-py3-none-any.whl
| Download URL | ckanext_duo-0.1.2.post1-py3-none-any.whl |
|---|---|
| Size | 22.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7ddcc34e6cda4a4b292ca8c7f3cc4e864cd132b079d29f96b46646f91860a7c3
|
|
BLAKE2b-256 checksum How to use checksums |
fa69279d2701154a41287a92bf7d05125e94a73371bfa72850a76a65b7eb8d6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Security for ckanext-duo 0.1.2.post1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.