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:
authorKonstantin Shalnev <c.shalnev@corp.mail.ru>2015-10-14 16:10:36 +0300
committerKonstantin Shalnev <c.shalnev@corp.mail.ru>2015-10-14 16:10:36 +0300
commitcf025d9107ff67979a1980d41ebdccc954fba8e6 (patch)
tree7b24f034401b6d8f2ebaf52540be9a1103990a63 /routing/routing_tests/turns_tts_text_tests.cpp
parent6c404d12b95ccc0d5c45453f28f56eae982070db (diff)
parentd54a413afe6486715c3522305c0c2e6c1cabbba6 (diff)
Merge pull request #230 from bykoianko/tts-unsupported-languages-by-app
Using English in TTS if sound.txt doesn't contain the current languag
Diffstat (limited to 'routing/routing_tests/turns_tts_text_tests.cpp')
-rw-r--r--routing/routing_tests/turns_tts_text_tests.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/routing/routing_tests/turns_tts_text_tests.cpp b/routing/routing_tests/turns_tts_text_tests.cpp
index 184a96a4e4..24c952d1e4 100644
--- a/routing/routing_tests/turns_tts_text_tests.cpp
+++ b/routing/routing_tests/turns_tts_text_tests.cpp
@@ -119,13 +119,13 @@ UNIT_TEST(GetTtsTextTest)
::Settings::Metric);
Notification const notifiation4(0, 0, true, TurnDirection::TurnLeft, ::Settings::Metric);
- getTtsText.ForTestingSetLocaleWithJson(engShortJson);
+ getTtsText.ForTestingSetLocaleWithJson(engShortJson, "en");
TEST_EQUAL(getTtsText(notifiation1), "In 500 meters. Make a right turn.", ());
TEST_EQUAL(getTtsText(notifiation2), "In 300 meters. Make a left turn.", ());
TEST_EQUAL(getTtsText(notifiation3), "You have reached the destination.", ());
TEST_EQUAL(getTtsText(notifiation4), "Then. Make a left turn.", ());
- getTtsText.ForTestingSetLocaleWithJson(rusShortJson);
+ getTtsText.ForTestingSetLocaleWithJson(rusShortJson, "ru");
TEST_EQUAL(getTtsText(notifiation1), "Через 500 метров. Поворот направо.", ());
TEST_EQUAL(getTtsText(notifiation2), "Через 300 метров. Поворот налево.", ());
TEST_EQUAL(getTtsText(notifiation3), "Вы достигли конца маршрута.", ());