packages/apps/Superuser
修訂 | c2808db4489756709b5c3cbcca3514a2c65dc0fa (tree) |
---|---|
時間 | 2010-05-19 08:03:59 |
作者 | ChainsDD <chainsdd@gmai...> |
Commiter | ChainsDD |
Fix localization fail
@@ -6,6 +6,7 @@ | ||
6 | 6 | <item>Toggle state</item> |
7 | 7 | </string-array> |
8 | 8 | |
9 | + <!-- Do not translate. --> | |
9 | 10 | <string-array name="preference_tap_action_values"> |
10 | 11 | <item>detail</item> |
11 | 12 | <item>forget</item> |
@@ -25,4 +25,5 @@ | ||
25 | 25 | <string name="preference_category_notification_title">Notifications</string> |
26 | 26 | <string name="preference_notification_title">Notification</string> |
27 | 27 | <string name="preference_notification_summary">Show a message in the notification bar when an app is granted SU permissions</string> |
28 | + <string name="notification_text">%s has been granted Superuser permissions</string> | |
28 | 29 | </resources> |
@@ -111,8 +111,8 @@ public class SuRequest extends Activity { | ||
111 | 111 | Intent notificationIntent = new Intent(this, Su.class); |
112 | 112 | PendingIntent contentIntent = PendingIntent.getActivity(this, 0, notificationIntent, 0); |
113 | 113 | |
114 | - String text = Su.getAppName(this, callerUid, false) + " has been granted Superuser permissions"; | |
115 | - String title = "Superuser permissions"; | |
114 | + String text = getString(R.string.notification_text, Su.getAppName(this, callerUid, false)); | |
115 | + String title = getString(R.string.app_name_perms); | |
116 | 116 | |
117 | 117 | Notification notification = new Notification(R.drawable.stat_su, text, System.currentTimeMillis()); |
118 | 118 | notification.setLatestEventInfo(context, title, text, contentIntent); |