Update strings for preferred networks selection menu

Change to use string resources.
Need to translate preferred_network_mode_title,
preferred_network_mode_dialogtitle, network_lte,
network_4g, and network_global.

Bug: 11193632
Change-Id: I68786d503cf8b5c2452d21d61c15f5772670cc74
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 5da301d..332d0ac 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -300,9 +300,9 @@
     <!-- Available networks screen, setting summary text -->
     <string name="sum_select_automatically">Automatically choose preferred network</string>
     <string name="register_automatically">Automatic registration\u2026</string>
-    <string name="preferred_network_mode_title">Network Mode</string>
+    <string name="preferred_network_mode_title">Preferred network type</string>
     <string name="preferred_network_mode_summary">Change the network operating mode</string>
-    <string name="preferred_network_mode_dialogtitle">Preferred network mode</string>
+    <string name="preferred_network_mode_dialogtitle">Preferred network type</string>
     <!-- Mobile network settings, summary for preferred network mode WCDMA preferred[CHAR LIMIT=100] -->
     <string name="preferred_network_mode_wcdma_perf_summary">Preferred network mode: WCDMA preferred</string>
     <!-- Mobile network settings, summary for preferred network mode GSM [CHAR LIMIT=100] -->
@@ -516,13 +516,20 @@
     <string name="multi_category_enable">Multi-category enabled</string>
     <string name="multi_category_disable">Multi-category disabled</string>
 
+    <string name="network_lte">LTE (recommended)</string>
+    <string name="network_4G">4G (recommended)</string>
+    <string name="network_3G" translatable="false">3G</string>
+    <string name="network_2G" translatable="false">2G</string>
+    <string name="network_1x" translatable="false">1x</string>
+    <string name="network_global">Global</string>
+
     <string-array name="enabled_networks_except_gsm_choices" translatable="false">
-        <item>LTE</item>
-        <item>3G</item>
+        <item>@string/network_lte</item>
+        <item>@string/network_3G</item>
     </string-array>
     <string-array name="enabled_networks_except_gsm_4g_choices" translatable="false">
-        <item>4G</item>
-        <item>3G</item>
+        <item>@string/network_4G</item>
+        <item>@string/network_3G</item>
     </string-array>
     <string-array name="enabled_networks_except_gsm_values" translatable="false">
         <item>"9"</item>
@@ -530,8 +537,8 @@
     </string-array>
 
     <string-array name="enabled_networks_except_lte_choices" translatable="false">
-        <item>3G</item>
-        <item>2G</item>
+        <item>@string/network_3G</item>
+        <item>@string/network_2G</item>
     </string-array>
     <string-array name="enabled_networks_except_lte_values" translatable="false">
         <item>"0"</item>
@@ -539,21 +546,21 @@
     </string-array>
 
     <string-array name="enabled_networks_except_gsm_lte_choices" translatable="false">
-        <item>3G</item>
+        <item>@string/network_3G</item>
     </string-array>
     <string-array name="enabled_networks_except_gsm_lte_values" translatable="false">
         <item>"0"</item>
     </string-array>
 
     <string-array name="enabled_networks_choices" translatable="false">
-        <item>LTE</item>
-        <item>3G</item>
-        <item>2G</item>
+        <item>@string/network_lte</item>
+        <item>@string/network_3G</item>
+        <item>@string/network_2G</item>
     </string-array>
     <string-array name="enabled_networks_4g_choices" translatable="false">
-        <item>4G</item>
-        <item>3G</item>
-        <item>2G</item>
+        <item>@string/network_4G</item>
+        <item>@string/network_3G</item>
+        <item>@string/network_2G</item>
     </string-array>
     <string-array name="enabled_networks_values" translatable="false">
         <item>"9"</item>
@@ -562,10 +569,10 @@
     </string-array>
 
     <string-array name="enabled_networks_cdma_choices" translatable="false">
-        <item>LTE</item>
-        <item>3G</item>
-        <item>1x</item>
-        <item>Global</item>
+        <item>@string/network_lte</item>
+        <item>@string/network_3G</item>
+        <item>@string/network_1x</item>
+        <item>@string/network_global</item>
     </string-array>
     <string-array name="enabled_networks_cdma_values" translatable="false">
         <item>"8"</item>
