<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Missing accelerator/mnemonic in translated string causes variable name to be rendered instead of its value"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=124060">124060</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Missing accelerator/mnemonic in translated string causes variable name to be rendered instead of its value
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.2.0.3 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>minor
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Localization
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>todventtu@suomi24.fi
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>cloph@documentfoundation.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=149940" name="attach_149940" title="Screenshot of dialog showing the problem">attachment 149940</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=149940&action=edit" title="Screenshot of dialog showing the problem">[details]</a></span>
Screenshot of dialog showing the problem

This was originally a report from IRC concerning the non-ODF format
warning/confirmation dialog. Button text showed %FORMATNAME in place of the
actual variable value.

In my local repo I went to 
translations/source/fi/sfx2/messages.po

and changed the appropriate block to have a mnemonic like so:

#: alienwarndialog.ui:43
msgctxt "alienwarndialog|save"
msgid "_Use %FORMATNAME Format"
msgstr "_Käytä %FORMATNAME-muotoa"

I updated the .mo file with

msgfmt -o instdir/program/resource/fi/LC_MESSAGES/sfx.mo
translations/source/fi/sfx2/messages.po

This made the button text render ok, BUT in a crazy turn of events made the
other button display %DEFAULTEXTENSION. The other button was missing the
mnemonic as well, so this change made everything fine:

#: alienwarndialog.ui:27
msgctxt "alienwarndialog|cancel"
msgid "Use %DEFAULTEXTENSION _Format"
msgstr "Käytä %DEFAULTEXTENSION-_muotoa"

Next, I tried to cause the same problem in the German translation. Curiously,
it was not enough to simply remove the mnemonics. It was only after I changed
the word benutzen to blabla that the problem appeared!</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>