diff options
author | Alex Zolotarev <alex@maps.me> | 2016-02-25 17:39:47 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-03-23 16:49:30 +0300 |
commit | efbed49e4971b84323189070607f0913c295aef2 (patch) | |
tree | 2caa4109ea70c3ee5855e7380428440c12a60296 /platform | |
parent | 154f00c28ef18003751f6c85f8635f3d3f3c2dac (diff) |
Cuisine translations support for our core localizations engine.
Diffstat (limited to 'platform')
-rw-r--r-- | platform/get_text_by_id.cpp | 4 | ||||
-rw-r--r-- | platform/get_text_by_id.hpp | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/platform/get_text_by_id.cpp b/platform/get_text_by_id.cpp index 8e215d1f5e..e86c1bea58 100644 --- a/platform/get_text_by_id.cpp +++ b/platform/get_text_by_id.cpp @@ -11,7 +11,7 @@ namespace { -string const kDefaultLanguage = "en"; +static constexpr char const * kDefaultLanguage = "en"; string GetTextSourceString(platform::TextSource textSource) { @@ -21,6 +21,8 @@ string GetTextSourceString(platform::TextSource textSource) return string("sound-strings"); case platform::TextSource::Countries: return string("countries-strings"); + case platform::TextSource::Cuisines: + return string("cuisine-strings"); } ASSERT(false, ()); return string(); diff --git a/platform/get_text_by_id.hpp b/platform/get_text_by_id.hpp index 5486c90485..8a54a5e506 100644 --- a/platform/get_text_by_id.hpp +++ b/platform/get_text_by_id.hpp @@ -11,8 +11,9 @@ namespace platform // For the time being it's only strings for TTS. enum class TextSource { - TtsSound = 0, // maneuvers text to speech strings - Countries // countries names strings + TtsSound = 0, //!< Maneuvers text to speech strings. + Countries, //!< Countries names strings. + Cuisines //!< OSM cuisines translations. }; class GetTextById; |