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:
parent
b8af9da689
commit
dbd083caee
@ -130,7 +130,7 @@ SettingsDatabase *CoreImpl::settingsDatabase() const
|
||||
#ifdef Q_OS_MAC
|
||||
# define SHARE_PATH "/../Resources"
|
||||
#else
|
||||
# define SHARE_PATH "/../share/qtcreator"
|
||||
# define SHARE_PATH "/../share/openpilotgcs"
|
||||
#endif
|
||||
|
||||
QString CoreImpl::resourcePath() const
|
||||
|
@ -88,7 +88,7 @@ void GeneralSettings::fillLanguageBox() const
|
||||
|
||||
const QString creatorTrPath =
|
||||
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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user