First time here? Check out the FAQ!

Revision history  [back]

Hi, I'm trying to use Askbot in french and I have problems with the livesearch default text. The text translated in lines 133-135 in the djangojs.po file isn't used:

#: media/js/live_search.js:313
msgid "search or ask your question"
msgstr "rechercher ou poser votre question"

So I should I've prompted in the input:"rechercher ou poser votre question", but the text shown is "search or poser votre question" which is a concatenation done in livesearch.js in lines 313-321

var InputToolTip = function() {
    WrappedElement.call(this);
    this._promptText = interpolate(
    gettext('search or %(ask_your_question)s'),
    {'ask_your_question': askbot['messages']['askYourQuestion'].toLowerCase() },
    true
    );
};
inherits(InputToolTip, WrappedElement);

This javascript code is using a translation made in lines 123-125 in the djangojs.po file:

#: media/js/live_search.js:218
msgid "Ask Your Question"
msgstr "Poser votre question"

The only way I found to get the correct translation is to change the var InputToolTip function and then regenerate the translations files.

Hi, I'm trying to use Askbot in french and I have problems problms with the livesearch default text. The text translated in lines 133-135 133-135 in the djangojs.po djangojs.po file isn't used:

#: media/js/live_search.js:313
~~~

: media/js/live_search.js:313

msgid "search or ask your question" msgstr "rechercher ou poser votre question"

So I should I've prompted in the input:"rechercher ou poser votre question", but the text shown is "search or poser votre question" which is a concatenation done in livesearch.js in lines 313-321~~~

var InputToolTip = function() {
    WrappedElement.call(this);
    this._promptText = interpolate(
    gettext('search or %(ask_your_question)s'),
    {'ask_your_question': askbot['messages']['askYourQuestion'].toLowerCase() },
    true
    );
};
inherits(InputToolTip, WrappedElement);

This javascript code is using a translation made in lines 123-125 in the djangojs.po file:

#: media/js/live_search.js:218
msgid "Ask Your Question"
msgstr "Poser votre question"

The only way I found to get the correct translation is to change the var InputToolTip function and then regenerate the translations files.