]> git.lyx.org Git - lyx.git/blobdiff - po/lyx_pot.py
Math.lyx: add workaround that this manual can be compiled also without having the...
[lyx.git] / po / lyx_pot.py
index 06d81f185a6a2a1a6d7883f820413edcf47b8cba..ac2efeb16aeb078fc21adf2dbd7c21d02ebc25bd 100755 (executable)
@@ -84,8 +84,8 @@ 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*$')
+    I18nPreamble = re.compile(r'\s*(Lang)|(Babel)Preamble\s*$')
+    EndI18nPreamble = re.compile(r'\s*End(Lang)|(Babel)Preamble\s*$')
     I18nString = re.compile(r'_\(([^\)]+)\)')
 
     for src in input_files: