How do get python to output _("95% confidence interval") correctly?

124 Views Asked by At

I have a very frustrating issue. I need the string "95% confidence interval" to appear on in a web view. And I need to have it translatable (using babel) so I'm using it like this:

_("95% confidence interval")

When I do this it treats % c as %c and prevents my .po file from compiling. When I type it as:

_("95%% confidence interval")

to escape the precent sign it shows 2 percent signs on my web view. How do I type out this string so that it works?

1

There are 1 best solutions below

0
On

Have you tried

_("95\% confidence interval")