refactor: correct typo I18N::langaugesChanged => I18N::languagesChanged
This commit is contained in:
@ -213,5 +213,5 @@ void I18N::detectLanguages()
|
||||
m_translations.insert(lang, {appTranslations.value(lang), qtTranslations.value(lang)});
|
||||
|
||||
if (oldList != m_translations)
|
||||
Q_EMIT langaugesChanged(m_translations.keys());
|
||||
Q_EMIT languagesChanged(m_translations.keys());
|
||||
}
|
||||
|
||||
@ -63,10 +63,10 @@ Q_SIGNALS:
|
||||
*/
|
||||
void languageChanged(const QString language);
|
||||
/**
|
||||
* @brief langaugesChanged Emitted when the detected languages changes
|
||||
* @brief languagesChanged Emitted when the detected languages changes
|
||||
* @param languages The current list of languages (639-1 names i.e en, es)
|
||||
*/
|
||||
void langaugesChanged(const QStringList languages);
|
||||
void languagesChanged(const QStringList languages);
|
||||
|
||||
private:
|
||||
explicit I18N(QObject *parent = nullptr);
|
||||
|
||||
@ -72,7 +72,7 @@ void I18NTests::setLangTest()
|
||||
|
||||
void I18NTests::reDetectTest()
|
||||
{
|
||||
QSignalSpy spy(I18N::instance(), &I18N::langaugesChanged);
|
||||
QSignalSpy spy(I18N::instance(), &I18N::languagesChanged);
|
||||
|
||||
I18N::reDetectLanguages();
|
||||
QCOMPARE(spy.count(), 0);
|
||||
|
||||
Reference in New Issue
Block a user