1 Set LANGUAGES dynamically at build time, this allows easily add new languages
2 just by placing .po into src/translations dir
4 Author: Elan Ruusamäe <glen@delfi.ee>
5 --- clementine-0.5.3/src/CMakeLists.txt~ 2010-10-20 13:10:28.276756134 +0300
6 +++ clementine-0.5.3/src/CMakeLists.txt 2010-10-20 13:10:33.456551043 +0300
9 set(LINGUAS "All" CACHE STRING "A space-seperated list of translations to compile in to Clementine, or \"None\".")
10 if (LINGUAS STREQUAL "All")
46 + # build LANGUAGES from all existing .po files
47 + file(GLOB pofiles translations/*.po)
48 + foreach(pofile ${pofiles})
49 + get_filename_component(lang ${pofile} NAME_WE)
50 + list(APPEND LANGUAGES ${lang})
52 else (LINGUAS STREQUAL "All")
53 if (NOT LINGUAS OR LINGUAS STREQUAL "None")