Fix strings

Bug: 7182012
Bug: 7071211
Change-Id: I34aa508d5e4151ffdc538a3ab9ae1ddf3749b345
This commit is contained in:
Irfan Sheriff
2012-09-18 21:03:42 -07:00
parent d41fd604cb
commit fb6faab59e
2 changed files with 4 additions and 7 deletions

View File

@@ -1218,9 +1218,9 @@
<!-- Generic error message when the sleep policy could not be set. -->
<string name="wifi_setting_sleep_policy_error">There was a problem changing the setting</string>
<!-- Checkbox title for option to toggle suspend power optimizations -->
<string name="wifi_suspend_optimizations">Power save</string>
<string name="wifi_suspend_optimizations">Wi-Fi optimization</string>
<!-- Checkbox summary for option to toggle suspend power optimizations -->
<string name="wifi_suspend_optimizations_summary">Save power when screen is turned off</string>
<string name="wifi_suspend_optimizations_summary">Minimize battery usage when Wi-Fi is on</string>
<!-- Action bar text message to manually add a wifi network [CHAR LIMIT=20]-->
<string name="wifi_add_network">Add network</string>
<!-- Header for the list of wifi networks-->
@@ -1460,10 +1460,8 @@
<string name="wifi_p2p_cancel_connect_title">Cancel invitation?</string>
<!-- Message text for disconnection from one device-->
<string name="wifi_p2p_cancel_connect_message">Do you want to cancel invitation to connect with <xliff:g id="peer_name">%1$s</xliff:g>?</string>
<!-- Title for delete group dialog -->
<string name="wifi_p2p_delete_group_title">Delete group?</string>
<!-- Message text for remembered group deletion-->
<string name="wifi_p2p_delete_group_message">Do you want to delete the group <xliff:g id="group_name">%1$s</xliff:g>?</string>
<string name="wifi_p2p_delete_group_message">Forget this group?</string>
<!-- Wifi AP settings-->
<!-- Label for wifi tether checkbox. Toggles Access Point on/off -->

View File

@@ -444,8 +444,7 @@ public class WifiP2pSettings extends SettingsPreferenceFragment
int stringId = R.string.wifi_p2p_delete_group_message;
AlertDialog dialog = new AlertDialog.Builder(getActivity())
.setTitle(R.string.wifi_p2p_delete_group_title)
.setMessage(getActivity().getString(stringId, mSelectedGroup.getGroupName()))
.setMessage(getActivity().getString(stringId))
.setPositiveButton(getActivity().getString(R.string.dlg_ok), mDeleteGroupListener)
.setNegativeButton(getActivity().getString(R.string.dlg_cancel), null)
.create();