The 'Custom' string in 'Instrument > Order' shows untranslated
Reported version
3.x-dev
Type
Wording/Translation
Frequency
Few
Severity
S3 - Major
Reproducibility
Always
Status
closed
Regression
No
Workaround
No
Project
In 3.x (and same in 3.6 RC) OS: Windows 7 SP 1 (6.1), Arch.: x86_64, MuseScore version (64-bit): 3.6.0, revision: a8b24cf
The 'Custom' string in 'Instrument > Order' shows untranslated.
Signaled in the translators chat on 30/12/2020 https://t.me/MuseScoreTranslation/6080
Added to Trello https://trello.com/c/3WqHNe2s/88-the-custom-string-in-instrument-dialog…
Still the case in OS: Windows 7 SP 1 (6.1), Arch.: x86_64, MuseScore version (64-bit): 3.6.0, revision: 7ead81d
Fix version
3.6.0
Comments
I think this has got to do with the fact that this string is set in the contructor of the
ScoreOrder
class, and as such probably before the translation engine is ready.In reply to I think thias has got to do… by Jojo-Schmitz
I entirely trust you :)
and certainely difficult to fix.
In reply to I entirely trust you :) and… by JLWaltener
Yes, because the score order list expects this
Custom
is always available. That's why it is created when the score order list itself is created. And the score order is created "statically".Well the list does get completed, i.e. all members but "Custom" get added later, so all those are getting translated. So the solution would be to do the translations at the time the list gets completed, or even only when it gets shown, rather than when it gets initialized, first created.
Strange though that for other classes' constructors the translation does work, like for
InstrumentWidget()
(which does call the constructor forScoreOrderListModel
, which in turn calls the constructor forScoreOrder
).So being done inside a constructor apparently is not the cause.
See https://github.com/musescore/MuseScore/pull/7234
Fixed in branch 3.x, commit 8558da25da
Fix #315467: The 'Custom' string in 'Instrument > Order' shows untranslated
Fixed in branch 3.6, commit 9f3ce03c64
Fix #315467: The 'Custom' string in 'Instrument > Order' shows untranslated
In reply to See https://github.com… by Jojo-Schmitz
Excellent, will try :) Thanks Joachim.
Automatically closed -- issue fixed for 2 weeks with no activity.