Skip to content

"Preferences" menu opens "command line options" when using French language (OSX) #5800

Closed

Description

@lunokhod

When clicking on the "Preferences" menu when using French language, the "command line options" window opens instead of the usual preferences pane. I note that this works correctly when using English and a few other languages that I tested.

Bitcoin core version 10.99.0
OS: OSX 10.9.5

Activity

  1. theuni commented on Feb 18, 2015

    @theuni
    Member

    Confirmed. This is a weird one. It seems to be caused by some string matching gone bad.

    The french translation of "Command-line options" is "Options de ligne de &commande". When translating "Options..." at runtime, it finds matches the "Options de ligne de &commande" and opens that window.

    Weird.

    This can be confirmed by the following hack-test-fix.

    diff --git a/src/qt/locale/bitcoin_fr.ts b/src/qt/locale/bitcoin_fr.ts
    index 71a1519..82a6bef 100644
    --- a/src/qt/locale/bitcoin_fr.ts
    +++ b/src/qt/locale/bitcoin_fr.ts
    @@ -416,7 +416,7 @@
         </message>
         <message>
             <source>&amp;Command-line options</source>
    -        <translation>Options de ligne de &amp;commande</translation>
    +        <translation>.Options de ligne de &amp;commande</translation>
         </message>
         <message>
             <source>Show the Bitcoin Core help message to get a list with possible Bitcoin command-line options</source>

    With that in-place, both menus work as expected.

    It looks like a pretty clear Qt bug to me. Maybe we can work around by inserting some invisible garbage into the string for now?

    Or as a different work-around, we could probably change "Options..." to "Preferences...", since we're setting the PreferencesRole on it anyway. That'd mean updating all translations though.

  2. laanwj commented on Mar 3, 2015

    @laanwj
    Member

    Huh, so this is a bug in Qt and not just a wrong translation on Transifex?

  3. jonasschnelli commented on Mar 6, 2015

    @jonasschnelli
    Contributor

    I try to find a solution.
    Behavior is documented at http://qt-project.org/doc/qt-4.8/qmenubar.html (section "QMenuBar on Mac OS X").
    I think it's not a QT bug, it's more or less a strange way of handling menus on mac.

  4. added a commit that references this issue on Mar 6, 2015
    9bbb880
  5. added a commit that references this issue on Mar 9, 2015
    786cf72
  6. added a commit that references this issue on May 27, 2020
    d917dbc
  7. locked as resolved and limited conversation to collaborators on Sep 8, 2021
  8. added a commit that references this issue on Jul 19, 2026
    8e4dd90
  9. added a commit that references this issue on Aug 30, 2026
    6e469d1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions