-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Voice Directions translations guide
Ilya Zverev edited this page Jul 3, 2017
·
13 revisions
This article describes how to edit translations for voice directions.
MAPS.ME uses for voice direction guidance TTS (Text To Speech) subsystems of iOS and Android. So to change voice direction guidance it's enough to change its translation in a text file and regenerate some other files.
To edit sound text file you need python 2.x and ruby 2.x.
- Edit
data/sound.txt
file and edit/add strings - If you added any new languages, do
mkdir data/sound-strings/LANGCODE.json
and add languages toplatform/languages.hpp
andandroid/res/values/strings-tts.xml
. - Generate some files by running
tools/unix/generate_localizations.sh
- Check that everything works correctly
- Create a PR with two commits: (a) sound.txt (b) generated json files (c) optional — with
languages.hpp