Ask Your Question
0

Translation doesn't work

asked 2012-12-12 15:20:18 -0500

arturdaz's avatar

updated 2012-12-12 15:30:18 -0500

I'm translating askbot to pt_BR and I can't translate that (in django.po):

#: forms.py:188
#, python-format
msgid ""
"Tags are short keywords, with no spaces within. Up to %(max_tags)d tag can "
"be used."
msgid_plural ""
"Tags are short keywords, with no spaces within. Up to %(max_tags)d tags can "
"be used."
msgstr[0] ""
"Tags são palavras-chave, sem espaços. Até %(max_tags)d tags podem ser usadas."
msgstr[1] ""
"Tags são palavras-chave curtas, sem espaços. Até %(max_tags)d tags podem ser usadas."

What I am doing wrong?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2012-12-12 15:31:16 -0500

Evgeny's avatar

When you run compilemessages command there could be compilation errors.

If there are no errors, it might be possible that the key phrase is actually not present anywhere in the templates, so that translation won't show.

You might need to rebuild the messages file (django docs explain how to do that).

edit flag offensive delete link more

Comments

I've also had problems with translation. Problem are plural strings which are not getting translated. I've solved it by manually changing text in templates and code. I know it's crappy way to fix it but allot of stuff is left untranslated after you translate .po file. Half translated website looks bad and unprofessional so I had to do it.

Dario's avatar Dario  ( 2012-12-20 15:50:49 -0500 )edit

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2012-12-12 15:20:18 -0500

Seen: 28,271 times

Last updated: Dec 12 '12