Loading updated translations needs restarting MuseScore to take effect

• Feb 23, 2018 - 12:08
Reported version
3.0
Type
Wording/Translation
Frequency
Few
Severity
S4 - Minor
Status
closed
Regression
No
Workaround
No
Project
Tags

While switching between languages is possible in master without restarting, updating translations is not

Workaround: after updating language switch language twice


Comments

Status PR created fixed

Fixed in branch 3.x, commit 31773bd664

_Fix #269740: Retranslate when current language is updated

Previously, when you updated the current language using the Resource Manager, you would only be able to see the updated strings after restarting MuseScore. This was, because the condition to determine whether the current language had been updated was wrong, so the retranslate function would not be called. Now, the condition is correct, and the function is correctly called.
I also renamed some variables to make the code clearer to understand, and I fixed a problem with the variable localeName not being updated on a language switch, which caused that the wrong language appeared at the top of the list in the Resource Manager, and might have caused other problems too._

Fix version
3.6.0