Ask Your Question

Some strings can not be translated

asked 2012-03-09 17:19:28 -0600

Vlad's avatar

updated 2012-03-09 17:20:18 -0600

Hi all!

I'm trying to translate into russian some Askbot's interface that has not been translated yet.

But on my way I found some strings that I cannot find in .po files (even if I'm trying makemessages from scratch).

1) 'sign out' link at top bar

2) 'member since' in user profile

image description

3) big button 'ASK YOUR QUESTION' 'post

image description

4) 'post a comment' link on question page

image description

5) Asked, Seen and Last updated strings from the sidebar.

image description

Could anyone suggest how can I translate these strings? Any help would be appreciated.

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2012-04-04 13:20:32 -0600

zaf's avatar

Try following these instructions, maybe it helps. I also had similar problems, most of which I solved the way it is explained there.

edit flag offensive delete link more


When I run cd askbot python ../ jinja2_makemessages -l ru -e html,py,txt

as described at , an empty ru/LC_MESSAGES catalog is being created in askbot/locale catalog.

And I'd wonder if any .po file would be created, because all askbot code resides in site-packages.

Vlad's avatar Vlad  ( 2012-04-15 14:44:30 -0600 )edit

answered 2012-04-04 13:51:46 -0600

Olloff's avatar

updated 2012-04-04 14:00:20 -0600

Agreed with @zaf, you need to extract message string from your template and translate them manually or merge with existing translation.

Around a week ago I translated on 'ru' all strings of django.pot that was changed since last official translation update. You can find it here.

I need to aware you that .pot file is not very clean - over an thousand obsolete words (few hundred strings). Along with original translate there was annoying bug - you need to delete string #7172 ('#, python-format') to avoid compilation issues.

Hope it can be helpful for you.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-03-09 17:19:28 -0600

Seen: 471 times

Last updated: Apr 04 '12