X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=po%2Flyx_pot.py;h=a0f98b909df01ed2e81cd0327d1fd54f9728e96e;hb=5bfd1c22d25e992ff0519931e1fb5590fc1e9024;hp=b6f97dc2cc4ae450243728bf76aa29ca22e5f68f;hpb=ba8c5bb5112cdeaea507a46cb144c17c12cd5caf;p=lyx.git diff --git a/po/lyx_pot.py b/po/lyx_pot.py index b6f97dc2cc..a0f98b909d 100755 --- a/po/lyx_pot.py +++ b/po/lyx_pot.py @@ -84,7 +84,7 @@ def layouts_l10n(input_files, output, base, layouttranslations): # match LabelString, EndLabelString, LabelStringAppendix and maybe others but no comments LabelString = re.compile(r'^[^#]*LabelString\S*\s+(.*\S)\s*$', re.IGNORECASE) MenuString = re.compile(r'^[^#]*MenuString\S*\s+(.*\S)\s*$', re.IGNORECASE) - Tooltip = re.compile(r'^[^#]*Tooltip\S*\s+(.*\S)\s*$', re.IGNORECASE) + Tooltip = re.compile(r'^\s*Tooltip\S*\s+(.*\S)\s*$', re.IGNORECASE) GuiName = re.compile(r'^\s*GuiName\s+(.*\S)\s*$', re.IGNORECASE) ListName = re.compile(r'^\s*ListName\s+(.*\S)\s*$', re.IGNORECASE) CategoryName = re.compile(r'^\s*Category\s+(.*\S)\s*$', re.IGNORECASE) @@ -500,7 +500,7 @@ def external_l10n(input_files, output, base): Template = re.compile(r'^Template\s+(.*)', re.IGNORECASE) GuiName = re.compile(r'\s*GuiName\s+(.*)', re.IGNORECASE) HelpTextStart = re.compile(r'\s*HelpText\s', re.IGNORECASE) - HelpTextSection = re.compile(r'\s*(\S.*\S)\s*$') + HelpTextSection = re.compile(r'\s*(\S.*)\s*$') HelpTextEnd = re.compile(r'\s*HelpTextEnd\s', re.IGNORECASE) i = -1 for src in input_files: