"Note Names" plugin not translated in MuseScore 4

• Jan 3, 2023 - 07:45
Reported version
4.0
Type
Plugins
Frequency
Few
Severity
S4 - Minor
Reproducibility
Always
Status
closed
Regression
Yes
Workaround
Yes
Project

since musescore 4 the "note names" plugin displays the note names according to the anglosaxon system (A B C...). I tried to change the preferences, even for chords, but I didn't find the solution. In musescore 3.5 no problem you can display the note names according to the french system (do ré mi...)

But I guess I know why: that plugin refers to MuseScore's translations of these, and those now probably have a different context, so the plugin would need to get change to reference the now correct context


Comments

Frequency Many Once

Context should probably get changed to "action"

Need to check whether this also works for Mu3, for this plugin only, not for the one that comes with MuseScore though.

Most of the needed strings just don't exist in Mu4 anymore, so far I only found

static constexpr const char* noteNames[] = {
    QT_TRANSLATE_NOOP("global", "C"),
    QT_TRANSLATE_NOOP("global", "C♯"),
    QT_TRANSLATE_NOOP("global", "D"),
    QT_TRANSLATE_NOOP("global", "D♯"),
    QT_TRANSLATE_NOOP("global", "E"),
    QT_TRANSLATE_NOOP("global", "F"),
    QT_TRANSLATE_NOOP("global", "F♯"),
    QT_TRANSLATE_NOOP("global", "G"),
    QT_TRANSLATE_NOOP("global", "G♯"),
    QT_TRANSLATE_NOOP("global", "A"),
    QT_TRANSLATE_NOOP("global", "A♯"),
    QT_TRANSLATE_NOOP("global", "B")
};

and the ones from the Edit Pitch dialog, C, C#, D, Eb, E, F, F#, G, Ab, A, Bb and B
and assorted stuff like Db from Instruments (here for Db Piccolo flute)
None of the double flat and double sharp notes

So just reusing MuseScore strings and translations doesn't seem to (fully) work anymore.

And maintaining an own set of translations is way more work than I'm prepered to do...

I've just pushed that partial fix to the GitHub repository and therefor also to the Plugin repository, so now at least C, C♯, D♭, D, D♯, E♭, E, F, F♯, G, G♯, A, A♯, B♭, and B are getting translated.
Missing are C♭, E♯, F♭, G♭ and B♯ as well as all douple-sharp and double-flat ones.
Except for German, which is translated completly ;-)

Fix version
4.1.0