Building
To build Virtaal yourself, you will need a packaged archive of the Virtaal source code, or obtain it directly from Subversion.
To get the source code direction from Subversion, use this command:
svn co http://translate.svn.sourceforge.net/svnroot/translate/src/trunk/virtaal/
Required packages
- libglade and its python bindings (might be called something like pygtk2.0-libglade on your Linux distribution)
- Translate-toolkit (if a current enough version is packaged, it might be called python-translate on your Linux distribution)
- simplejson (might be called something like python-simplejson on your Linux distribution)
- PyCurl (might be called something like python-curl or python-pycurl on your Linux distribution)
- sqlite3 (only required if using Python 2.4)
- wsgiref (only required if using Python 2.4)
Optional packages
These are not build dependencies but usually improve the user experience.
- psyco - provides a nice speedup
- Enchant, gtkspell and pygtkspell (might be packaged as gnome-python-extras or something similar) - provides all spell checking functionality (See the Gramps page if for pygtk installers for Windows)
- iso-codes - if you want translated language names
- The optional fts3 module for sqlite3 will be used if it is available - provides speedups with TM retrieval (it is safe to just overwrite a better sqlite library over the one available in Python for Windows)
- libtranslate - used by Machine Translation plugin
- psycopg2 - for TinyTM plugin
- python-Levenshtein - speeds up Levenshtein distance measures, if not present we'll use a pure Python version.
UNIX
You should be able to run Virtaal from the source tree. If you would like to install Virtaal, you can build it using
./setup.py build
and then you can install it with
sudo ./setup.py install
Windows
Note: For the translate-toolkit, be sure to get the Python library - the one marked win32.exe - and not the stand-alone Windows installer, which is labelled setup.exe.
If you would like to build a stand-alone Windows installer, you will also need to get:
OSX
This is just some notes - it is incomplete and might be entirely off the mark. Virtaal and all dependencies run on OSX, but we still need help to document the simplest process, and to build installable packages.
This was tried so far on Mac OSX Tiger (10.5):
Install the “inst” directory from this disk image somewhere: http://www.immunityinc.com/downloads/CANVAS_OSX_SUPPORT.dmg
This GTK+ port does not need X11.
add the following to the PYTHONPATH: inst/lib/python2.5/site-packages
run python bin/virtaal
If you want, get the OS X Leopard theme: http://kims-area.com/?q=node/4 Install it into inst/share/themes/ and add an environment variable: export GTK2_RC_FILES=inst/share/themes/OS\ X\ Leopard/gtk-2.0/gtkrc
Older attempt, no success yet using this way:
Install the Gtk+ Mac OSX framework: http://www.gtk-osx.org/ Install pygtk and pygobject from the GNOME FTP mirrors: ftp://ftp.gnome.org./pub/GNOME/sources/ (extract, still need to get pygobject installed)
