forked from organicmaps/organicmaps
[iphone] string localizations.
This commit is contained in:
parent
7563372160
commit
ae19a29396
4 changed files with 9 additions and 8 deletions
|
@ -10,8 +10,6 @@ namespace strings
|
|||
|
||||
string temp = s;
|
||||
|
||||
LOG(LINFO, (s));
|
||||
|
||||
while (true)
|
||||
{
|
||||
offs = temp.find("%", offs);
|
||||
|
@ -46,8 +44,6 @@ namespace strings
|
|||
offs += strIt->size() - 1;
|
||||
}
|
||||
|
||||
LOG(LINFO, (res));
|
||||
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -166,11 +166,16 @@
|
|||
EAGLView * v = (EAGLView *)self.view;
|
||||
|
||||
Framework & f = GetFramework();
|
||||
char const * str = [NSLocalizedString(@"Nothing found. Have you tried downloading maps of the countries? Just click the download button at the bottom of the screen.", @"Message in the center of the screen then user zooms in but country is not downloaded") UTF8String];
|
||||
f.GetInformationDisplay().setEmptyModelString(str);
|
||||
|
||||
StringsBundle b = f.GetDefaultStringsBundle();
|
||||
|
||||
char const * downloadStr = [NSLocalizedString(@"Download", @"Settings/Downloader - Main downloader window title") UTF8String];
|
||||
f.GetInformationDisplay().setDownloadString(downloadStr);
|
||||
b.SetString("country_status_added_to_queue", [NSLocalizedString(@"%is added to the\ndownloading queue.", @"Message to display at the center of the screen when the country is added to the downloading queue") UTF8String]);
|
||||
b.SetString("country_status_downloading", [NSLocalizedString(@"Downloading%(%\\%)", @"Message to display at the center of the screen when the country is downloading") UTF8String]);
|
||||
b.SetString("country_status_download", [NSLocalizedString(@"Download%", @"Button text for the button at the center of the screen when the country is not downloaded") UTF8String]);
|
||||
b.SetString("country_status_download_failed", [NSLocalizedString(@"Downloading%\nhas failed", @"Message to display at the center of the screen when the country download has failed") UTF8String]);
|
||||
b.SetString("try_again", [NSLocalizedString(@"Try Again", @"Button text for the button under the country_status_download_failed message") UTF8String]);
|
||||
|
||||
f.SetStringsBundle(b);
|
||||
|
||||
m_StickyThreshold = 10;
|
||||
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Add table
Reference in a new issue