Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArsentiy Milchakov <milcars@mapswithme.com>2019-02-28 12:25:30 +0300
committerAleksey Belousov <beloal@users.noreply.github.com>2019-03-01 18:28:21 +0300
commitff2fa5812187ea2a0e0f898949ad8f3433845634 (patch)
treeb3ae61cc2f910e80984ddac132b807b1e03578cb /platform
parent324ab8f74f116089766aa9e26f55f2d8cb268379 (diff)
[strings] support types with : into code
Diffstat (limited to 'platform')
-rw-r--r--platform/localization.mm1
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/localization.mm b/platform/localization.mm
index 06f779e207..34a21889fb 100644
--- a/platform/localization.mm
+++ b/platform/localization.mm
@@ -10,6 +10,7 @@ std::string GetLocalizedTypeName(std::string const & type)
{
auto key = "type." + type;
std::replace(key.begin(), key.end(), '-', '.');
+ std::replace(key.begin(), key.end(), ':', '_');
return [NSLocalizedString(@(key.c_str()), @"") UTF8String];
}