[ckan-dev] genshi.NewTextTemplate extracting translations
Toby Dacre
toby.okfn at gmail.com
Thu May 24 10:41:28 UTC 2012
On 24 May 2012 11:36, Ross Jones <ross.jones at okfn.org> wrote:
>
> The email templates are already .txt, currently without a .html rendering
> of the email. They're only in organizations and ckanext-dgu as far as I am
> aware.
>
that sounds good to me. do you think it is ok for me to make that an
enforced rule
is dgu dreads domain?
>
> The other rendering if currently the unimplemented n3 rendering of the
> rdf, which we could kill until we are ready to implement properly.
>
> Ross
>
>
>
> On 24 May 2012, at 11:30, Toby Dacre wrote:
>
> On 24 May 2012 11:26, Ross Jones <ross.jones at okfn.org> wrote:
>
>> Afraid not, some of the future RDF serializations don't want Genshi to
>> think it is an XML doc.
>>
>> At present the only places it is used is controller/package.py and email
>> templates elsewhere, but that's only because I haven't got around to using
>> render_text() yet.
>>
>
> this is in core? do you know which templates they are and would changing
> them to .txt be a major problem? I could do a nasty look for the .txt and
> if you can't find it look for a .html - sometimes I have no morality when I
> code
>
> I'd really like to have them use .txt we could then kill off the whole
> render_text() too
>
> Toby
>
>>
>> Ross
>>
>>
>> On 24 May 2012, at 11:22, Toby Dacre wrote:
>>
>> > Hi,
>> >
>> > We have some users of NewTextTemplates, I know that Ross has been using
>> these.
>> >
>> > Do we have any specific ways we are doing this? Looking at setup.py
>> they should (at least in core) all use .txt as an extension to have their
>> content picked up to be translated.
>> >
>> > Is this something that we can/should expect across all extensions?
>> > If all templates of type NewTextTemplate are .txt files this would make
>> things easier for me and would seem to be a good thing to enforce but I'm
>> as ever keen not to break too much
>> >
>> > Additionally we try to extract from ckan/templates/home/language.js
>> which doesn't exist (see setup.py). Should I remove this?
>> >
>> > Toby
>> > _______________________________________________
>> > ckan-dev mailing list
>> > ckan-dev at lists.okfn.org
>> > http://lists.okfn.org/mailman/listinfo/ckan-dev
>>
>>
>> _______________________________________________
>> ckan-dev mailing list
>> ckan-dev at lists.okfn.org
>> http://lists.okfn.org/mailman/listinfo/ckan-dev
>>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
>
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20120524/399a360f/attachment-0001.html>
More information about the ckan-dev
mailing list