File:  [Repository] / kupuMPIWG / common / kupu-pox.cgi
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Aug 30 17:10:22 2005 UTC (18 years, 8 months ago) by dwinter
Branches: first, MAIN
CVS tags: alpha, HEAD


#!/usr/bin/python2.3

import os, sys
os.chdir(os.path.abspath(os.path.dirname(__file__)))
sys.path.append(os.path.abspath('../python'))

from nationalizer import Nationalizer, get_locale

if __name__ == '__main__':
    print 'Content-Type: text/xml,charset=UTF-8'
    print
    locale = get_locale()
    if locale is None:
        locale = ['nl']
    i = Nationalizer('kupu.pox', locale)
    print i.translate().encode('UTF-8')

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>