git-svn-id: https://svn.code.sf.net/p/pianobooster/code/trunk@106 ba081f5d-443b-49a7-ac4b-446c3f91f371
This commit is contained in:
parent
4fe7ad0cce
commit
cacd197f74
|
@ -1,2 +1,8 @@
|
||||||
ADD_SUBDIRECTORY(src build2)
|
cmake_minimum_required(VERSION 2.4)
|
||||||
ADD_SUBDIRECTORY(translations build2/translations)
|
if(COMMAND cmake_policy)
|
||||||
|
cmake_policy(SET CMP0003 NEW)
|
||||||
|
endif(COMMAND cmake_policy)
|
||||||
|
|
||||||
|
|
||||||
|
ADD_SUBDIRECTORY(src build)
|
||||||
|
ADD_SUBDIRECTORY(translations build/translations)
|
||||||
|
|
|
@ -214,10 +214,11 @@ INSTALL( FILES pianobooster.desktop DESTINATION share/applications )
|
||||||
INSTALL(TARGETS pianobooster RUNTIME DESTINATION bin)
|
INSTALL(TARGETS pianobooster RUNTIME DESTINATION bin)
|
||||||
#INSTALL( index.docbook INSTALL_DESTINATION ${HTML_INSTALL_DIR}/en SUBDIR kmidimon )
|
#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 images/pianobooster.png DESTINATION share/pixmaps )
|
||||||
|
|
||||||
|
INSTALL( FILES "${CMAKE_CURRENT_BINARY_DIR}/translations/*.qm DESTINATION share/pianobooster/translations/ )
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,7 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
QTranslator translator;
|
QTranslator translator;
|
||||||
if (!translator.load(QSTR_APPNAME + QString("_") + locale , localeDirectory))
|
if (!translator.load(QSTR_APPNAME + QString("_") + locale , localeDirectory))
|
||||||
|
if (!translator.load(QSTR_APPNAME + QString("_") + locale, QApplication::applicationDirPath() + "/translations/"))
|
||||||
translator.load(QSTR_APPNAME + QString("_") + locale, QApplication::applicationDirPath());
|
translator.load(QSTR_APPNAME + QString("_") + locale, QApplication::applicationDirPath());
|
||||||
|
|
||||||
app.installTranslator(&translator);
|
app.installTranslator(&translator);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user