mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
- de.po: translation updates for trunk
- po-files: remerged git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28307 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
30e0a68acf
commit
10d742cfe3
@ -84,9 +84,13 @@ def layouts_l10n(input_files, output, base):
|
||||
InsetLayout = re.compile(r'^InsetLayout\s+(.*)')
|
||||
DescBegin = re.compile(r'#+\s*DescriptionBegin\s*$')
|
||||
DescEnd = re.compile(r'#+\s*DescriptionEnd\s*$')
|
||||
I18nPreamble = re.compile(r'\s*I18nPreamble\s*$')
|
||||
EndI18nPreamble = re.compile(r'\s*EndI18nPreamble\s*$')
|
||||
I18nString = re.compile(r'_\(([^\)]+)\)')
|
||||
|
||||
for src in input_files:
|
||||
readingDescription = False
|
||||
readingI18nPreamble = False
|
||||
descStartLine = -1
|
||||
descLines = []
|
||||
lineno = 0
|
||||
@ -106,6 +110,20 @@ def layouts_l10n(input_files, output, base):
|
||||
readingDescription = True
|
||||
descStartLine = lineno
|
||||
continue
|
||||
if readingI18nPreamble:
|
||||
res = EndI18nPreamble.search(line)
|
||||
if res != None:
|
||||
readingI18nPreamble = False
|
||||
continue
|
||||
res = I18nString.search(line)
|
||||
if res != None:
|
||||
string = res.group(1)
|
||||
writeString(out, src, base, lineno, string)
|
||||
continue
|
||||
res = I18nPreamble.search(line)
|
||||
if res != None:
|
||||
readingI18nPreamble = True
|
||||
continue
|
||||
res = NameRE.search(line)
|
||||
if res != None:
|
||||
string = res.group(1)
|
||||
@ -358,3 +376,4 @@ if __name__ == '__main__':
|
||||
else:
|
||||
languages_l10n(args, output, base)
|
||||
|
||||
|
||||
|
3512
po/zh_CN.po
3512
po/zh_CN.po
File diff suppressed because it is too large
Load Diff
3487
po/zh_TW.po
3487
po/zh_TW.po
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user