Kornel Benko wrote:
> commit 29b5934ac7b02fbacdc2c23c45ae45f6de31079d
> Author: Kornel Benko <kor...@lyx.org>
> Date:   Thu Jul 3 13:52:52 2014 +0200
> 
>     Corrected tooltip search string.
> 
>     This worked wrong in case where the text contained the string 'tooltip'
> too.
> 
> diff --git a/po/lyx_pot.py b/po/lyx_pot.py
> index ca97416..a0f98b9 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)

This is now also needed in branch.

Jürgen

Reply via email to