mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
* po/lyx_pot.py:
- flag Category names for translation. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24231 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ed143294c9
commit
7c5f52bc20
@ -79,6 +79,7 @@ def layouts_l10n(input_files, output, base):
|
||||
LabelString = re.compile(r'^[^#]*LabelString\S*\s+(.*)')
|
||||
GuiName = re.compile(r'\s*GuiName\s+(.*)')
|
||||
ListName = re.compile(r'\s*ListName\s+(.*)')
|
||||
CategoryName = re.compile(r'\s*Category\s+(.*)')
|
||||
NameRE = re.compile(r'DeclareLyXModule.*{(.*)}')
|
||||
DescBegin = re.compile(r'#+\s*DescriptionBegin\s*$')
|
||||
DescEnd = re.compile(r'#+\s*DescriptionEnd\s*$')
|
||||
@ -125,6 +126,11 @@ def layouts_l10n(input_files, output, base):
|
||||
writeString(out, src, base, lineno, string)
|
||||
continue
|
||||
res = GuiName.search(line)
|
||||
if res != None:
|
||||
string = res.group(1)
|
||||
writeString(out, src, base, lineno, string)
|
||||
continue
|
||||
res = CategoryName.search(line)
|
||||
if res != None:
|
||||
string = res.group(1)
|
||||
writeString(out, src, base, lineno, string)
|
||||
|
Loading…
Reference in New Issue
Block a user