User Tools

Site Tools


projects:mypootleproject

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
projects:mypootleproject [2010/12/25 14:07] rlunaroprojects:mypootleproject [2022/12/02 22:02] (current) – external edit 127.0.0.1
Line 28: Line 28:
 In this project I will try to give specific instructions to install and run a project with pootle. And to handle with a translation of the properties files of a java project into various languages. Those who haven't to deal with a thing like that probably will think that there is no real need for an application for that. Hehe.. In this project I will try to give specific instructions to install and run a project with pootle. And to handle with a translation of the properties files of a java project into various languages. Those who haven't to deal with a thing like that probably will think that there is no real need for an application for that. Hehe..
  
 +==== Software you will need ====
 +
 +You have to have installed in your system: 
 +
 +  * Mysql 
 +  * Python 
 +  * Apache
 +
 +==== Download the neccessary packages ====
 +
 +Look into the installation manual the neccesary packages for install pootle:
 +
 +[[http://translate.readthedocs.org/projects/pootle/en/latest/server/installation.html]]
 +
 +
 +==== Install Python easy install ====
 +
 +It eases many tasks of installing. Probably you can delete it afterwards if you want to strenghth your security.
 +
 +<code>
 +
 +rluna@rluna-VirtualBox:~/Descargas$ sudo apt-get install python-setuptools
 +
 +</code>
 +
 +==== Install Django ====
 +
 +First install Django, because Pootle requires it. You can download it from the project website, https://www.djangoproject.com/
 +
 +<code shell>
 +rluna@rluna-VirtualBox:~/Descargas$ tar -xzf Django-1.3.1.tar.gz 
 +rluna@rluna-VirtualBox:~/Descargas$ cd Django-1.3.1/
 +rluna@rluna-VirtualBox:~/Descargas/Django-1.3.1$ sudo python setup.py install 
 +</code>
 +
 +
 +==== Install translate-toolkit ====
 +
 +<code shell>
 +rluna@rluna-VirtualBox:~/Descargas$ tar -xjf translate-toolkit-1.9.0.tar.bz2
 +rluna@rluna-VirtualBox:~/Descargas$ cd translate-toolkit-1.9.0/
 +rluna@rluna-VirtualBox:~/Descargas/translate-toolkit-1.9.0$ sudo python setup.py install
 +
 +</code>
 +
 +==== Install lxml ====
 +
 +After some seconds, you are ready to install the second package, lxml. This package is now(11/24/2012) available at [[http://pypi.python.org/pypi/lxml/]]
 +
 +<code shell>
 +root@rluna-VirtualBox:~# tar -xzf lxml-3.0.1.tar.gz
 +
 +root@rluna-VirtualBox:~# sudo python setup.py install
 +
 +</code>
 +
 +==== Install pootle ====
 +
 +
 +<code shell>
 +rluna@rluna-VirtualBox:~/Descargas$ tar -xjf Pootle-2.1.6.tar.bz2
 +rluna@rluna-VirtualBox:~/Descargas$ cd Pootle-2.1.6/
 +rluna@rluna-VirtualBox:~/Descargas/Pootle-2.1.6$ sudo python setup.py install
 +</code>
 +
 +==== Install south ====
 +
 +You can easily install south by issuing the command: 
 +
 +<code shell>
 +apt-get install python-django-south
 +</code>
 +
 +At least in Ubuntu it works!
 +
 +==== Problem found: No such file or directory ''/usr/share/pootle/mo'' ====
 +
 +It appears that when you are installing in Ubuntu, pootle doesn't follow the usual path for 
 +installing itself; instead of using ''/usr/share/pootle'', it installs under ''/usr/local/share/pootle'', 
 +hence it fails when running issuing this error: 
 +
 +<code>
 +OSError: [Errno 2] No such file or directory: '/usr/share/pootle/mo'
 +</code>
 +
 +The easiest way to fix this is to cheat Pootle, installing a symbolic link to the 
 +proper directory:
 +
 +<code>
 +root@rluna-VirtualBox:/usr/local/share# ln -s /usr/local/share/pootle /usr/share/pootle 
 +</code>
 +
 +Ah!!! Thanks to [[http://serverfault.com/questions/247333/how-to-setup-pootle-tranlation-server-on-ubuntu]]
 +who gave me the solution for this nasty error!!!!
 +
 +==== Finishing ====
 +
 +And that's it: you only have to point to ''http://localhost:8080'' to reach your own 
 +copy of pootle.
  
  
  
projects/mypootleproject.1293282444.txt.gz · Last modified: 2022/12/02 22:02 (external edit)