• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

packages/apps/Superuser


Commit MetaInfo

修訂c2808db4489756709b5c3cbcca3514a2c65dc0fa (tree)
時間2010-05-19 08:03:59
作者ChainsDD <chainsdd@gmai...>
CommiterChainsDD

Log Message

Fix localization fail

Change Summary

差異

--- a/res/values/arrays.xml
+++ b/res/values/arrays.xml
@@ -6,6 +6,7 @@
66 <item>Toggle state</item>
77 </string-array>
88
9+ <!-- Do not translate. -->
910 <string-array name="preference_tap_action_values">
1011 <item>detail</item>
1112 <item>forget</item>
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -25,4 +25,5 @@
2525 <string name="preference_category_notification_title">Notifications</string>
2626 <string name="preference_notification_title">Notification</string>
2727 <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>
2829 </resources>
--- a/src/com/noshufou/android/su/SuRequest.java
+++ b/src/com/noshufou/android/su/SuRequest.java
@@ -111,8 +111,8 @@ public class SuRequest extends Activity {
111111 Intent notificationIntent = new Intent(this, Su.class);
112112 PendingIntent contentIntent = PendingIntent.getActivity(this, 0, notificationIntent, 0);
113113
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);
116116
117117 Notification notification = new Notification(R.drawable.stat_su, text, System.currentTimeMillis());
118118 notification.setLatestEventInfo(context, title, text, contentIntent);