diff --git a/MyTracks/res/values/do_not_translate.xml b/MyTracks/res/values/do_not_translate.xml index 372a17e48..6f79499ad 100644 --- a/MyTracks/res/values/do_not_translate.xml +++ b/MyTracks/res/values/do_not_translate.xml @@ -16,7 +16,7 @@ limitations under the License. --> - support.google.com/maps/bin/answer.py?answer=62845 + support.google.com/maps/bin/answer.py?answer=144365 http://maps.google.com/mapfiles/ms/micons/ylw-pushpin.png http://maps.google.com/mapfiles/ms/micons/blue-pushpin.png www.google.com/policies/privacy/ diff --git a/MyTracks/res/values/strings.xml b/MyTracks/res/values/strings.xml index 462d9c762..1eeae1491 100644 --- a/MyTracks/res/values/strings.xml +++ b/MyTracks/res/values/strings.xml @@ -724,8 +724,7 @@ limitations under the License. How can I edit or correct tracks for accuracy? + translation_description="In the 'Help' page, the help content answer on elevation precision."> GPS receivers measure elevations much less precisely than latitude and longitude. Elevations can sometimes be off by a few hundred feet, though relative changes are tracked more precisely. To get a good elevation measurement, make sure that you have a strong GPS signal and wait a few @@ -738,9 +737,9 @@ limitations under the License. + %1$s url. E.g., 'maps.google.com'. + %2$s url. E.g., 'google.com/fusiontables'. + %3$s url. E.g., 'docs.google.com'."> For Google Maps, go to %1$s and click on \"My Places\". For Google Fusion Tables, go to %2$s. For Google Docs, go to %3$s. @@ -773,7 +772,7 @@ limitations under the License. + %1$s url. E.g., 'support.google.com/maps/bin/answer.py?answer=144365'."> See %1$s. + translation_description="When sending a track to an existing Google Map, the text on the Maps' + list page informing the user that his maps cannot be loaded at this time."> Your maps could not be loaded at this time. + translation_description="When sending a track to an existing Google Map, the text on the 'Maps' + list page informing the user that he doesn't have any maps."> You don\'t have any maps. + translation_description="When sending a track to an existing Google Map, in the 'Maps' list + page, the label next to the maps that are public, as opposed to being unlisted."> Public + translation_description="When sending a track to an existing Google Map, the title of the page + asking the user to pick a map."> Pick a Map + translation_description="When sending a track to an existing Google Map, in the 'Maps' list + page, the label next to the maps that are unlisted, as opposed to being public."> Unlisted @@ -982,7 +981,7 @@ limitations under the License. name. E.g., 'track_name (Start)'. %1$s track name. E.g., 'track_name'."> - %1$s (Start) + %1$s (Start) @@ -1061,8 +1060,8 @@ limitations under the License. Save all to SD card... Save as %1$s @@ -1092,8 +1091,8 @@ limitations under the License. Show on map + translation_description="In the menu, to configure the split frequency, how frequent to insert a + split marker."> Split frequency @@ -1294,13 +1293,13 @@ limitations under the License. Google Maps + translation_description="When sending a track to Google Maps, the radio option to create a new + public map as opposed to use an existing map."> Create new public map + translation_description="When sending a track to Google Maps, the radio option to create a new + unlisted map as opposed to use an existing map."> Create new unlisted map + sensor. Cadence is the number of revolutions of the crank per minute. E.g., 'Cadence: 80 rpm'. + + Character limit: ~23 (1 line)"> Cadence + rate sensor. E.g., 'Hear rate: 100 bpm'. + + Character limit: ~23 (1 line)"> Heart rate + sensor. Power is the power output of the rider. E.g., 'Power: 50 W'. + + Character limit: ~23 (1 line)"> Power Backup now @@ -1439,14 +1443,14 @@ limitations under the License. Writing all tracks and settings... + translation_description="In the 'Backup' settings, under the 'SD card' section, the summary for + the 'Backup now' option explaining that all tracks and settings will be written to the SD + card."> Write a full copy of all your tracks and settings to the SD card. Restore now @@ -1474,9 +1478,9 @@ limitations under the License. Select a backup to restore + translation_description="In the 'Backup' settings, under the 'SD card' section, the summary for + the 'Restore now' option explaining that it restores all tracks and settings from the SD + card."> Restore all tracks and settings from the SD card. @@ -1492,19 +1496,25 @@ limitations under the License. + either by distance or by time. + + Character limit: ~23 (1 line)"> X axis + option for configuring the top medium speed. + + Character limit: ~23 (1 line)"> Top medium speed + the option for configuring the percentage from the average speed for the medium speed range. + + Character limit: ~23 (1 line)"> Percentage from average + translation_description="In the 'Map' settings, under the 'Fixed thresholds' configurations, the + option for configuring the top slow speed. + + Character limit: ~23 (1 line)"> Top slow speed - Track color mode + to use different colors to color a track based on slow, medium, and fast speed. + + Character limit: ~23 (1 line)"> + Track color + translation_description="In the 'Map' settings, for the 'Track color mode' dropdown, the option + to use different colors to color a track based on dynamically determined speed thresholds. + + Character limit: ~21 (1 line)"> Dynamic thresholds + translation_description="In the 'Map' settings, for the 'Track color mode' dropdown, the option + to use different colors to color a track based on fixed speed thresholds. + + Character limit: ~21 (1 line)"> Fixed thresholds + translation_description="In the 'Map' settings, for the 'Track color mode' dropdown, the option + to use a single color for all speeds. + + Character limit: ~21 (1 line)"> Single color + translation_description="In the 'Recording' settings, the summary for the 'Auto-resume' dropdown + option explaining that it configures the maximum time after which a previous recording will + not be resumed after phone reboot."> Maximum time after which a previously recording track will not be resumed after phone reboot. + dropdown option explaining that it configures the smallest distance between two recordings of + your position."> Smallest distance between two recordings of your position. GPS accuracy @@ -1616,8 +1635,8 @@ limitations under the License. GPS position will be ignored if it is not this accurate. Time interval @@ -1637,8 +1656,8 @@ limitations under the License. + dropdown option explaining that it configures the maximum distance for two recorded points for + them to be still considered as the same track."> Maximum distance between two recordings of your position. If two positions are further than this, the track will be split. @@ -1697,14 +1716,14 @@ limitations under the License. preserved. All settings have been reverted to their defaults. + translation_description="In the 'Settings' page, the summary for the 'Reset' option explaining + reverting all the settings to the default values."> Revert all your settings to the default values. @@ -1720,7 +1739,7 @@ limitations under the License. translation_description="In the 'Sensor' settings, the section header to configure the ANT+ options. Note that ANT+ is a radio standard. - Character limit: ~40 (1 line)"> + Character limit: ~26 (1 line)"> ANT+ options + Character limit: ~26 (1 line)"> Bluetooth options + the confirmation dialog message informing the user that other apps, including apps installed + in the future, will be able to control and access My Tracks data. In addition, no further + notification of third party app access will be shown."> Other apps, including future apps, will be able to control and access My Tracks data. There will be no further notification. @@ -1882,7 +1901,7 @@ limitations under the License. Make new maps public @@ -1890,15 +1909,15 @@ limitations under the License. + %1$s url. E.g., 'support.google.com/maps/bin/answer.py?answer=144365'."> New maps created in Google Maps will be public. See %1$s for more info. Make new maps unlisted @@ -1906,15 +1925,17 @@ limitations under the License. + %1$s url. E.g., 'support.google.com/maps/bin/answer.py?answer=144365'."> New maps created in Google Maps will be unlisted. See %1$s for more info. + translation_description="In settings, the section label to show additional values. + + Character limit: ~26 (1 line)"> Show @@ -1926,22 +1947,30 @@ limitations under the License. + translation_description="In the 'Stats settings, the option to show latitude and longitude. + + Character limit: ~23 (1 line)"> Latitude/Longitude + of inclination to the horizontal, also known as slope or incline. + + Character limit: ~23 (1 line)"> Grade + either speed (mi/hr) or pace (hr/mi). + + Character limit: ~23 (1 line)"> Preferred rate + either total time or moving time. + + Character limit: ~23 (1 line)"> Time measurement + either metric (km) or imperial (mi). + + Character limit: ~23 (1 line)"> Preferred units + translation_description="In the 'Settings' page, the option to switch account. + + Character limit: ~26 (1 line)"> Switch account @@ -1976,14 +2009,14 @@ limitations under the License. + %1$s url. E.g., 'support.google.com/maps/bin/answer.py?answer=144365'."> This will upload your track to Google Maps so that you can share the map url with friends. The map will be either public or unlisted depending on your setting at Settings -> Sharing. For more info on public versus unlisted, see %1$s. + translation_description="When sharing a track with friends, the title on the picker to ask the + user to select an application."> Select an application + %1$s: track description."> I think you might be interested in this track.\n\nTo view this track, use Google Earth or other mapping software.\n\n%1$s @@ -2033,7 +2066,9 @@ limitations under the License. Average speed + translation_description="In the 'Stats' page, the elevation. + + Character limit: ~23 (1 line)"> Elevation + translation_description="In the 'Stats' page, the pace like hours per mile. + + Character limit: ~23 (1 line)"> Pace + translation_description="In the 'Stats' page, the speed like miles per hour. + + Character limit: ~23 (1 line)"> Speed + %1$s: a string value of the coordinate. E.g., '2.2'"> %1$s \u00B0 + %1$d: an integer value. E.g., '2'"> %1$d %% textViews = EndToEndTestUtils.SOLO.getCurrentTextViews(parent); + for (TextView textView : textViews) { + String text = (String) textView.getText(); + if (textView.isShown() && text.endsWith(findText)) { + return textView; + } + } + return null; + } + + /** + * Gets the ChartView. + * + * @return the ChartView or null if not find + */ + static ChartView getChartView() { + ArrayList views = EndToEndTestUtils.SOLO.getViews(); + for (View view : views) { + if (view instanceof ChartView) { + return (ChartView) view; + } + } + return null; + } } diff --git a/MyTracksTest/src/com/google/android/apps/mytracks/endtoendtest/SettingTest.java b/MyTracksTest/src/com/google/android/apps/mytracks/endtoendtest/SettingTest.java index ec2796713..a420ba78c 100644 --- a/MyTracksTest/src/com/google/android/apps/mytracks/endtoendtest/SettingTest.java +++ b/MyTracksTest/src/com/google/android/apps/mytracks/endtoendtest/SettingTest.java @@ -15,6 +15,7 @@ */ package com.google.android.apps.mytracks.endtoendtest; +import com.google.android.apps.mytracks.ChartView; import com.google.android.apps.mytracks.TrackListActivity; import com.google.android.maps.mytracks.R; @@ -57,7 +58,7 @@ public class SettingTest extends ActivityInstrumentationTestCase2Changes the setting of Sharing. * */ - public void testSetting() { + public void testChangeAndReset() { EndToEndTestUtils.findMenuItem(activityMyTracks.getString(R.string.menu_settings), true); instrumentation.waitForIdleSync(); // Rotate on the settings page. @@ -110,6 +111,95 @@ public class SettingTest extends ActivityInstrumentationTestCase2