[Sugar-devel] [PATCH v6 sugar] Downgrading activities not allowed. (SL #2164)

Aleksey Lim alsroot at member.fsf.org
Sun Oct 24 12:27:37 EDT 2010


On Sun, Oct 24, 2010 at 04:23:22PM +0000, Aleksey Lim wrote:
> On Sun, Oct 24, 2010 at 12:21:13AM +0530, anubhav at seeta.in wrote:
 
> > +    alert.props.title = _('Older Version Of ' + bundle.get_name() \
> > +                           + ' Activity')
> > +    alert.props.msg = _('Do you want to downgrade to version ' + \
> > +                         str(bundle.get_activity_version()) + ' ?')
> this usage of _() will break translation, text in _() should be a static
> string, better to use something like:
> 
>   alert.props.title = _('Older Version Of %(bundle_name)s Activity') % bundle.get_name()

oops, sorry

    alert.props.title = _('Older Version Of %(bundle_name)s Activity') % {'bundle_name': bundle.get_name()}

-- 
Aleksey


More information about the Sugar-devel mailing list