I use gettext to translate my user interface. I'd like to write symbol % as part of a UI caption in a string, but since it has a special meaning, does not works as expected. How can I escape percent symbols?
views:
27answers:
2
                
                A: 
                
                
              According to the manual a backslash is the escape code, so you should be able to write \% for a literal percent sign.
                  Rudu
                   2010-09-16 15:38:32
                
              I get `django.po:3645:9: invalid control sequence` error then.
                  Török Gábor
                   2010-09-16 16:15:02
                If I'm right, the same rules apply here as in `sprintf`-like string formatting.
                  Török Gábor
                   2010-09-17 07:25:30