W-Mark Kubacki schrieb:
> Diez B. Roggisch wrote:
>> 3) collect strings from JS-files and create message-catalogs for JS
>> which are automatically included using a standard-widget.
>
> Why using message catalogs if gettext does already that job? Create a
> controller
> which will serve the JS-file as plaintext, utilizing gettext. That way you can
> still utilize TG's means as they already are. (Remember to set "Content-Type:
> text/javascript".)
How's that supposed to work? _('foo') needs to get interpreted in the
language the file is written in. So how do you utilize python's gettext
in a JS file?
Preprocessing could be done but must be implemented but is kinda flaky
without a proper JS parser.
And you'd not be allowed to refer to static JS directly. Maybe cherrypy
allows for a generalized filtering scheme based on content type, I lack
knowledge of it's capabilities there.
Diez
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---