From 157362c9511b31e9be225543d4827d44edb6d358 Mon Sep 17 00:00:00 2001 From: rgheck Date: Fri, 14 Aug 2009 15:35:05 +0000 Subject: [PATCH] Translate categories. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31035 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 0179560c77..8f36405daa 100755 --- a/po/lyx_pot.py +++ b/po/lyx_pot.py @@ -84,6 +84,7 @@ 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*$') + Category = re.compile(r'#Category: (.*)$') I18nPreamble = re.compile(r'\s*(Lang)|(Babel)Preamble\s*$') EndI18nPreamble = re.compile(r'\s*End(Lang)|(Babel)Preamble\s*$') I18nString = re.compile(r'_\(([^\)]+)\)') @@ -164,6 +165,11 @@ def layouts_l10n(input_files, output, base): string = string.replace('_', ' ') writeString(out, src, base, lineno, string) continue + res = Category.search(line) + if res != None: + string = res.group(1) + writeString(out, src, base, lineno, string) + continue out.close() -- 2.11.4.GIT