MCPcopy Index your code
hub / github.com/Audio4Linux/JDSP4Linux / initTranslator

Function initTranslator

src/main.cpp:96–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94
95#ifndef HEADLESS
96void initTranslator(const QLocale& locale) {
97 qtTranslator = new QTranslator(qApp);
98 translator = new QTranslator(qApp);
99
100 // Locale & translation setup
101 bool _ = qtTranslator->load(locale, "qt", "_", QtCompat::libraryPath(QLibraryInfo::TranslationsPath));
102 QApplication::installTranslator(qtTranslator);
103 _ = translator->load(locale, "jamesdsp", "_", ":/translations");
104 QApplication::installTranslator(translator);
105 Q_UNUSED(_)
106}
107#endif
108
109IAudioService* initAudioService() {

Callers 1

mainFunction · 0.85

Calls 2

libraryPathFunction · 0.85
loadMethod · 0.45

Tested by

no test coverage detected