From 4b54e618a7e37fd69edc50fe8197f9824ae9fdf9 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Wed, 24 Jul 2013 00:55:08 +0200 Subject: [PATCH] update strings --- OsmAnd/res/values/strings.xml | 11 ++++++----- OsmAnd/src/net/osmand/plus/OsmandSettings.java | 1 + OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/OsmAnd/res/values/strings.xml b/OsmAnd/res/values/strings.xml index fe106fa08b..249296402b 100644 --- a/OsmAnd/res/values/strings.xml +++ b/OsmAnd/res/values/strings.xml @@ -9,6 +9,12 @@ 3. All your modified/created strings are in the top of the file (to make easier find what\'s translated). PLEASE: Have a look at http://code.google.com/p/osmand/wiki/UIConsistency, it may really improve your and our work :-) Thx - Hardy --> + Announce … + Configure to announce street names, traffic warnings (forced stops, speed bumps), speed camera warnings, speed limits + Announce speed limit + Announce speed limit + Announce speed cameras + Announce traffic warnings Changes in 1.5: \n\t* Voice warnings about speed limits and cameras \n\t* High density map icons @@ -28,11 +34,6 @@ To: Via: From: - Announce alarms… - Configure traffic warnings (forced stops, speed bumps), speed camera warnings, speed limits - Announce speed limit - Announce speed cameras - Announce traffic warnings \nTime span: %1$d:%2$02d:%3$02d \nTime moving: %1$d:%2$02d:%3$02d Browse map diff --git a/OsmAnd/src/net/osmand/plus/OsmandSettings.java b/OsmAnd/src/net/osmand/plus/OsmandSettings.java index 911db45695..d603565a5d 100644 --- a/OsmAnd/src/net/osmand/plus/OsmandSettings.java +++ b/OsmAnd/src/net/osmand/plus/OsmandSettings.java @@ -684,6 +684,7 @@ public class OsmandSettings { public final OsmandPreference SHOW_LANES = new BooleanPreference("show_lanes", true).makeProfile().cache(); public final OsmandPreference SPEAK_TRAFFIC_WARNINGS = new BooleanPreference("speak_traffic_warnings", true).makeProfile().cache(); + public final OsmandPreference SPEAK_STREET_NAMES = new BooleanPreference("speak_street_names", true).makeProfile().cache(); public final OsmandPreference SPEAK_SPEED_CAMERA = new BooleanPreference("speak_cameras", true).makeProfile().cache(); public final OsmandPreference SPEAK_SPEED_LIMIT = new BooleanPreference("speak_speed_limit", true).makeProfile().cache(); diff --git a/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java b/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java index 433538280d..1945af4838 100644 --- a/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java +++ b/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java @@ -392,7 +392,7 @@ public class VoiceRouter { } public String getSpeakableStreetName(RouteDirectionInfo i) { - if(i == null){ + if(i == null || !router.getSettings().SPEAK_STREET_NAMES.get()){ return ""; } if(!Algorithms.isEmpty(i.getRef())) {