From 05b90abaf7a4c2343824e8fae1b4a721b8e4a2e1 Mon Sep 17 00:00:00 2001 From: Guillaume Munch Date: Tue, 21 Feb 2017 21:04:50 +0100 Subject: [PATCH] Allow more translations of OutlinerNames Allow comments at the end. Although comments seem to be valid at the end of lines in layouts, few of the regexps take this into account. However, OutlinerName was the only one where there were actual lines with comments at the end. Not touching the others as there is no one-size-fits-all solution with these regexps. Thanks Kornel for reporting the issue. --- po/lyx_pot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/po/lyx_pot.py b/po/lyx_pot.py index eec39782e3..8cb9a4d954 100755 --- a/po/lyx_pot.py +++ b/po/lyx_pot.py @@ -85,7 +85,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) - OutlinerName = re.compile(r'^[^#]*OutlinerName\s+(\S+|\"[^\"]*\")\s+(\S+|\"[^\"]*\")\s*$', re.IGNORECASE) + OutlinerName = re.compile(r'^[^#]*OutlinerName\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)