-1

I would like to know how to translate the descriptions and tittles in CKAN.

I have been looking at an example in:

https://opendata.swiss/ and the code in https://github.com/opendata-swiss/ckanext-switzerland

and 

https://opentransportdata.swiss

in the extension I see  the files for every language:

https://github.com/opendata-swiss/ckanext-switzerland/tree/master/ckanext/switzerland/i18n

but I can't see the text for every dataset in several languages.

For instance:

https://opendata.swiss/en/dataset/bahnhofsliste-station-list

I think the name of this dataset was created in german, but we get the text in english too.

So the question is:

Where is defined the text for dataset description???

Thanks

davisoski
  • 727
  • 2
  • 14
  • 41

1 Answers1

1

This can be achieved using the multilingual extension.

If you take a closer look at the metadata of the example dataset you cited then you'll see that the relevant fields (e.g. description) are provided for multiple languages.

The *.po files in the i18n directory are for translating the static parts of the user interface, they are not used for strings that vary from one dataset to another.

Florian Brucker
  • 9,621
  • 3
  • 48
  • 81