Commit 9e24b85b authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

Generating translation from a list.

Instead of adding another line for every new translation.
parent d9ac3bb6
...@@ -71,12 +71,11 @@ INCLUDEPATH += $$VLMC_DIRS \ ...@@ -71,12 +71,11 @@ INCLUDEPATH += $$VLMC_DIRS \
DEPENDPATH += $$VLMC_DIRS DEPENDPATH += $$VLMC_DIRS
TRANSLATIONS = ../ts/vlmc_cs.ts \ # Add traduction here, it will be automatically build by the next line.
../ts/vlmc_es.ts \ TRANSLATIONS_LIST = cs es fr jp sv pt_BR
../ts/vlmc_fr.ts \ # Add every translation in the TRANSLATION variable
../ts/vlmc_jp.ts \ for(lang, TRANSLATIONS_LIST):exists( ../ts/vlmc_$${lang}.ts ):TRANSLATIONS += ../ts/vlmc_$${lang}.ts
../ts/vlmc_sv.ts \
../ts/vlmc_pt_BR.ts
RESOURCES += ../ressources.qrc RESOURCES += ../ressources.qrc
exists( ../ts/*.qm ) { exists( ../ts/*.qm ) {
......
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