Bug 136639 - Syntax error in translations ending in lone mnemonic "_" prefix
Summary: Syntax error in translations ending in lone mnemonic "_" prefix
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Localization (show other bugs)
Version:
(earliest affected)
7.1.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-10 08:38 UTC by Stephan Bergmann
Modified: 2023-04-20 11:45 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Bergmann 2020-09-10 08:38:39 UTC
<https://git.libreoffice.org/core/+/f6a7c887956048ccaef5df610db28679806a6ebf%5E%21> "Guard against lone mnemonic prefix at end of key" revealed two issues in translations/source/am/sw/messages.po:

> #. ytvmN
> #: sw/uiconfig/swriter/ui/frmtypepage.ui:617
> msgctxt "frmtypepage|horibyft"
> msgid "b_y"
> msgstr "በ_"

> #. nJyJE
> #: sw/uiconfig/swriter/ui/frmtypepage.ui:754
> msgctxt "frmtypepage|verttoft"
> msgid "t_o"
> msgstr "ለ_"

should both not end in mnemonic "_" prefix character.
Comment 1 Ming Hua 2020-09-10 08:54:28 UTC
Samson, you are listed as the Amharic team's contact person according to https://wiki.documentfoundation.org/Language_Teams so I'm adding you to CC.
Comment 2 QA Administrators 2023-04-20 03:31:13 UTC Comment hidden (obsolete)
Comment 3 Stephan Bergmann 2023-04-20 11:45:17 UTC
(In reply to QA Administrators from comment #2)
> If the bug is present, please leave a comment that includes the information
> from Help - About LibreOffice.

The issue is still present on current master towards LO 7.6.  The two entries in translations/source/am/sw/messages.po stsill have msgstr values that end in "_" (see comment 0), and building CppunitTest_sw_dialogs_test with --enable-sal-log --with-lang=am at least on Linux still produces

> $ grep 'ends in lone mnemonic prefix' workdir/CppunitTest/sw_dialogs_test.test.log
> processing mowarn:vcl:1915630:1915630:vcl/source/window/mnemonic.cxx:72: key "በ_" ends in lone mnemonic prefix
> warn:vcl:1915630:1915630:vcl/source/window/mnemonic.cxx:72: key "ለ_" ends in lone mnemonic prefix
> warn:vcl:1915630:1915630:vcl/source/window/mnemonic.cxx:72: key "በ_" ends in lone mnemonic prefix
> warn:vcl:1915630:1915630:vcl/source/window/mnemonic.cxx:72: key "ለ_" ends in lone mnemonic prefix