First time here? Check out the FAQ!

Revision history  [back]

Federico, looks like you'll need to modify skin template askbot/skins/default/templates/questions.html

<h2><a title="{{question.summary}}" 
    href="{% url question id=question.id%}{{question.title|slugify}}">
    {{question.title}}</a></h2>

to something like:

<h2>
    <a href="{% url question id=question.id %}">
        Problem {{question.id}}: {{question.title}}
    </a>
</h2>
<div class="question-body">{{question.html|safe}}</div>

The main thing is to display .html field of the question object and pass it through safe filter.

note: if you do not yet use git - it's a very good idea to start since it helps a great deal in maintaining forked code in sync with the updates of the parent project. Use

git clone http://github.com/ASKBOT/askbot-devel.git math_problems

Then stick to using the math_problems (or however you call it) repository. If you move files around, remember to use git mv instead of plain unix mv. This mistake cost me a lot of wasted time before.

In addition

Possibly you might want to modify search to restrict searching in question body only. That lives in the function askbot.models.question.QuestionManager.run_advanced_search - that would be a two-liner change.

Other than that - you'll need to change locale messages. For example - edit msgstr strings in file /askbot/locale/en/LC_MESSAGES/django.po. It is much better than extensively changing messages in the template files directly, because that way chances are you won't have to even touch many templates.

You can also create your own special locale:

cp -r askbot/locale/en askbot/locale/math

and in settings.py use

LANGUAGE_CODE='math'

Then take a look at the Django localization manual.

One last bit of localization (with javascript string translations) lies in the file:

askbot/skins/default/media/js/com.cnprog.i18n.js

Federico, looks like you'll need to modify skin template askbot/skins/default/templates/questions.html

<h2><a title="{{question.summary}}" 
    href="{% url question id=question.id%}{{question.title|slugify}}">
    {{question.title}}</a></h2>

to something like:

<h2>
    <a href="{% href={% url question id=question.id %}">
%}>
        Problem {{question.id}}: {{question.title}}
    </a>
</h2>
<div class="question-body">{{question.html|safe}}</div>

The main thing is to display .html field of the question object and pass it through safe filter.

note: if you do not yet use git - it's a very good idea to start since it helps a great deal in maintaining forked code in sync with the updates of the parent project. Use

git clone http://github.com/ASKBOT/askbot-devel.git math_problems

Then stick to using the math_problems (or however you call it) repository. If you move files around, remember to use git mv instead of plain unix mv. This mistake cost me a lot of wasted time before.

In addition

Possibly you might want to modify search to restrict searching in question body only. That lives in the function askbot.models.question.QuestionManager.run_advanced_search - that would be a two-liner change.

Other than that - you'll need to change locale messages. For example - edit msgstr strings in file /askbot/locale/en/LC_MESSAGES/django.po. It is much better than extensively changing messages in the template files directly, because that way chances are you won't have to even touch many templates.

You can also create your own special locale:

cp -r askbot/locale/en askbot/locale/math

and in settings.py use

LANGUAGE_CODE='math'

Then take a look at the Django localization manual.

One last bit of localization (with javascript string translations) lies in the file:

askbot/skins/default/media/js/com.cnprog.i18n.js

Federico, looks like you'll need to modify skin template askbot/skins/default/templates/questions.html

<h2><a title="{{question.summary}}" 
    href="{% url question id=question.id%}{{question.title|slugify}}">
    {{question.title}}</a></h2>

to something like:

<h2>
    <a href={% url question id=question.id %}>
        Problem {{question.id}}: {{question.title}}
    </a>
</h2>
<div class="question-body">{{question.html|safe}}</div>

The main thing is to display .html field of the question object and pass it through safe filter.

note: if you do not yet use git - it's a very good idea to start since it helps a great deal in maintaining forked code in sync with the updates of the parent project. Use

git clone http://github.com/ASKBOT/askbot-devel.git math_problems

Then stick to using the math_problems (or however you call it) repository. If you move files around, remember to use git mv instead of plain unix mv. This mistake cost me a lot of wasted time before.

In addition

