From 7c5f52bc206c824493d3a0c19c65c7d53501e59c Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Fri, 11 Apr 2008 10:39:00 +0000 Subject: [PATCH] * 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 --- po/lyx_pot.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/po/lyx_pot.py b/po/lyx_pot.py index 70e8299023..b2dcf67d62 100755 --- a/po/lyx_pot.py +++ b/po/lyx_pot.py @@ -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) -- 2.39.2