Skip to content

Commit

Permalink
Fix loading of SuperCollider-specific translation files (supercollide…
Browse files Browse the repository at this point in the history
…r#4619).

The code now uses an overload of QTranslator::load()
that does a more thorough job of processing the locale to
find the appropriate translation file.
For more details, see comments in supercollider#4619.
  • Loading branch information
claremacrae authored and mossheim committed Apr 11, 2020
1 parent da7e4f7 commit 4004f47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions editors/sc-ide/core/main_function.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ int main(int argc, char* argv[]) {
qWarning("scide warning: Failed to load fallback translation file.");

// Load translator for locale
QString ideTranslationFile = "scide_" + QLocale::system().name();
const QLocale locale;
QTranslator scideTranslator;
scideTranslator.load(ideTranslationFile, ideTranslationPath);
scideTranslator.load(locale, "scide", "_", ideTranslationPath);
app.installTranslator(&scideTranslator);

// Force Fusion style to appear consistently on all platforms.
Expand Down

0 comments on commit 4004f47

Please sign in to comment.