Applied Debian and Ubuntu patches. Added i18n support.