mirror of
https://github.com/chris2511/xca.git
synced 2026-09-14 11:06:19 +05:00
allow predefined QT translation directory
use XCA_DEFAULT_QT_TRANSLATE
This commit is contained in:
parent
a75a9b2895
commit
cfa69b0766
@ -40,10 +40,16 @@ XCA_application::XCA_application(int &argc, char *argv[])
|
||||
locale = QLocale::system().name();
|
||||
|
||||
dirs << getPrefix()
|
||||
#ifdef XCA_DEFAULT_QT_TRANSLATE
|
||||
<< XCA_DEFAULT_QT_TRANSLATE
|
||||
#endif
|
||||
#ifndef WIN32
|
||||
|
||||
<< "/usr/local/share/qt4/translations/"
|
||||
<< "/usr/share/qt4/translations/"
|
||||
<< "/usr/share/qt/translations/"
|
||||
<< ".";
|
||||
#endif
|
||||
;
|
||||
|
||||
foreach(QString dir, dirs) {
|
||||
if (qtTr.load(QString("qt_%1").arg(locale), dir)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user