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 <
snisa.balakrish...@gmail.com> 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 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.
>
>

-- 
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