Cuisine translations support for our core localizations engine.

This commit is contained in:
Alex Zolotarev 2016-02-25 17:39:47 +03:00 committed by Sergey Yershov
parent 154f00c28e
commit efbed49e49
2 changed files with 6 additions and 3 deletions

View file

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

View file

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