[iphone] made "empty model" message localizable.

This commit is contained in:
rachytski 2011-12-06 19:13:43 +04:00 committed by Alex Zolotarev
parent ddb8e8cae5
commit 5a5c1c043a
4 changed files with 12 additions and 0 deletions

View file

@ -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;

View file

@ -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),

View file

@ -127,6 +127,8 @@ public:
bool IsEmptyModel();
InformationDisplay & GetInformationDisplay();
// Cleanup.
void Clean();