String change - wifi tether = hotspot

bug:2664412
Change-Id: I6ca955e7fcc299ae1d69892c93c9250229610b19
This commit is contained in:
Robert Greenwalt
2010-05-08 15:20:24 -07:00
parent d2c81986c2
commit e434bfb216
7 changed files with 50 additions and 27 deletions

View File

@@ -24,11 +24,11 @@ A {
<li>You can't mount your phone's SD card on your computer when USB tethered</li><br> <li>You can't mount your phone's SD card on your computer when USB tethered</li><br>
<li>For more information, including using USB tethering with other OSs, see <a href="http://www.android.com/tether#usb">http://www.android.com/tether#usb</a></li><br> <li>For more information, including using USB tethering with other OSs, see <a href="http://www.android.com/tether#usb">http://www.android.com/tether#usb</a></li><br>
</ul> </ul>
<p><b>Wi-Fi tethering</b></p> <p><b>Portable Wi-Fi hotspot</b></p>
<span class="style1">You can turn your phone into a Wi-Fi access point, to share your phone's internet connection with one or more computers or other devices</span> <span class="style1">You can turn your phone into a portable Wi-Fi hotspot, to share your phone's internet connection with one or more computers or other devices</span>
<ul> <ul>
<li>When your phone is acting as an access point, you can't use your phone's applications to access the internet via its Wi-Fi connection</li><br> <li>When your phone is serving as a Wi-Fi hotspot, you can't use your phone's applications to access the internet via its Wi-Fi connection</li><br>
<li>You configure a Wi-Fi access point in Wi-Fi tethering settings</li><br> <li>You configure the hotspot with the Wi-Fi hotspot settings</li><br>
<li>For more information, visit <a href="http://www.android.com/tether#wifi">http://www.android.com/tether#wifi</a></li><br> <li>For more information, visit <a href="http://www.android.com/tether#wifi">http://www.android.com/tether#wifi</a></li><br>
</ul> </ul>
</body> </body>

View File

@@ -17,11 +17,11 @@ A {
</style> </style>
</head> </head>
<body> <body>
<p><b>Wi-Fi tethering</b></p> <p><b>Portable Wi-Fi hotspot</b></p>
<span class="style1">You can turn your phone into a Wi-Fi access point, to share your phone's internet connection with one or more computers or other devices</span> <span class="style1">You can turn your phone into a portable Wi-Fi hotspot, to share your phone's internet connection with one or more computers or other devices</span>
<ul> <ul>
<li>When your phone is acting as an access point, you can't use your phone's applications to access the internet via its Wi-Fi connection</li><br> <li>When your phone is serving as a Wi-Fi hotspot, you can't use your phone's applications to access the internet via its Wi-Fi connection</li><br>
<li>You configure a Wi-Fi access point in Wi-Fi tethering settings</li><br> <li>You configure the hotspot with the Wi-Fi hotspot settings</li><br>
<li>For more information, visit <a href="http://www.android.com/tether#wifi">http://www.android.com/tether#wifi</a></li><br> <li>For more information, visit <a href="http://www.android.com/tether#wifi">http://www.android.com/tether#wifi</a></li><br>
</ul> </ul>
</body> </body>

View File

@@ -889,23 +889,23 @@
<!-- Wifi AP settings--> <!-- Wifi AP settings-->
<!-- Label for wifi tether checkbox. Toggles Access Point on/off --> <!-- Label for wifi tether checkbox. Toggles Access Point on/off -->
<string name="wifi_tether_checkbox_text">Wi-Fi tethering</string> <string name="wifi_tether_checkbox_text">Portable Wi-Fi hotspot</string>
<!-- Subtext for wifi tether checkbox on success --> <!-- Subtext for wifi tether checkbox on success -->
<string name="wifi_tether_enabled_subtext">Access point <xliff:g id="network_ssid">%1$s</xliff:g> active</string> <string name="wifi_tether_enabled_subtext">Portable hotspot <xliff:g id="network_ssid">%1$s</xliff:g> active</string>
<!-- Subtext for wifi tether checkbox on failure --> <!-- Subtext for wifi tether checkbox on failure -->
<string name="wifi_tether_failed_subtext">Wi-Fi tethering error</string> <string name="wifi_tether_failed_subtext">Portable Wi-Fi hotspot error</string>
<!-- Label for Wi-fi tether settings preference --> <!-- Label for Wi-fi tether settings preference -->
<string name="wifi_tether_settings_text">Wi-Fi tethering settings</string> <string name="wifi_tether_settings_text">Portable Wi-Fi hotspot settings</string>
<!-- Subtext for Wi-fi tether settings preference --> <!-- Subtext for Wi-fi tether settings preference -->
<string name="wifi_tether_settings_subtext">Set up &amp; manage access point</string> <string name="wifi_tether_settings_subtext">Set up &amp; manage portable Wi-Fi hotspot</string>
<!-- Title of the Wi-fi settings screen --> <!-- Title of the Wi-fi settings screen -->
<string name="wifi_tether_settings_title">Wi-Fi tethering settings</string> <string name="wifi_tether_settings_title">Portable Wi-Fi hotspot settings</string>
<!-- Used to open the ssid and security dialog for Wifi Access Point --> <!-- Used to open the ssid and security dialog for Wifi Access Point -->
<string name="wifi_tether_configure_ap_text">Configure AP</string> <string name="wifi_tether_configure_ap_text">Configure Wi-Fi hotspot</string>
<!-- Subtext on configuration preference to indicate SSID and security chosen --> <!-- Subtext on configuration preference to indicate SSID and security chosen -->
<string name="wifi_tether_configure_subtext"><xliff:g id="network_ssid">%1$s</xliff:g> <xliff:g id="network_security">%2$s</xliff:g> access point</string> <string name="wifi_tether_configure_subtext"><xliff:g id="network_ssid">%1$s</xliff:g> <xliff:g id="network_security">%2$s</xliff:g> portable Wi-Fi hotspot</string>
<!-- Default access point SSID used for tethering --> <!-- Default access point SSID used for tethering -->
<string name="wifi_tether_configure_ssid_default">AndroidAP</string> <string name="wifi_tether_configure_ssid_default">AndroidHotspot</string>
<!-- Do not translate. Used for diagnostic screens, precise translation is not necessary <!-- Do not translate. Used for diagnostic screens, precise translation is not necessary
@@ -1406,12 +1406,13 @@
<string name="call_settings_summary">Set up voicemail, call forwarding, call waiting, caller ID</string> <string name="call_settings_summary">Set up voicemail, call forwarding, call waiting, caller ID</string>
<!-- Tethering controls, item title to go into the tethering settings --> <!-- Tethering controls, item title to go into the tethering settings -->
<string name="tether_settings_title">Tethering</string> <string name="tether_settings_title_usb">Tethering</string>
<string name="tether_settings_title_wifi">Portable hotspot</string>
<string name="tether_settings_title_both">Tethering &amp; portable hotspot</string>
<!-- Tethering controls, the item summary for the user to go into the tethering settings --> <!-- Tethering controls, the item summary for the user to go into the tethering settings -->
<string name="tether_settings_summary">Set up &amp; manage tethering</string> <string name="tether_settings_summary_usb">Share your phone\'s mobile data connection via USB</string>
<string name="tether_settings_summary_wifi">Share your phone\'s mobile connection as a portable Wi-Fi hotspot</string>
<!-- Title of the screen for adjusting tethering settings --> <string name="tether_settings_summary_both">Share your phone\'s mobile data connection via USB or as a portable Wi-Fi hotspot</string>
<string name="tether_screen_title">Tethering settings</string>
<!-- USB Tethering options --> <!-- USB Tethering options -->
<string name="usb_title">USB</string> <string name="usb_title">USB</string>
@@ -1428,7 +1429,7 @@
<string name="usb_tethering_errored_subtext">USB tethering error</string> <string name="usb_tethering_errored_subtext">USB tethering error</string>
<!-- Thethering help button - calls up a web view with general tethering info --> <!-- Thethering help button - calls up a web view with general tethering info -->
<string name="tethering_help_button_text">Tethering help</string> <string name="tethering_help_button_text">Help</string>
<!-- Wireless controls, item title to go into the network settings --> <!-- Wireless controls, item title to go into the network settings -->
<string name="network_settings_title">Mobile networks</string> <string name="network_settings_title">Mobile networks</string>

View File

@@ -14,8 +14,7 @@
limitations under the License. limitations under the License.
--> -->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
android:title="@string/tether_screen_title">
<CheckBoxPreference <CheckBoxPreference
android:key="usb_tether_settings" android:key="usb_tether_settings"

View File

@@ -58,8 +58,8 @@
<PreferenceScreen <PreferenceScreen
android:key="tether_settings" android:key="tether_settings"
android:title="@string/tether_settings_title" android:title="@string/tether_settings_title_both"
android:summary="@string/tether_settings_summary"> android:summary="@string/tether_settings_summary_both">
<intent <intent
android:action="android.intent.action.MAIN" android:action="android.intent.action.MAIN"
android:targetPackage="com.android.settings" android:targetPackage="com.android.settings"

View File

@@ -88,12 +88,19 @@ public class TetherSettings extends PreferenceActivity {
mUsbRegexs = cm.getTetherableUsbRegexs(); mUsbRegexs = cm.getTetherableUsbRegexs();
if (mUsbRegexs.length == 0) { if (mUsbRegexs.length == 0) {
getPreferenceScreen().removePreference(mUsbTether); getPreferenceScreen().removePreference(mUsbTether);
setTitle(R.string.tether_settings_title_wifi);
} }
mWifiRegexs = cm.getTetherableWifiRegexs(); mWifiRegexs = cm.getTetherableWifiRegexs();
if (mWifiRegexs.length == 0) { if (mWifiRegexs.length == 0) {
getPreferenceScreen().removePreference(mEnableWifiAp); getPreferenceScreen().removePreference(mEnableWifiAp);
getPreferenceScreen().removePreference(mWifiApSettings); getPreferenceScreen().removePreference(mWifiApSettings);
setTitle(R.string.tether_settings_title_usb);
} else if (mUsbRegexs.length != 0) {
// have both
setTitle(R.string.tether_settings_title_both);
} }
mWifiApEnabler = new WifiApEnabler(this, mEnableWifiAp); mWifiApEnabler = new WifiApEnabler(this, mEnableWifiAp);
mView = new WebView(this); mView = new WebView(this);

View File

@@ -123,6 +123,22 @@ public class WirelessSettings extends PreferenceActivity {
(ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE); (ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE);
if (!cm.isTetheringSupported()) { if (!cm.isTetheringSupported()) {
getPreferenceScreen().removePreference(findPreference(KEY_TETHER_SETTINGS)); getPreferenceScreen().removePreference(findPreference(KEY_TETHER_SETTINGS));
} else {
String[] usbRegexs = cm.getTetherableUsbRegexs();
String[] wifiRegexs = cm.getTetherableWifiRegexs();
Preference p = findPreference(KEY_TETHER_SETTINGS);
if (wifiRegexs.length == 0) {
p.setTitle(R.string.tether_settings_title_usb);
p.setSummary(R.string.tether_settings_summary_usb);
} else {
if (usbRegexs.length == 0) {
p.setTitle(R.string.tether_settings_title_wifi);
p.setSummary(R.string.tether_settings_summary_wifi);
} else {
p.setTitle(R.string.tether_settings_title_both);
p.setSummary(R.string.tether_settings_summary_both);
}
}
} }
} }