1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-03-15 07:29:15 +01:00

LP-261 Get language from host for Map labels

This commit is contained in:
Laurent Lalanne 2016-03-20 18:43:34 +01:00
parent 4f5dd7117c
commit 641183b986

View File

@ -37,16 +37,14 @@ OPMaps *OPMaps::Instance()
}
return m_pInstance;
}
OPMaps::OPMaps() : RetryLoadTile(2), useMemoryCache(true)
{
accessmode = AccessMode::ServerAndCache;
// Need to figure out why this is *fixed* to Portugese. This casues pt-PT to be sent with every Google request
Language = LanguageType::PortuguesePortugal;
LanguageStr = LanguageType().toShortString(Language);
LanguageStr = QLocale().bcp47Name();
Cache::Instance();
}
OPMaps::~OPMaps()
{
TileDBcacheQueue.wait();