Skip to content

Commit

Permalink
removed invalid code
Browse files Browse the repository at this point in the history
  • Loading branch information
ronoaer committed Sep 30, 2023
1 parent 5535b6a commit 07d7fac
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions client/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down
2 changes: 0 additions & 2 deletions client/amnezia_application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 07d7fac

Please sign in to comment.