removed invalid code
This commit is contained in:
parent
5535b6a6e3
commit
07d7fac490
2 changed files with 0 additions and 5 deletions
|
|
@ -61,9 +61,6 @@ set(AMNEZIAVPN_TS_FILES
|
|||
file(GLOB_RECURSE AMNEZIAVPN_TS_SOURCES *.qrc *.cpp *.h *.ui)
|
||||
|
||||
qt_create_translation(AMNEZIAVPN_QM_FILES ${AMNEZIAVPN_TS_SOURCES} ${AMNEZIAVPN_TS_FILES})
|
||||
#add_custom_target(amnezia_messages DEPENDS ${AMNEZIAVPN_MESSAGES})
|
||||
#add_custom_target(amnezia_translations DEPENDS ${AMNEZIAVPN_QM_FILES} amnezia_messages)
|
||||
#add_dependencies(${PROJECT} amnezia_translations)
|
||||
|
||||
set(QM_FILE_LIST "")
|
||||
foreach(FILE ${AMNEZIAVPN_QM_FILES})
|
||||
|
|
|
|||
|
|
@ -234,9 +234,7 @@ void AmneziaApplication::updateTranslator(const QLocale &locale)
|
|||
m_settings->setAppLanguage(locale);
|
||||
|
||||
QString strFileName = QString(":/translations/amneziavpn")+QLatin1String("_")+locale.name()+".qm";
|
||||
|
||||
if (m_translator->load(strFileName)) {
|
||||
qDebug() << "yyyyyyxxxxxxxx--------------" <<strFileName;
|
||||
if (QCoreApplication::installTranslator(m_translator.get())) {
|
||||
m_settings->setAppLanguage(locale);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue