I tried something like:
text = self.tr("%1...").arg(str(format).upper())
but I get the error \'str\' object has no attribute \'arg\