On Mon, May 11, 2009 at 10:11 AM, Bastien <bastien.roche...@gmail.com> wrote:
>
> Hi,
>
> I'm sure this is in the doc but I can't find it. Is there a way to
> change a word's place in a sentence according to the language setting?
>
> What I need is to translate the term 'ago' from english to a few other
> languages that place it in front of the time, an example will explain
> it better:
>
> english : 'user x commented 18 minutes ago' would translate to spanish
> as :
> 'usuario x ha comentado *hace* 18 minutos'
>
> and of course I would like to keep using the '18 minutes' part as a
> variable so I can't just translate the whole sentence.

Read http://docs.djangoproject.com/en/dev/topics/i18n/#standard-translation

Good luck

-- 
Ramiro Morales
http://rmorales.net

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to