<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - "%MOD1" appears in LO Tip of the Day #41"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=135790#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - "%MOD1" appears in LO Tip of the Day #41"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=135790">bug 135790</a>
              from <span class="vcard"><a class="email" href="mailto:serval2412@yahoo.fr" title="Julien Nabet <serval2412@yahoo.fr>"> <span class="fn">Julien Nabet</span></a>
</span></b>
        <pre>(In reply to Ming Hua from <a href="show_bug.cgi?id=135790#c4">comment #4</a>)
<span class="quote">> 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:
> <a href="https://opengrok.libreoffice.org/xref/core/cui/source/dialogs/tipofthedaydlg">https://opengrok.libreoffice.org/xref/core/cui/source/dialogs/tipofthedaydlg</a>.
> 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.</span >

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


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>