diff --git a/src/com/android/phone/MobileNetworkSettings.java b/src/com/android/phone/MobileNetworkSettings.java
index e035953..5136fb3 100644
--- a/src/com/android/phone/MobileNetworkSettings.java
+++ b/src/com/android/phone/MobileNetworkSettings.java
@@ -652,22 +652,22 @@
                 if (!mIsGlobalCdma) {
                     mButtonEnabledNetworks.setValue(
                             Integer.toString(Phone.NT_MODE_WCDMA_PREF));
-                    mButtonEnabledNetworks.setSummary("3G");
+                    mButtonEnabledNetworks.setSummary(R.string.network_3G);
                 } else {
                     mButtonEnabledNetworks.setValue(
                             Integer.toString(Phone.NT_MODE_LTE_CMDA_EVDO_GSM_WCDMA));
-                    mButtonEnabledNetworks.setSummary("Global");
+                    mButtonEnabledNetworks.setSummary(R.string.network_global);
                 }
                 break;
             case Phone.NT_MODE_GSM_ONLY:
                 if (!mIsGlobalCdma) {
                     mButtonEnabledNetworks.setValue(
                             Integer.toString(Phone.NT_MODE_GSM_ONLY));
-                    mButtonEnabledNetworks.setSummary("2G");
+                    mButtonEnabledNetworks.setSummary(R.string.network_2G);
                 } else {
                     mButtonEnabledNetworks.setValue(
                             Integer.toString(Phone.NT_MODE_LTE_CMDA_EVDO_GSM_WCDMA));
-                    mButtonEnabledNetworks.setSummary("Global");
+                    mButtonEnabledNetworks.setSummary(R.string.network_global);
                 }
                 break;
             case Phone.NT_MODE_LTE_GSM_WCDMA:
@@ -676,35 +676,35 @@
                 if (!mIsGlobalCdma) {
                     mButtonEnabledNetworks.setValue(
                             Integer.toString(Phone.NT_MODE_LTE_GSM_WCDMA));
-                    final String show4GForLTE = (mShow4GForLTE == true) ? "4G" : "LTE";
-                    mButtonEnabledNetworks.setSummary(show4GForLTE);
+                    mButtonEnabledNetworks.setSummary((mShow4GForLTE == true)
+                            ? R.string.network_4G : R.string.network_lte);
                 } else {
                     mButtonEnabledNetworks.setValue(
                             Integer.toString(Phone.NT_MODE_LTE_CMDA_EVDO_GSM_WCDMA));
-                    mButtonEnabledNetworks.setSummary("Global");
+                    mButtonEnabledNetworks.setSummary(R.string.network_global);
                 }
                 break;
             case Phone.NT_MODE_LTE_CDMA_AND_EVDO:
                 mButtonEnabledNetworks.setValue(
                         Integer.toString(Phone.NT_MODE_LTE_CDMA_AND_EVDO));
-                mButtonEnabledNetworks.setSummary("LTE");
+                mButtonEnabledNetworks.setSummary(R.string.network_lte);
                 break;
             case Phone.NT_MODE_CDMA:
             case Phone.NT_MODE_EVDO_NO_CDMA:
             case Phone.NT_MODE_GLOBAL:
                 mButtonEnabledNetworks.setValue(
                         Integer.toString(Phone.NT_MODE_CDMA));
-                mButtonEnabledNetworks.setSummary("3G");
+                mButtonEnabledNetworks.setSummary(R.string.network_3G);
                 break;
             case Phone.NT_MODE_CDMA_NO_EVDO:
                 mButtonEnabledNetworks.setValue(
                         Integer.toString(Phone.NT_MODE_CDMA_NO_EVDO));
-                mButtonEnabledNetworks.setSummary("1X");
+                mButtonEnabledNetworks.setSummary(R.string.network_1x);
                 break;
             case Phone.NT_MODE_LTE_CMDA_EVDO_GSM_WCDMA:
                 mButtonEnabledNetworks.setValue(
                         Integer.toString(Phone.NT_MODE_LTE_CMDA_EVDO_GSM_WCDMA));
-                mButtonEnabledNetworks.setSummary("Global");
+                mButtonEnabledNetworks.setSummary(R.string.network_global);
                 break;
             default:
                 String errMsg = "Invalid Network Mode (" + NetworkMode + "). Ignore.";