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:
parent
4f5dd7117c
commit
641183b986
@ -37,16 +37,14 @@ OPMaps *OPMaps::Instance()
|
|||||||
}
|
}
|
||||||
return m_pInstance;
|
return m_pInstance;
|
||||||
}
|
}
|
||||||
|
|
||||||
OPMaps::OPMaps() : RetryLoadTile(2), useMemoryCache(true)
|
OPMaps::OPMaps() : RetryLoadTile(2), useMemoryCache(true)
|
||||||
{
|
{
|
||||||
accessmode = AccessMode::ServerAndCache;
|
accessmode = AccessMode::ServerAndCache;
|
||||||
// Need to figure out why this is *fixed* to Portugese. This casues pt-PT to be sent with every Google request
|
LanguageStr = QLocale().bcp47Name();
|
||||||
Language = LanguageType::PortuguesePortugal;
|
|
||||||
LanguageStr = LanguageType().toShortString(Language);
|
|
||||||
Cache::Instance();
|
Cache::Instance();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
OPMaps::~OPMaps()
|
OPMaps::~OPMaps()
|
||||||
{
|
{
|
||||||
TileDBcacheQueue.wait();
|
TileDBcacheQueue.wait();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user