mirror of
https://github.com/YACReader/yacreader
synced 2025-07-26 00:44:59 -04:00
- Support FilesystemHierarchyStandard on Linux/Unix using preprocessor macros in .pro files.
- Add support for "make install" and "qmake PREFIX=" to improve YACReader packageability. - Add .desktop files for YACReader and YACReaderLibrary X11 desktop integration. - Add central YACReader.pro file as alternative to compileX11.sh - Add p7zip patch support and sourcecode check to .pro files
This commit is contained in:
@ -95,7 +95,11 @@ int main(int argc, char * argv[])
|
||||
|
||||
QTranslator translator;
|
||||
QString sufix = QLocale::system().name();
|
||||
#if defined Q_OS_UNIX && !defined Q_OS_MAC
|
||||
translator.load(QString(DATADIR)+"/YACReader/languages/yacreader_"+sufix);
|
||||
#else
|
||||
translator.load(QCoreApplication::applicationDirPath()+"/languages/yacreader_"+sufix);
|
||||
#endif
|
||||
app.installTranslator(&translator);
|
||||
|
||||
MainWindowViewer * mwv = new MainWindowViewer();
|
||||
|
Reference in New Issue
Block a user