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?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
arturdaz's avatar
21
arturdaz
asked 12 years ago, updated 12 years ago

Comments

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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 12 years ago
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 (12 years ago)
see more comments