1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

OP-227 Fixes to support for translation. Tested OK on my system (Linux)

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2299 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
edouard 2010-12-27 22:09:25 +00:00 committed by edouard
parent b8af9da689
commit dbd083caee
2 changed files with 2 additions and 2 deletions

View File

@ -130,7 +130,7 @@ SettingsDatabase *CoreImpl::settingsDatabase() const
#ifdef Q_OS_MAC #ifdef Q_OS_MAC
# define SHARE_PATH "/../Resources" # define SHARE_PATH "/../Resources"
#else #else
# define SHARE_PATH "/../share/qtcreator" # define SHARE_PATH "/../share/openpilotgcs"
#endif #endif
QString CoreImpl::resourcePath() const QString CoreImpl::resourcePath() const

View File

@ -88,7 +88,7 @@ void GeneralSettings::fillLanguageBox() const
const QString creatorTrPath = const QString creatorTrPath =
Core::ICore::instance()->resourcePath() + QLatin1String("/translations"); Core::ICore::instance()->resourcePath() + QLatin1String("/translations");
const QStringList languageFiles = QDir(creatorTrPath).entryList(QStringList(QLatin1String("qtcreator*.qm"))); const QStringList languageFiles = QDir(creatorTrPath).entryList(QStringList(QLatin1String("openpilotgcs*.qm")));
Q_FOREACH(const QString &languageFile, languageFiles) Q_FOREACH(const QString &languageFile, languageFiles)
{ {