This extension offers the following functionality:
- customized english and swedish translations for the dataset and resource templates
- re-ordered the default design of the dataset and resource templates
- "copy dataset" feature that enables faster creation of new datasets based on existing ones
- customized home page that contains GeoDirekt logo
- enriched dataset and resources with additional metadata fields
This extension is developed and compatible with CKAN version 2.8.5
To install ckanext-sokigo:
Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate
Install the ckanext-sokigo Python package into your virtual environment:
pip install -e ckanext-sokigo
Add
sokigo
to theckan.plugins
setting in your CKAN config file (by default the config file is located at/etc/ckan/default/production.ini
).Restart CKAN. For example if you've deployed CKAN with Apache on Ubuntu:
sudo service apache2 reload
No additional config settings are needed to use the sokigo extension
To install ckanext-sokigo for development, activate your CKAN virtualenv and do:
git clone https://github.com/sokigo/ckanext-sokigo.git cd ckanext-sokigo python setup.py develop pip install -r dev-requirements.txt
To run the tests, do:
nosetests --nologcapture --with-pylons=test.ini
To run the tests and produce a coverage report, first make sure you have
coverage installed in your virtualenv (pip install coverage
) then run:
nosetests --nologcapture --with-pylons=test.ini --with-coverage --cover-package=ckanext.sokigo --cover-inclusive --cover-erase --cover-tests
The English and Swedish translations for this extensions are located in: ckanext/sokigo/i18n/
In order to further enrich or update existing translations edit the ".po" catalog files. Below you can find a reference to the commands related to the translation:
To initialize new language type:
python setup.py init_catalog -l <LANG>
To update existing catalog type:
python setup.py update_catalog
To extract messages type:
python setup.py extract_messages
To compile the translations type:
python setup.py compile_catalog