mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
Translate categories.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31035 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
2a25d7039f
commit
05e00b9341
@ -84,6 +84,7 @@ def layouts_l10n(input_files, output, base):
|
|||||||
InsetLayout = re.compile(r'^InsetLayout\s+(.*)')
|
InsetLayout = re.compile(r'^InsetLayout\s+(.*)')
|
||||||
DescBegin = re.compile(r'#+\s*DescriptionBegin\s*$')
|
DescBegin = re.compile(r'#+\s*DescriptionBegin\s*$')
|
||||||
DescEnd = re.compile(r'#+\s*DescriptionEnd\s*$')
|
DescEnd = re.compile(r'#+\s*DescriptionEnd\s*$')
|
||||||
|
Category = re.compile(r'#Category: (.*)$')
|
||||||
I18nPreamble = re.compile(r'\s*(Lang)|(Babel)Preamble\s*$')
|
I18nPreamble = re.compile(r'\s*(Lang)|(Babel)Preamble\s*$')
|
||||||
EndI18nPreamble = re.compile(r'\s*End(Lang)|(Babel)Preamble\s*$')
|
EndI18nPreamble = re.compile(r'\s*End(Lang)|(Babel)Preamble\s*$')
|
||||||
I18nString = re.compile(r'_\(([^\)]+)\)')
|
I18nString = re.compile(r'_\(([^\)]+)\)')
|
||||||
@ -164,6 +165,11 @@ def layouts_l10n(input_files, output, base):
|
|||||||
string = string.replace('_', ' ')
|
string = string.replace('_', ' ')
|
||||||
writeString(out, src, base, lineno, string)
|
writeString(out, src, base, lineno, string)
|
||||||
continue
|
continue
|
||||||
|
res = Category.search(line)
|
||||||
|
if res != None:
|
||||||
|
string = res.group(1)
|
||||||
|
writeString(out, src, base, lineno, string)
|
||||||
|
continue
|
||||||
out.close()
|
out.close()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user