[ckan-dev] Solution: key/value resource translations
Vitor Baptista
vitor at vitorbaptista.com
Tue Mar 18 13:53:02 UTC 2014
Hi Isabel,
Nice! Could you submit a pull request for this issue? It's easier to keep
track, and we (as the core team) go through them all twice per week, so
you'll get faster feedback.
Cheers,
2014-03-18 10:35 GMT-03:00 Isabel Ruiz <isaruizmellado at gmail.com>:
>
> Hi everyone!
>
> I have CKAN 2.0
>
> I have detected this on resource details page (file:
> /package/resource_read.html):
>
> If you click on "Aditional Information / Show More" link, CKAN shows
> key/value pairs from resource, this is because there is a for loop into
> resource_read.html file that shows them, but texts never is translated.
> This is because it has not correct tags in resource_read.html file.
>
> To solve this we have to replace in resoucr_read.html line:
>
> <tr class="toggle-more"><th scope="row">{{ key }}</th><td>{{
> value }}</td></tr>
> with:
> <tr class="toggle-more"><th scope="row">{{ _(key) }}</th><td>{{
> _(value) }}</td></tr>
>
> and write translations keys and values on translation file.
>
> --
> Isabel M. Ruiz Mellado
> http://about.me/isabelruiz
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
>
--
Vítor Baptista
Developer | http://vitorbaptista.com |
LinkedIn<http://www.linkedin.com/in/vitorbaptista>|
@vitorbaptista <http://twitter.com/vitorbaptista>
The Open Knowledge Foundation <http://okfn.org>
*Empowering through Open Knowledge*
http://okfn.org/ | @okfn <http://twitter.com/okfn> | OKF on
Facebook<https://www.facebook.com/OKFNetwork> |
Blog <http://blog.okfn.org/> | Newsletter<http://okfn.org/about/newsletter/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140318/dd5c2066/attachment-0003.html>
More information about the ckan-dev
mailing list