]> git.lyx.org Git - features.git/commitdiff
Corrected tooltip search string.
authorKornel Benko <kornel@lyx.org>
Thu, 3 Jul 2014 11:52:52 +0000 (13:52 +0200)
committerKornel Benko <kornel@lyx.org>
Thu, 3 Jul 2014 11:52:52 +0000 (13:52 +0200)
This worked wrong in case where the text contained the string 'tooltip' too.

po/lyx_pot.py

index ca97416299bc8097495fc80758502421ae84ef01..a0f98b909df01ed2e81cd0327d1fd54f9728e96e 100755 (executable)
@@ -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)