Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

c.resource field names, loaded as labels on templates. #185

Open
HilariousGil opened this issue Sep 23, 2020 · 1 comment
Open

c.resource field names, loaded as labels on templates. #185

HilariousGil opened this issue Sep 23, 2020 · 1 comment

Comments

@HilariousGil
Copy link

I was having some issues with rendering "Additional Info" fields in the resource_read page, and just decided to leave here my findings, since the same is happening in demo.ckan.org. (Only an issue with ckan instances using ckanext-dcat)

See the example of the field "created" for a resource in https://demo.ckan.org/

The happens because the render expects to access the field "res.created" but it's populated like "res.Created" (in english, but different for every language).
This happens because ckanext.dcat.translate_keys config defaults to True. Once I set it to False, it solved the issue.

Not sure if this is the intended behavior of the config, but I decided at least share this here.

@ccancellieri
Copy link

Related to:
#82

try setting:
ckanext.dcat.translate_keys = False

https://github.com/ckan/ckanext-dcat#translation-of-fields

MarkCalvert added a commit to dbca-wa/ckan-docker that referenced this issue May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants