summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authord34d <clark@cyngn.com>2016-07-27 10:43:24 -0700
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-07-27 16:08:29 -0700
commit39a3d541b75bd3aa8ebde881fd8fbe5821257fa6 (patch)
tree76e8f65e0c6036f9a630dc77bb65a49cae48e3c0 /src
parent581f936c95135410f800ff012dc2ee146876902c (diff)
downloadpackages_apps_Settings-39a3d541b75bd3aa8ebde881fd8fbe5821257fa6.zip
packages_apps_Settings-39a3d541b75bd3aa8ebde881fd8fbe5821257fa6.tar.gz
packages_apps_Settings-39a3d541b75bd3aa8ebde881fd8fbe5821257fa6.tar.bz2
Add SIM status string for localizing voice/data strings
SIM status hard codes "voice" and "data" and therefore cannot be translated. This patch adds a format string that can now be properly translated. Change-Id: I3797b795d00aae875c0d33a1ee152f4c1e09021b TICKET: CYNGNOS-3227
Diffstat (limited to 'src')
-rw-r--r--src/com/android/settings/deviceinfo/SimStatus.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/settings/deviceinfo/SimStatus.java b/src/com/android/settings/deviceinfo/SimStatus.java
index 7410cd3..b40a255 100644
--- a/src/com/android/settings/deviceinfo/SimStatus.java
+++ b/src/com/android/settings/deviceinfo/SimStatus.java
@@ -297,7 +297,8 @@ public class SimStatus extends InstrumentedPreferenceActivity {
String dataDisplay = Utils.getServiceStateString(dataState, mRes);
- setSummaryText(KEY_SERVICE_STATE, "Voice: " + voiceDisplay + " / Data: " + dataDisplay);
+ setSummaryText(KEY_SERVICE_STATE, getString(R.string.sim_status_format_string,
+ voiceDisplay, dataDisplay));
if (serviceState.getRoaming()) {
setSummaryText(KEY_ROAMING_STATE, mRes.getString(R.string.radioInfo_roaming_in));