Skip to content

Voice Directions translations guide

Ilya Zverev edited this page Jul 3, 2017 · 13 revisions

Changing voice directions translations

This article describes how to edit translations for voice directions.

Abstract.

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.

How to create PR with improved voice directions translations?

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 to platform/languages.hpp and android/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