[Libreoffice-bugs] [Bug 135790] "%MOD1" appears in LO Tip of the Day #41

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Aug 16 18:27:08 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=135790

--- Comment #5 from Julien Nabet <serval2412 at yahoo.fr> ---
(In reply to Ming Hua from comment #4)
> Also reproducible on Windows, with Chinese UI for the translated tip.
> 
> I'm by no means a competent C++ programmer, but it seems to me the string
> replacement logic starting from:
> https://opengrok.libreoffice.org/xref/core/cui/source/dialogs/tipofthedaydlg.
> cxx?r=1bc50aca#90
> only attempts to replace %MOD1/%MOD2 once and doesn't properly process
> strings with two instances of "%MOD1", like tip #41 mentioned here.

I'm not expert too but agree with your analysis.
I think we should use "while" blocks to replace MOD1 and MOD2.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200816/85295134/attachment.htm>


More information about the Libreoffice-bugs mailing list