1

Trying to create a translation for OSQA

Fist I copied the FR locale to RU, updated the settings. Fine, Most things are working but now everything in the django.po file has been translated but still a few lines show up in English and I I cannot find them..

For example the string

"Most recently updated questions"

in the upper sidebar content right underneath the number of questions. The string is just not present in the django.po

PS: I installed OSQA on webfaction using the wiki script. Any help will be appreciated.

Update

The template sort_tabs contains

{% load i18n %} 
{% trans "active" %} {% trans "newest" %} {% trans "hottest" %} {% trans "most voted" %} 

but I think the string is coming from the count.html template

{% spaceless %} {% load i18n humanize extra_tags %} {% declare %} answer_count =     questions.children_count('answer') {% enddeclare %} 
{{ questions.paginator.count }}{{ list_description }} 
{% if answer_count %} 
{{ answer_count }}{% trans "answers" %} 
{% endif %} 
{{ questions.paginator.sort_description }} 

{% endspaceless %}

that might narrow it down to questions.paginator.sort_description ?

Pleun
  • 8,856
  • 2
  • 30
  • 50

1 Answers1

3

Looking at OSQA source code "most recently updated questions" string is defined for translation in sort_tabs.html template and it is included in django.po (line 5466).

Please note that "Most recently updated questions" string from your example is different string then is found in found in OSQA repository (uppercased Most), I can only guess that you are using some other templates that ones provided.

If that is not the case, please use following command in OSQA source directory to find files which includes missing translation string:

$ find . -name "*.po" -exec grep -l "Most recently updated questions" {} \;
bmihelac
  • 6,233
  • 34
  • 45
  • Thanks so far. I will check the 5466 line. But can you have a look at http://www.mamburo.ru/ or www.hozburo.ru (that I am translating) you will see the uppercased Most under the number of questions (in the sidebar). I have done an out of the box install on webfaction. Is that not the default template I am using? – Pleun Dec 07 '11 at 17:15
  • This should definitely be sort_tabs.html template. It could be 1. sort_tabs.html has been changed - please post result of ``svn diff`` from /forum/skins/default/templates/question_list/ directory or 2. run find command from the answer above and post the result. You have run ``python manage.py compilemessages`` after changing po catalog? – bmihelac Dec 07 '11 at 17:20
  • ``svn info`` would return revision. – bmihelac Dec 07 '11 at 17:33
  • Yes, I have run compilemessages. As you see on hozburo.ru most strings are translated. My django.po stops at line 4465 so it must be an onder version I am running – Pleun Dec 07 '11 at 18:22
  • you should run ``svn diff`` and ``svn info`` from directory where you installed OSQA. I recommend that you upgrade to latest version with ``svn up``. You can always revert to current version with ``svn revert`` (but run svn info before to know which revision you have currently. Hope that helps. – bmihelac Dec 07 '11 at 18:43
  • Still i get "." is not a working copy, no matter what directory i use – Pleun Dec 07 '11 at 19:57
  • I would remove directory (or move it somewhere else) and reinstall OSQA again. If that does not work I am out of ideas, sorry. – bmihelac Dec 07 '11 at 20:01
  • Thanks so far, I will post also at Webfaction because they provided the script for the installation. – Pleun Dec 07 '11 at 21:36
  • yes, in the end it dit. I have reinstalled with svn support, upgraded and created a new language file. Actually the problem was in the fact that there are some tags in text as well. Thanks for your help. – Pleun Apr 19 '12 at 20:50