[sugar] [PATCH] Improve formatting of relative dates

Eben Eliason eben.eliason at gmail.com
Sat Apr 19 13:54:26 EDT 2008


>  +NOW = _('Seconds ago')
>
>  Translators may not be able to translate adequately from 'Seconds
>  ago'. Perhaps a translation comment may help here? Example from
>  misc.py:
>
>  # TRANS: Relative dates (eg. 1 month and 5 days).

What if we are explicit in the comment about the intended meaning of NOW, as in:
# TRANS: Indicating something that just happened; "just now", "right
now", "moments ago"

>  +AGO = _(' ago')
>  ...
>  +    return result + AGO
>
>  This will break in most languages other than english. Sayamindu, do
>  you have any idea about what can be done here?

Likewise:
# TRANS: Indicating time passed, eg (1 month, 5 days ago); "ago", "in
the past", "earlier"

Good points.  I'm certainly not sure how translations would work, but
this approach seemed the most appropriate for the english audience to
me. Is offering a few synonyms for the intended meaning appropriate in
a TRANS comment?

- Eben


More information about the Sugar mailing list