forked from organicmaps/organicmaps-tmp
[iphone] made "empty model" message localizable.
This commit is contained in:
parent
ddb8e8cae5
commit
5a5c1c043a
4 changed files with 12 additions and 0 deletions
|
@ -120,6 +120,11 @@ Framework * m_framework = NULL;
|
|||
EAGLView * v = (EAGLView *)self.view;
|
||||
|
||||
m_framework = FrameworkFactory::CreateFramework();
|
||||
|
||||
char const * str = [NSLocalizedString(@"Nothing found. Have you tried downloading maps of the countries? Just click the downloader button at the bottom of the screen.", @"Message in the center of the screen then user zooms in but country is not downloaded") UTF8String];
|
||||
|
||||
m_framework->GetInformationDisplay().setEmptyModelMessage(str);
|
||||
|
||||
v.framework = m_framework;
|
||||
|
||||
m_StickyThreshold = 10;
|
||||
|
|
Binary file not shown.
|
@ -75,6 +75,11 @@ void Framework::OnCompassUpdate(location::CompassInfo const & info)
|
|||
Invalidate();
|
||||
}
|
||||
|
||||
InformationDisplay & Framework::GetInformationDisplay()
|
||||
{
|
||||
return m_informationDisplay;
|
||||
}
|
||||
|
||||
Framework::Framework()
|
||||
: m_hasPendingInvalidate(false),
|
||||
m_doForceUpdate(false),
|
||||
|
|
|
@ -127,6 +127,8 @@ public:
|
|||
|
||||
bool IsEmptyModel();
|
||||
|
||||
InformationDisplay & GetInformationDisplay();
|
||||
|
||||
// Cleanup.
|
||||
void Clean();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue