|
I finally installed rosetta, but in my "OSQA Project" directory
I find only the following languages:
In my python dir I have an Italian dir
with the following files inside
But they contain translation for django admin interface itself and I don't understand what I've to do in order to "istall" the it language pack into OSQA |
|
This post regards the installation & configuration of rosetta on BITNAMi OSQA stack (osqa-1.0rc-0) on MacOSX 10.7 (Lion) but I think this could work fine on other Linux based OSs.
set environment variables executing the following script:
now install django-rosetta package using "easy_install" and not "pip" (not included in python distro of BITNAMI osqa stack)
Enter the OSQA dir and execute django-admin.py script
on MacOSX: If you obtain the following error
Download & Install gettext.pkg compiled for your specific OS version If you obtain the following errror:
Follow the instructions here to fix it:
and apply changes Finally execute again:
Now you'll have django.po files in your "locale" dir. For italian language this should be the path:
Edit OSQA settings_local.py file updating LANGUAGE_CODE value
Restart Apache
Go to 'nimda' page (pay attention, you have to add /osqa/ into the context URL )
Login as a local admin usr/pwd (NO LDAP user, NO OpenId credential, just a superuser account stored in your OSQA db) Switch to 'rosetta' page
Select your language under "Project" tab Start Translating! Thank you bosch, you really did something that I hope is going to be helpful to many others as well, beside myself. And I'm grateful to you. The bad thing is that I'm using windows xp, but for this purpose since I cannot find any tutorials on this topic, I may install Lion. I think that when I finish translation I'll could use it with windows too. Or I'm wrong? Thank you! (sorry for delay but my comments still must go through moderation)
(20 Feb, 08:13)
balbao
1
I'm not sure it's gonna work if you simply copy-paste the django.po file from MacOSX to WinXP... but I think you can reproduce these steps using the same commands on WinXP For instance you can find the easy_install.exe binary at C:\Program Files\BitNami OSQA Stack\python\scripts folder
(20 Feb, 10:27)
bosch
|
|
I finally found a solution by myself putting together the pieces of the puzzle... I post here the steps I followed hoping this could help someone else not to do the same effort I did This would work with every language (non only italian) Installing & Configuring ROSETTA Follow developer's instructions here
Create a new language pack in OSQA
Where 'it' stands for ITALIAN Probably you'll receive the following error
Don't panic, if you'have installed and configured OSQA so far, you're already accustomed to pain... : ) To solve the problem, just apply the fix here
let's go ahead with the build of the language pack
This will create a folder 'it' under 'locale' dir in your OSQA containing LC_MESSAGES/django.po file In my case:
Activate language pack Edit the owner of 'it' dir
Edit OSQA settings_local.py file updating LANGUAGE_CODE value
Restart Apache
Go to 'nimda' page (this was the more tricky part...)
Login as a local admin usr/pwd (NO LDAP user, NO OpenId credential, just a superuser account stored in your OSQA db) Switch to 'rosetta' page
Select your language under "Project" tab Start Translating! PS: If you see a broken-style django admin interface, it's because you missed this Apache Alias configuration Thank you very much for this instructions. If you could just add few more steps (for us which are newbie to django/phyton), I mean where do I type this commands, I installed OSQA with bitnami and when I download rosetta (as zip)where and in which format shell I save it? if you could answer me I would be grateful, thank you for help
(19 Feb, 10:46)
balbao
Hi balbao, the installation & configuration process of rosetta on Bitnami stack is a little bit simpler, because it's based on a newer release of django 1.3 instead o 1.2.7 that I used in my native installation from scratch. Try to follow the steps in the following answer
(20 Feb, 06:17)
bosch
|