[routing] Add the street name to verbal turn instructions #3118

Closed
zyphlar wants to merge 1 commit from announce_streets_verbally into master

1 commit

Author SHA1 Message Date
Will Bradley
8fc36384aa [routing] Add the street name to verbal turn instructions
Inserts the "nextStreet" variable into the Notifications struct
and then speaks that value with a new "onto" localized word joining
things for TTS output like "in 500 meters, turn left onto Main St."

I omitted the immediate "turn left / then turn right" notifications
since by then it's usually too late to read a street sign and it
can sound repetitious. A TODO is to check highway entrances/exits for
sane language (ideally "Take exit 123 for Main Street, City Center.)

I've added the "onto" localized string and poorly translated it into
all language files. A few languages didn't seem to have equivalents.
I also removed the period from the locale strings so announcements
flow naturally as one sentence.

The best localization would probably be to use formatter strings,
like "in 5000 feet" "turn left onto %s" so that languages with other
orderings or dynamic prepositional syntaxes can sound more natural.

Signed-off-by: Will Bradley <bradley.will@gmail.com>
2022-08-07 20:34:19 -07:00