[Sugar-devel] [PATCH] sl#2815: Localization fixes.

Sascha Silbe silbe at activitycentral.com
Mon Jan 23 14:04:38 EST 2012

Excerpts from Ajay Garg's message of 2012-01-23 14:47:28 +0100:

> +
> +                # TRANS: do not translate the token "%(hour)d:%(min).2d". Only translate the token "remaining".
>                  secondary_text = _('%(hour)d:%(min).2d remaining') % \
>                          {'hour': remaining_hourpart, 'min': remaining_minpart}

Similar to your previous patch [1], gettext already flags this as a
format string. As this particular example is a bit more complicated, I'm
less averse to accepting the patch, but I'd still prefer a solution that
tells translators how to properly handle them without requiring us to
mention that for each and every format string in the code.


[1] message-id:1327326496-5397-1-git-send-email-ajay at activitycentral.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20120123/e75f9afc/attachment.pgp>

More information about the Sugar-devel mailing list