I try to localize OSQA (django + python) for russian language. A lot of string I can translate with locale-folder. But in OSQA some string was hard-coded (put in code in simple text).
I try simply replace english text to russian, but get an error.
For example:
class WordpressAuthContext(ConsumerTemplateContext):
mode = 'SMALLICON'
type = 'SIMPLE_FORM'
simple_form_context = {
'your_what': 'Wordpress blog name'
}
weight = 270
human_name = 'Wordpress'
icon = '/media/images/openid/wordpress.png'
In this code I need to replace 'Wordpress blog name' on russian text.
I try replace english characters with unicode \uXXXX
characters, but on web-page I will see these characters in original view \uXXXX
.
Then I try this code:
'your_what': 'Wordpress blog name'.encode('utf-8')
And it's not work too.
What can I try?