mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
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.
This commit is contained in:
parent
1c1b3519f9
commit
05b90abaf7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user