From eb9c6ee0ff6f125342b478ddab8be8bea301e2df Mon Sep 17 00:00:00 2001 From: sonora Date: Tue, 20 Jun 2017 13:49:27 +0200 Subject: [PATCH] fix syntax --- OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java b/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java index 869d75f085..3fd91ca894 100644 --- a/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java +++ b/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java @@ -625,10 +625,10 @@ public class VoiceRouter { pn = pn.replace(':', ' '); pn = pn.replace(";", ", "); // Trailing blank prevents punctuation being pronounced. Replace by comma for better intonation. pn = pn.replace("/", ", "); // Slash is actually pronounced by many TTS engines, ceeating an awkward voice prompt, better replace by comma. - if ((player != null) && (!"de".equals(player.getLanguage()))) { + if ((player != null) && (!player.getLanguage().equals("de"))) { pn = pn.replace("\u00df", "ss"); // Helps non-German tts voices to pronounce German Strasse (=street) } - if ((player != null) && ("en".startsWith(player.getLanguage()))) { + if ((player != null) && (player.getLanguage().startsWith("en"))) { pn = pn.replace("SR", "S R"); // Avoid SR (as for State Route or Strada Regionale) be pronounced as "Senior" in English tts voice pn = pn.replace("Dr.", "Dr "); // Avoid pause many English TTS voices introduce after period }