Annotation of kupuMPIWG/common/kupu.cgi, revision 1.1

1.1     ! dwinter     1: #!/usr/bin/python2.3
        !             2: 
        !             3: import os, sys
        !             4: os.chdir(os.path.abspath(os.path.dirname(__file__)))
        !             5: sys.path.append(os.path.abspath('../python'))
        !             6: 
        !             7: from nationalizer import Nationalizer, get_locale
        !             8: 
        !             9: if __name__ == '__main__':
        !            10:     print 'Content-Type: text/html;charset=UTF-8'
        !            11:     print
        !            12:     locale = get_locale()
        !            13:     if locale is None:
        !            14:         locale = ['nl']
        !            15:     i = Nationalizer('kupu.html', locale)
        !            16:     print i.translate().encode('UTF-8')

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