sonic-visualiser / sonic-visualiser

Visualisation, analysis, and annotation of music audio recordings
https://sonicvisualiser.org
GNU General Public License v2.0
576 stars 49 forks source link

Version 5.0.1 opens in Russian whatever the setting (MacOS) #102

Open bouscram opened 2 hours ago

bouscram commented 2 hours ago

My Mac (running MacOS 15.1) is set to French, and to my surprise version 5.0.1 opened in Russian. I tried to change the setting (in the System parameters), but whatever the setting, (English, Czech and - obviously - Russian), the program uses Russian language.

cannam commented 2 hours ago

Can you check your Mac language settings (System Settings -> General -> Language & Region -> Preferred Languages - or the equivalent in French of course!) and verify that you do not have Russian listed as an accepted language?

SV has (user-contributed) translations for only Czech and Russian (as well as English). So if your system has (say) French and Russian configured in that order, it will come up in Russian even though you had French listed first, because there is no translation for French.

The reason I ask you to check this, is that two other users have reported the same thing and in both cases it turned out that they had the system language preferences set to German and then Russian (and they had either forgotten this, or never realised) so it came up in Russian because there was no German translation.

Although this behaviour is technically correct, I don't think it's desirable, and I do want to change it - I think for most users it would be less surprising it if used only the primary language and then fell back to English. But I would like to find out whether this is the situation you are seeing, or whether there is another cause for the problem in your case.

cannam commented 2 hours ago

(Incidentally, one of the reports I mentioned was for 5.0.0, and one of the reasons I made the 5.0.1 release was to try to fix this - but the fix didn't work correctly, because I misunderstood an aspect of how Qt locale support works)

bouscram commented 1 hour ago

Thanks for answering quickly. On my machine, languages are in the following order : French / English / Russian, so it should display English. What I tested initially was to change the application-level settings (at the bottom of the same pane). I must add that it works correctly for 5.0.0 on my Mac.

Removing Russian from the systemwide setting makes SV 5.0.1 open correctly in English. An interesting side effect is that now if I select Czech as application language, it displays Russian... :-/

cannam commented 1 hour ago

Thanks for the extra info. That's interesting about English being listed but not used. I wonder whether the fact that the English translation (at least en_US) is built-in to SV rather than being loaded externally makes a difference.