[Libreoffice-bugs] [Bug 124060] New: Missing accelerator/mnemonic in translated string causes variable name to be rendered instead of its value
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Wed Mar 13 15:30:19 UTC 2019
https://bugs.documentfoundation.org/show_bug.cgi?id=124060
Bug ID: 124060
Summary: Missing accelerator/mnemonic in translated string
causes variable name to be rendered instead of its
value
Product: LibreOffice
Version: 6.2.0.3 release
Hardware: All
OS: Linux (All)
Status: UNCONFIRMED
Severity: minor
Priority: medium
Component: Localization
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: todventtu at suomi24.fi
CC: cloph at documentfoundation.org
Created attachment 149940
--> https://bugs.documentfoundation.org/attachment.cgi?id=149940&action=edit
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!
--
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/20190313/99321074/attachment.html>
More information about the Libreoffice-bugs
mailing list