First time here? Check out the FAQ!
0

Translation doesn't work

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?

arturdaz's avatar
21
arturdaz
asked 2012-12-12 15:20:18 -0500, updated 2012-12-12 15:30:18 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

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).

Evgeny's avatar
13.2k
Evgeny
answered 2012-12-12 15:31:16 -0500
edit flag offensive 0 remove flag delete link

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
add a comment see more comments