Possibly you might want to modify search to restrict searching in question body only. That lives in the function askbot.models.question.QuestionManager.run_advanced_search - that would be a two-liner change.`askbot.models.question.QuestionManager.

Other than that - you'll need to change locale messages. For example - edit msgstr strings in file /askbot/locale/en/LC_MESSAGES/django.po. It is much my better than extensively changing messages in the template files directly, because that way chances are you won't have to even touch many templates.

You can also create your own special locale:

cp -r askbot/locale/en askbot/locale/math

and in settings.py use

LANGUAGE_CODE='math'

Then take a look at the Django localization manual.

One last bit of localization (with javascript string translations) lies in the file:

askbot/skins/default/media/js/com.cnprog.i18n.js

Federico, looks like you'll need to modify skin template askbot/skins/default/templates/questions.html

<h2><a title="{{question.summary}}" 
    href="{% url question id=question.id%}{{question.title|slugify}}">
    {{question.title}}</a></h2>

to something like:

<h2>
    <a href={% url question id=question.id %}>
        Problem {{question.id}}: {{question.title}}
    </a>
</h2>
<div class="question-body">{{question.html|safe}}</div>

The main thing is to display .html field of the question object and pass it through safe filter.

note: if you do not yet use git - it's a very good idea to start since it helps a great deal in maintaining forked code in sync with the updates of the parent project. Use

git clone http://github.com/ASKBOT/askbot-devel.git math_problems

Then stick to using the math_problems (or however you call it) repository. If you move files around, remember to use git mv instead of plain unix mv. This mistake cost me a lot of wasted time before.

In addition

Possibly you might want to modify search to restrict searching in question body only. That lives in the function `askbot.models.question.QuestionManager.

Other than that - you'll need to change locale messages. For example - edit msgstr strings in file /askbot/locale/en/LC_MESSAGES/django.po. It is my better than extensively changing messages in the template files directly, because that way chances are you won't have to even touch many templates.

You can also create your own special locale:

cp -r askbot/locale/en askbot/locale/math

and in settings.py use

LANGUAGE_CODE='math'

Then take a look at the Django localization manual.

One last bit of localization (with javascript string translations) lies in the file:

askbot/skins/default/media/js/com.cnprog.i18n.js

Federico, looks like you'll need to modify skin template askbot/skins/default/templates/questions.html

<h2><a title="{{question.summary}}" 
    href="{% url question id=question.id%}{{question.title|slugify}}">
    {{question.title}}</a></h2>

to something like:

<h2>
    <a href={% url question id=question.id %}>
        Problem {{question.id}}: {{question.title}}
    </a>
</h2>
<div class="question-body">{{question.html|safe}}</div>

The main thing is to display .html field of the question object and pass it through safe filter.object

note: if you do not yet use git - it's a very good idea to start since it helps a great deal in maintaining forked code in sync with the updates of the parent project. Use

git clone http://github.com/ASKBOT/askbot-devel.git math_problems

Then stick to using the math_problems (or however you call it) repository. If you move files around, remember to use git mv instead of plain unix mv. This mistake cost me a lot of wasted time before.

In addition

Possibly you might want to modify search to restrict searching in question body only. That lives in the function `askbot.models.question.QuestionManager.

Other than that - you'll need to change locale messages. For example - edit msgstr strings in file /askbot/locale/en/LC_MESSAGES/django.po. It is my better than extensively changing messages in the template files directly, because that way chances are you won't have to even touch many templates.

You can also create your own special locale:

cp -r askbot/locale/en askbot/locale/math

and in settings.py use

LANGUAGE_CODE='math'

Then take a look at the Django localization manual.

Federico, looks like you'll need to modify skin template askbot/skins/default/templates/questions.html

<h2><a title="{{question.summary}}" 
    href="{% url question id=question.id%}{{question.title|slugify}}">
    {{question.title}}</a></h2>

to something like:

<h2>
    <a href={% url question id=question.id %}>
        Problem {{question.id}}: {{question.title}}
    </a>
</h2>
<div class="question-body">{{question.html|safe}}</div>

The main thing is to display .html field of the question object

note: if you do not yet use git - it's a very good idea to start since it helps a great deal in maintaining forked code in sync with the updates of the parent project. Use

git clone http://github.com/ASKBOT/askbot-devel.git math_problems

Then stick to using the math_problems (or however you call it) repository. If you move files around, remember to use git mv instead of plain unix mv. This mistake cost me a lot of wasted time before.