change indentation from 2 to 4 in lyx_pot.py

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22582 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Bo Peng 2008-01-15 04:13:14 +00:00
parent 3774bc71b0
commit 2ba95426cc

View File

@ -31,6 +31,14 @@ def relativePath(path, base):
return path3
def writeString(outfile, infile, basefile, lineno, string):
string = string.replace('\\', '\\\\').replace('"', '')
if string == "":
return
print >> outfile, '#: %s:%d\nmsgid "%s"\nmsgstr ""\n' % \
(relativePath(infile, basefile), lineno, string)
def ui_l10n(input_files, output, base):
'''Generate pot file from lib/ui/*'''
output = open(output, 'w')
@ -63,13 +71,6 @@ def ui_l10n(input_files, output, base):
output.close()
def writeString(outfile, infile, basefile, lineno, string):
string = string.replace('\\', '\\\\').replace('"', '')
if string == "":
return
print >> outfile, '#: %s:%d\nmsgid "%s"\nmsgstr ""\n' % \
(relativePath(infile, basefile), lineno, string)
def layouts_l10n(input_files, output, base):
'''Generate pot file from lib/layouts/*.{layout,inc,module}'''
out = open(output, 'w')