I've been creating a number of very similar template tags for the admin
refactor and my own projects. Its currently a bit of a chore, even for
simple tags.
So I've come up with a first cut of a decorator which will turn a
function into a tag. Its used like so:
@simple_tag
Hi,
> your implementation for template tag don't have any plural
> support. You can probably add something like {% i18n ngettext(x,
> 'singular', 'plural') %}, patch is attached (untested).
Yep, plural support was missing up to now. I took your patch and
applied it and added some more stuff to s
On 30-09-2005, at 20:36, hugo wrote:
I did subclass the GNUTranslations, but actually if you want a db
store, it's easy to integrate later on. For now I think staying with
gettext and .po/.mo is the way to go - you can easily deliver .mo
files
with your django app to people that want to use yo