Looks it'll be fixed with Qt-5.4.1, I've checked with a perelease of that (5.4.1 is not yet out, expected any day now)
Unless this problem shows only if System is pr_BR and just switching to pt_BR as a non-system settings would not show the behavior. Or if it is a plain Mac problem...
After a couple of days of trial and error, here are the conclusions I drew.
The problem derives from the fact that the translated string of "Page Settings..." starts with "Config". Indeed, if the "Page Settings..." translation is substituted with something starting with "Config" for any language (actually, I tested only Portuguese and Italian), the "Preferences..." menu refers to this string and related action. Indeed, under Mac the strings in the "MuseScore" menu require context "MAC_APPLICATION_MENU" and the translations we see are actually taken from file "qt_##" (where ## is the language chosen in the preferences). Therefore, the "Preferences..." menu is not always picking the correct translation; as I said it seems that by default it searches for string starting with "Config". You can see that also the "About" menu are either not translated or their translation is taken from the "qt_##" file (this is particularly visible in the Italian translation, in which the qt_it.ts contains the typo "Informzioni" instead of the correct form "Informazioni").
Proposed PR: https://github.com/musescore/MuseScore/pull/1802
This is more a workaround rather than an actual fix, but it seems to work.
If another menu action will get translated with a "config" string it will overwrite the preferences and a patch similar to this one will be required for that menu action.
Comments
Looks it'll be fixed with Qt-5.4.1, I've checked with a perelease of that (5.4.1 is not yet out, expected any day now)
Unless this problem shows only if System is pr_BR and just switching to pt_BR as a non-system settings would not show the behavior. Or if it is a plain Mac problem...
Unfortunately, I can still reproduce the problem with Qt-5.4.1-preview under Mac OS X 10.8.5.
So it is Mac only, right?
After a couple of days of trial and error, here are the conclusions I drew.
The problem derives from the fact that the translated string of "Page Settings..." starts with "Config". Indeed, if the "Page Settings..." translation is substituted with something starting with "Config" for any language (actually, I tested only Portuguese and Italian), the "Preferences..." menu refers to this string and related action. Indeed, under Mac the strings in the "MuseScore" menu require context "MAC_APPLICATION_MENU" and the translations we see are actually taken from file "qt_##" (where ## is the language chosen in the preferences). Therefore, the "Preferences..." menu is not always picking the correct translation; as I said it seems that by default it searches for string starting with "Config". You can see that also the "About" menu are either not translated or their translation is taken from the "qt_##" file (this is particularly visible in the Italian translation, in which the qt_it.ts contains the typo "Informzioni" instead of the correct form "Informazioni").
We should be able to override the string matching that Qt does with QAction::menuRole() http://doc.qt.io/qt-5/qmenubar.html#qmenubar-on-os-x
And apparently it's done https://github.com/musescore/MuseScore/blob/master/mscore/musescore.cpp… but maybe too late.
"The menu role can only be changed before the actions are put into the menu bar in OS X (usually just before the first application window is shown)."
Proposed PR:
https://github.com/musescore/MuseScore/pull/1802
This is more a workaround rather than an actual fix, but it seems to work.
If another menu action will get translated with a "config" string it will overwrite the preferences and a patch similar to this one will be required for that menu action.
You tried to set the menu role of preferences before adding it to the menu? It doesn't work?
Edit: OK.. just tried. It doesn't work. Let's go for the workaround.
Fixed in 2907a71c30
Automatically closed -- issue fixed for 2 weeks with no activity.