1👍
Call ugettext on the string literal before substituting variables.
message = ugettext("Some message %(id)s") % {'id':id}
Source:stackexchange.com
1👍
Call ugettext on the string literal before substituting variables.
message = ugettext("Some message %(id)s") % {'id':id}