Commit a6423545 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

Fix translation auto detection

parent ddd13389
......@@ -24,6 +24,7 @@ ENDMACRO(ADD_TRANSLATION_FILES)
FILE (GLOB TS_FILES ${CMAKE_SOURCE_DIR}/ts/*.ts)
set_property( DIRECTORY PROPERTY APPEND PROPERTY COMPILE_DEFINITIONS TS_DIR="${CMAKE_SOURCE_DIR}/ts/" )
ADD_TRANSLATION_FILES (VLMC_QM ${TS_FILES})
......
......@@ -35,7 +35,7 @@ LanguagePreferences::LanguagePreferences( QWidget *parent )
{
m_ui.setupUi( this );
QDir dir( "ts/", "*.qm", QDir::Name | QDir::IgnoreCase, QDir::Files );
QDir dir( TS_DIR, "*.qm", QDir::Name | QDir::IgnoreCase, QDir::Files );
QStringList tss = dir.entryList();
m_ui.comboBoxLanguage->setInsertPolicy( QComboBox::InsertAlphabetically );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment