Something like this?

_str = _('Problem with data of Waybill')
_str2 = "%s: %s \n" % ( the_waybill, str( errorObj.code ) )
self.ErrorMessages = "%s %s" % ( _str, _str2)

(i split into two parts to make it easier on the eyes)

Cal

On Mon, Jul 18, 2011 at 5:59 PM, NISA BALAKRISHNAN <
[email protected]> wrote:

> what is the correct syntax for this:
> self.ErrorMessages = _('Problem with data of Waybill') '%s: %s \n' %
> ( the_waybill, str( errorObj.code ) )
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

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

Reply via email to