git-svn-id: https://svn.code.sf.net/p/pianobooster/code/trunk@106 ba081f5d-443b-49a7-ac4b-446c3f91f371

This commit is contained in:
louisjb 2010-02-12 19:09:38 +00:00
parent 4fe7ad0cce
commit cacd197f74
3 changed files with 12 additions and 4 deletions

View File

@ -1,2 +1,8 @@
ADD_SUBDIRECTORY(src build2)
ADD_SUBDIRECTORY(translations build2/translations)
cmake_minimum_required(VERSION 2.4)
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
ADD_SUBDIRECTORY(src build)
ADD_SUBDIRECTORY(translations build/translations)

View File

@ -214,10 +214,11 @@ INSTALL( FILES pianobooster.desktop DESTINATION share/applications )
INSTALL(TARGETS pianobooster RUNTIME DESTINATION bin)
#INSTALL( index.docbook INSTALL_DESTINATION ${HTML_INSTALL_DIR}/en SUBDIR kmidimon )
INSTALL( FILES ../README.txt DESTINATION share/doc/pianobooster )
INSTALL( FILES ../README.txt DESTINATION share/pianobooster/doc/ )
INSTALL ( FILES images/pianobooster.png DESTINATION share/pixmaps )
INSTALL( FILES "${CMAKE_CURRENT_BINARY_DIR}/translations/*.qm DESTINATION share/pianobooster/translations/ )

View File

@ -47,7 +47,8 @@ int main(int argc, char *argv[])
QTranslator translator;
if (!translator.load(QSTR_APPNAME + QString("_") + locale , localeDirectory))
translator.load(QSTR_APPNAME + QString("_") + locale, QApplication::applicationDirPath());
if (!translator.load(QSTR_APPNAME + QString("_") + locale, QApplication::applicationDirPath() + "/translations/"))
translator.load(QSTR_APPNAME + QString("_") + locale, QApplication::applicationDirPath());
app.installTranslator(&translator);