[Mac] Preferences dialog not complete while in pt_BR locale

• Jan 19, 2015 - 15:10
Type
Wording/Translation
Severity
S3 - Major
Status
closed
Project
Tags

Issue reported by Valmir Pimenta at http://musescore.org/en/node/44696


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...

Title Preferences dialog not complete while in pt_BR locale [Mac] Preferences dialog not complete while in pt_BR locale

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").

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.