Add language select box, LINGUAS file, and relevant documentation.

This commit is contained in:
Ricky Zhou (周家杰) 2008-03-17 13:48:33 -04:00
parent 2127f7be28
commit 57b731daed
9 changed files with 71 additions and 22 deletions

View file

@ -4,6 +4,7 @@ import os
import re
import glob
import subprocess
import shutil
from distutils.command.build import build as _build
from distutils.command.install_data import install_data as _install_data
@ -71,6 +72,13 @@ class Build(_build, object):
outf.writelines(line)
outf.close()
f.close()
# Make empty en.po
dirname = 'locale/'
if not os.path.isdir(dirname):
os.makedirs(dirname)
shutil.copy('po/LINGUAS', 'locale/')
for pofile in poFiles:
# Compile PO files
lang = os.path.basename(pofile).rsplit('.', 1)[0]