Why does Askbot translate only partially?
 

I switched LANGUAGE_CODE from en to de. Now Askbot is half English and half German.

For example in the header the text

ALL UNANSWERED FOLLOWED

changed to

ALLE UNANSWERED BEOBACHTETE

Here ALL and FOLLOWED translate correctly, while UNANSWERED did not change at all.

The corresponding code in scope_nav.html looks like this:

    >{% trans %}ALL{% endtrans %}</a>
    >{{ settings.WORDS_UNANSWERED|escape }}</a>
    >{% trans %}FOLLOWED{% endtrans %}</a>

The definition of WORDS_UNANSWERED in conf/words.py reads:

settings.register(
    values.StringValue(
        WORDS,
        'WORDS_UNANSWERED',
        default = _('UNANSWERED'),
        description = _('UNANSWERED'),
    )
)

Question: Why is the UNANSWERED case handled different that the ALL and FOLLOWED case? Shouldn't the UNANSWERED be translated nevertheless?

UPDATE: Another local installation of Askbot translates perfectly fine. Could you think of any configuration error resulting in such a behavior?

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)
michas's avatar
46
michas
asked 11 years ago, updated 11 years ago

Comments

Hi, I am also encountering the problem you mentioned. How did you install the two versions? Is one via git and one via pip? I also can confirm many not translated strings in a pip-installation. Also on https://www.transifex.com/projects/p/askbot/ it says that German is 100% translated.

contradictioned's avatar contradictioned (11 years ago)

What "two versions" are you talking about? I installed askbot directly from the git repository. There is a correct translation available for "UNANSWERD", but for some reason it is not used.

michas's avatar michas (11 years ago)
see more comments