mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
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:
parent
3774bc71b0
commit
2ba95426cc
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user