On 11-10-2005, at 11:33, Nebojša Đorđević - nesh wrote:
from make_messages.py:
if file.endswith('.html'): src = open(os.path.join(dirpath, file), "rb").read()open(os.path.join(dirpath, '%s.py' % file), "wb").write(templateize(src))thefile = '%s.py' % fileif verbose: sys.stdout.write('processing file %s in %s \n' % (file, dirpath))cmd = 'xgettext %s -d %s -L Python -o - "%s"' % (
Is it's really necessary to change extension of html files to html.py? xgettext will be treat all files as python source because "- L Python" anyway. Petar Marić <[EMAIL PROTECTED]> told me that poedit have some issues with filenames in comments which xgettext generates.
--- Nebojša Đorđević - nesh Studio Quattro - Niš - SCG http://djnesh.blogspot.com/ | http://djnesh-django.blogspot.com/ Registered Linux User 282159 [http://counter.li.org]
