aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHerbert von Broeuschmeul <Herbert.Broeuschmeul@gmail.com>2010-10-18 22:55:20 +0200
committerHerbert von Broeuschmeul <Herbert.Broeuschmeul@gmail.com>2010-10-18 22:55:20 +0200
commitcbbd71da72fb42740d170bb459d8d5ed665516ca (patch)
treef8d41877cc2b487c9a6ce413b7f0f48210516e67
parent142734b2aceda5e4374991dc18816ccfc5a28b91 (diff)
downloadBlueGPS-cbbd71da72fb42740d170bb459d8d5ed665516ca.zip
BlueGPS-cbbd71da72fb42740d170bb459d8d5ed665516ca.tar.gz
BlueGPS-cbbd71da72fb42740d170bb459d8d5ed665516ca.tar.bz2
Separate localized string from other values.
All localized strings are now in the string.xml files while constants, defaults values and prefrerence keys are in constants.xml
-rw-r--r--res/values-fr/strings.xml2
-rw-r--r--res/values/constants.xml54
-rw-r--r--res/values/strings.xml33
3 files changed, 56 insertions, 33 deletions
diff --git a/res/values-fr/strings.xml b/res/values-fr/strings.xml
index 270f111..4d98a4a 100644
--- a/res/values-fr/strings.xml
+++ b/res/values-fr/strings.xml
@@ -19,6 +19,8 @@
along with BluetoothGPS4Droid. If not, see : http://www.gnu.org/licenses/.
-->
<resources>
+ <string name="app_name">BlueGps</string>
+
<string name="pref_start_gps_title">Start/Stop GPS</string>
<string name="pref_start_gps_summary_off">le GPS Bluetooth est arrêté</string>
<string name="pref_start_gps_summary_on">le GPS Bluetooth est démarré</string>
diff --git a/res/values/constants.xml b/res/values/constants.xml
new file mode 100644
index 0000000..a7be4e7
--- /dev/null
+++ b/res/values/constants.xml
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2010 Herbert von Broeuschmeul
+ Copyright (C) 2010 BluetoothGPS4Droid Project
+
+ This file is part of BluetoothGPS4Droid.
+
+ BluetoothGPS4Droid is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ BluetoothGPS4Droid is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with BluetoothGPS4Droid. If not, see : http://www.gnu.org/licenses/.
+-->
+<resources>
+ <string name="sirf_gga_on">PSRF103,00,00,01,01</string>
+ <string name="sirf_gll_on">PSRF103,01,00,01,01</string>
+ <string name="sirf_gll_off">PSRF103,01,00,00,01</string>
+ <string name="sirf_gsa_on">PSRF103,02,00,05,01</string>
+ <string name="sirf_gsv_on">PSRF103,03,00,05,01</string>
+ <string name="sirf_rmc_on">PSRF103,04,00,01,01</string>
+ <string name="sirf_vtg_on">PSRF103,05,00,01,01</string>
+ <string name="sirf_vtg_off">PSRF103,05,00,00,01</string>
+<!--
+ <string name="sirf_waas_on">$PSRF151,01*0F</string>
+ <string name="sirf_waas_off">$PSRF151,00*0E</string>
+-->
+ <string name="sirf_waas_on">PSRF151,01</string>
+ <string name="sirf_waas_off">PSRF151,00</string>
+
+ <string name="sirf_nmea4800_on1">A0A20018 8102010100010501050100010001000100010001000112C0 016AB0B3</string>
+ <string name="sirf_nmea_on2">A0A20002 8702 0089B0B3</string>
+ <string name="sirf_dgps_ext_on">A0A20007 85020000000000 0087B0B3</string>
+ <string name="sirf_dgps_sbas_on">A0A20007 85010000000000 0086B0B3</string>
+
+ <string name="pref_start_gps_key">startGps</string>
+ <string name="pref_recording_key">trackRecording</string>
+ <string name="pref_mindistance_key">trackMinDistance</string>
+ <string name="pref_mintime_key">trackMinTime</string>
+ <string name="pref_trackfile_directory_key">trackFileDirectory</string>
+ <string name="pref_trackfile_prefix_key">trackFilePrefix</string>
+ <string name="pref_bluetooth_device_key">bluetoothDevice</string>
+
+ <string name="defaultTrackMinDistance">0.0</string>
+ <string name="defaultTrackMinTime">0</string>
+ <string name="defaultTrackFileDirectory">/sdcard/nmea</string>
+ <string name="defaultTrackFilePrefix">btnmeatrack</string>
+</resources>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 4e08be9..2b0e5a3 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -21,39 +21,6 @@
<resources>
<string name="app_name">BlueGps</string>
- <string name="sirf_gga_on">PSRF103,00,00,01,01</string>
- <string name="sirf_gll_on">PSRF103,01,00,01,01</string>
- <string name="sirf_gll_off">PSRF103,01,00,00,01</string>
- <string name="sirf_gsa_on">PSRF103,02,00,05,01</string>
- <string name="sirf_gsv_on">PSRF103,03,00,05,01</string>
- <string name="sirf_rmc_on">PSRF103,04,00,01,01</string>
- <string name="sirf_vtg_on">PSRF103,05,00,01,01</string>
- <string name="sirf_vtg_off">PSRF103,05,00,00,01</string>
-<!--
- <string name="sirf_waas_on">$PSRF151,01*0F</string>
- <string name="sirf_waas_off">$PSRF151,00*0E</string>
--->
- <string name="sirf_waas_on">PSRF151,01</string>
- <string name="sirf_waas_off">PSRF151,00</string>
-
- <string name="sirf_nmea4800_on1">A0A20018 8102010100010501050100010001000100010001000112C0 016AB0B3</string>
- <string name="sirf_nmea_on2">A0A20002 8702 0089B0B3</string>
- <string name="sirf_dgps_ext_on">A0A20007 85020000000000 0087B0B3</string>
- <string name="sirf_dgps_sbas_on">A0A20007 85010000000000 0086B0B3</string>
-
- <string name="pref_start_gps_key">startGps</string>
- <string name="pref_recording_key">trackRecording</string>
- <string name="pref_mindistance_key">trackMinDistance</string>
- <string name="pref_mintime_key">trackMinTime</string>
- <string name="pref_trackfile_directory_key">trackFileDirectory</string>
- <string name="pref_trackfile_prefix_key">trackFilePrefix</string>
- <string name="pref_bluetooth_device_key">bluetoothDevice</string>
-
- <string name="defaultTrackMinDistance">0.0</string>
- <string name="defaultTrackMinTime">0</string>
- <string name="defaultTrackFileDirectory">/sdcard/nmea</string>
- <string name="defaultTrackFilePrefix">btnmeatrack</string>
-
<string name="pref_start_gps_title">Start/Stop GPS</string>
<string name="pref_start_gps_summary_off">Bluetooth GPS is off</string>
<string name="pref_start_gps_summary_on">Bluetooth GPS is on</string>