From 05b804510ff24ed6031208d67ea14f8ea325d6e7 Mon Sep 17 00:00:00 2001 From: sonora Date: Mon, 25 Aug 2014 14:37:03 +0200 Subject: [PATCH] clean up settings strings to reflect navigation-only logging settings --- OsmAnd/res/values/strings.xml | 15 +++++++++------ .../plus/monitoring/OsmandMonitoringPlugin.java | 4 ++-- .../monitoring/SettingsMonitoringActivity.java | 9 +++++---- 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/OsmAnd/res/values/strings.xml b/OsmAnd/res/values/strings.xml index afebad2a98..963db6b129 100644 --- a/OsmAnd/res/values/strings.xml +++ b/OsmAnd/res/values/strings.xml @@ -9,6 +9,15 @@ 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 --> + + Log track to GPX file + General position logging to a GPX file can be turned on or off using the GPX recording widget on the map screen + Save current track to SD now + Save current GPX track + Logging interval during navigation + Choose logging interval for track recording during navigation + Tracks will be saved to track directory during navigation + Log track to GPX file during navigation Select voice guidance for navigation Voice guidance Public transport mode @@ -1821,12 +1830,6 @@ Afghanistan, Albania, Algeria, Andorra, Angola, Anguilla, Antigua and Barbuda, A OSM editing Additional settings Settings - Save current track to SD now - Save current GPX track - Logging interval - Choose positioning interval for tracks - Tracks will be saved to track directory grouped by days - Log track to GPX file Update map Reload tile Target diff --git a/OsmAnd/src/net/osmand/plus/monitoring/OsmandMonitoringPlugin.java b/OsmAnd/src/net/osmand/plus/monitoring/OsmandMonitoringPlugin.java index ae9133d1e2..20327af460 100644 --- a/OsmAnd/src/net/osmand/plus/monitoring/OsmandMonitoringPlugin.java +++ b/OsmAnd/src/net/osmand/plus/monitoring/OsmandMonitoringPlugin.java @@ -308,7 +308,7 @@ public class OsmandMonitoringPlugin extends OsmandPlugin implements MonitoringIn final ValueHolder vs = new ValueHolder(); vs.value = settings.LIVE_MONITORING_INTERVAL.get(); showIntervalChooseDialog(map, app.getString(R.string.live_monitoring_interval) + " : %s", - app.getString(R.string.save_track_to_gpx), SECONDS, MINUTES, + app.getString(R.string.save_track_to_gpx_globally), SECONDS, MINUTES, null, vs, new OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { @@ -356,7 +356,7 @@ public class OsmandMonitoringPlugin extends OsmandPlugin implements MonitoringIn // runnable.run(); //} else { showIntervalChooseDialog(map, app.getString(R.string.save_track_interval) + " : %s", - app.getString(R.string.save_track_to_gpx), SECONDS, MINUTES, choice, vs, + app.getString(R.string.save_track_to_gpx_globally), SECONDS, MINUTES, choice, vs, new OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { diff --git a/OsmAnd/src/net/osmand/plus/monitoring/SettingsMonitoringActivity.java b/OsmAnd/src/net/osmand/plus/monitoring/SettingsMonitoringActivity.java index 131e6551a0..3aaea9c103 100644 --- a/OsmAnd/src/net/osmand/plus/monitoring/SettingsMonitoringActivity.java +++ b/OsmAnd/src/net/osmand/plus/monitoring/SettingsMonitoringActivity.java @@ -59,10 +59,6 @@ public class SettingsMonitoringActivity extends SettingsBaseActivity { cat.setTitle(R.string.save_track_to_gpx); grp.addPreference(cat); - cat.addPreference(createCheckBoxPreference(settings.SAVE_TRACK_TO_GPX, R.string.save_track_to_gpx, - R.string.save_track_to_gpx_descrp)); - cat.addPreference(createTimeListPreference(settings.SAVE_TRACK_INTERVAL, SECONDS, - MINUTES, 1000, R.string.save_track_interval, R.string.save_track_interval_descr)); Preference pref = new Preference(this); pref.setTitle(R.string.save_current_track); pref.setSummary(R.string.save_current_track_descr); @@ -79,6 +75,11 @@ public class SettingsMonitoringActivity extends SettingsBaseActivity { } }); cat.addPreference(pref); + + cat.addPreference(createCheckBoxPreference(settings.SAVE_TRACK_TO_GPX, R.string.save_track_to_gpx, + R.string.save_track_to_gpx_descrp)); + cat.addPreference(createTimeListPreference(settings.SAVE_TRACK_INTERVAL, SECONDS, + MINUTES, 1000, R.string.save_track_interval, R.string.save_track_interval_descr)); }