diff options
author | Arsentiy Milchakov <milcars@mapswithme.com> | 2019-02-28 12:25:30 +0300 |
---|---|---|
committer | Aleksey Belousov <beloal@users.noreply.github.com> | 2019-03-01 18:28:21 +0300 |
commit | ff2fa5812187ea2a0e0f898949ad8f3433845634 (patch) | |
tree | b3ae61cc2f910e80984ddac132b807b1e03578cb /platform | |
parent | 324ab8f74f116089766aa9e26f55f2d8cb268379 (diff) |
[strings] support types with : into code
Diffstat (limited to 'platform')
-rw-r--r-- | platform/localization.mm | 1 |
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]; } |