packages/apps/Superuser
修订版 | cecfd70e9f2b838952f203cb784cc0de471441f4 (tree) |
---|---|
时间 | 2011-11-23 06:20:11 |
作者 | Adam Shanks <chainsdd@gmai...> |
Commiter | Adam Shanks |
Fix some build issues on ICS AOSP due to unlocalized strings
@@ -39,7 +39,6 @@ | ||
39 | 39 | android:layout_width="match_parent" |
40 | 40 | android:layout_height="64dp" |
41 | 41 | android:paddingLeft="10dp" |
42 | - android:text=">" | |
43 | 42 | android:textSize="22sp" |
44 | 43 | android:textStyle="bold" |
45 | 44 | android:textColor="#bebebe" |
@@ -39,13 +39,13 @@ | ||
39 | 39 | android:orientation="horizontal"> |
40 | 40 | <Button android:id="@+id/pin_1" |
41 | 41 | style="@style/PinButton" |
42 | - android:text="1" /> | |
42 | + android:text="@string/one" /> | |
43 | 43 | <Button android:id="@+id/pin_2" |
44 | 44 | style="@style/PinButton" |
45 | - android:text="2" /> | |
45 | + android:text="@string/two" /> | |
46 | 46 | <Button android:id="@+id/pin_3" |
47 | 47 | style="@style/PinButton" |
48 | - android:text="3" /> | |
48 | + android:text="@string/three" /> | |
49 | 49 | </LinearLayout> |
50 | 50 | <LinearLayout |
51 | 51 | android:layout_width="match_parent" |
@@ -53,13 +53,13 @@ | ||
53 | 53 | android:orientation="horizontal"> |
54 | 54 | <Button android:id="@+id/pin_4" |
55 | 55 | style="@style/PinButton" |
56 | - android:text="4" /> | |
56 | + android:text="@string/four" /> | |
57 | 57 | <Button android:id="@+id/pin_5" |
58 | 58 | style="@style/PinButton" |
59 | - android:text="5" /> | |
59 | + android:text="@string/five" /> | |
60 | 60 | <Button android:id="@+id/pin_6" |
61 | 61 | style="@style/PinButton" |
62 | - android:text="6" /> | |
62 | + android:text="@string/six" /> | |
63 | 63 | </LinearLayout> |
64 | 64 | <LinearLayout |
65 | 65 | android:layout_width="match_parent" |
@@ -67,13 +67,13 @@ | ||
67 | 67 | android:orientation="horizontal"> |
68 | 68 | <Button android:id="@+id/pin_7" |
69 | 69 | style="@style/PinButton" |
70 | - android:text="7" /> | |
70 | + android:text="@string/seven" /> | |
71 | 71 | <Button android:id="@+id/pin_8" |
72 | 72 | style="@style/PinButton" |
73 | - android:text="8" /> | |
73 | + android:text="@string/eight" /> | |
74 | 74 | <Button android:id="@+id/pin_9" |
75 | 75 | style="@style/PinButton" |
76 | - android:text="9" /> | |
76 | + android:text="@string/nine" /> | |
77 | 77 | </LinearLayout> |
78 | 78 | <LinearLayout |
79 | 79 | android:layout_width="match_parent" |
@@ -81,12 +81,12 @@ | ||
81 | 81 | android:orientation="horizontal"> |
82 | 82 | <Button android:id="@+id/pin_cancel" |
83 | 83 | style="@style/PinButton" |
84 | - android:text="Deny" /> | |
84 | + android:text="@string/deny" /> | |
85 | 85 | <Button android:id="@+id/pin_0" |
86 | 86 | style="@style/PinButton" |
87 | - android:text="0" /> | |
87 | + android:text="@string/zero" /> | |
88 | 88 | <Button android:id="@+id/pin_ok" |
89 | 89 | style="@style/PinButton" |
90 | - android:text="Allow" /> | |
90 | + android:text="@string/allow" /> | |
91 | 91 | </LinearLayout> |
92 | 92 | </LinearLayout> |
@@ -27,7 +27,7 @@ | ||
27 | 27 | <TextView |
28 | 28 | android:layout_width="wrap_content" |
29 | 29 | android:layout_height="wrap_content" |
30 | - android:text="*#*#" /> | |
30 | + android:text="@string/before_secret_code" /> | |
31 | 31 | <EditText android:id="@+id/secret_code" |
32 | 32 | android:layout_width="wrap_content" |
33 | 33 | android:layout_height="wrap_content" |
@@ -42,7 +42,7 @@ | ||
42 | 42 | <TextView |
43 | 43 | android:layout_width="wrap_content" |
44 | 44 | android:layout_height="wrap_content" |
45 | - android:text="#*#*" /> | |
45 | + android:text="@string/after_secret_code" /> | |
46 | 46 | </LinearLayout> |
47 | 47 | <include layout="@layout/pin_layout" /> |
48 | 48 | </LinearLayout> |
@@ -26,7 +26,7 @@ | ||
26 | 26 | <TextView |
27 | 27 | android:layout_width="wrap_content" |
28 | 28 | android:layout_height="wrap_content" |
29 | - android:text="Loading..." /> | |
29 | + android:text="@string/loading" /> | |
30 | 30 | <ProgressBar |
31 | 31 | style="@android:style/Widget.ProgressBar.Small" |
32 | 32 | android:layout_width="wrap_content" |
@@ -23,7 +23,7 @@ | ||
23 | 23 | android:layout_width="match_parent" |
24 | 24 | android:layout_height="wrap_content" |
25 | 25 | android:paddingRight="10dp" |
26 | - android:text="Use global settings" /> | |
26 | + android:text="@string/use_global_settings" /> | |
27 | 27 | <LinearLayout |
28 | 28 | android:layout_width="match_parent" |
29 | 29 | android:layout_height="wrap_content" |
@@ -34,11 +34,11 @@ | ||
34 | 34 | android:layout_width="match_parent" |
35 | 35 | android:layout_height="wrap_content" |
36 | 36 | android:enabled="false" |
37 | - android:text="Notifications enabled" /> | |
37 | + android:text="@string/notifications_enabled" /> | |
38 | 38 | <CheckBox android:id="@+id/check_logging" |
39 | 39 | android:layout_width="match_parent" |
40 | 40 | android:layout_height="wrap_content" |
41 | 41 | android:enabled="false" |
42 | - android:text="Logging enabled" /> | |
42 | + android:text="@string/logging_enabled" /> | |
43 | 43 | </LinearLayout> |
44 | 44 | </LinearLayout> |
\ No newline at end of file |
@@ -39,13 +39,13 @@ | ||
39 | 39 | android:orientation="horizontal"> |
40 | 40 | <Button android:id="@+id/pin_1" |
41 | 41 | style="@style/PinButton" |
42 | - android:text="1" /> | |
42 | + android:text="@string/one" /> | |
43 | 43 | <Button android:id="@+id/pin_2" |
44 | 44 | style="@style/PinButton" |
45 | - android:text="2" /> | |
45 | + android:text="@string/two" /> | |
46 | 46 | <Button android:id="@+id/pin_3" |
47 | 47 | style="@style/PinButton" |
48 | - android:text="3" /> | |
48 | + android:text="@string/three" /> | |
49 | 49 | </LinearLayout> |
50 | 50 | <LinearLayout |
51 | 51 | android:layout_width="match_parent" |
@@ -53,13 +53,13 @@ | ||
53 | 53 | android:orientation="horizontal"> |
54 | 54 | <Button android:id="@+id/pin_4" |
55 | 55 | style="@style/PinButton" |
56 | - android:text="4" /> | |
56 | + android:text="@string/four" /> | |
57 | 57 | <Button android:id="@+id/pin_5" |
58 | 58 | style="@style/PinButton" |
59 | - android:text="5" /> | |
59 | + android:text="@string/five" /> | |
60 | 60 | <Button android:id="@+id/pin_6" |
61 | 61 | style="@style/PinButton" |
62 | - android:text="6" /> | |
62 | + android:text="@string/six" /> | |
63 | 63 | </LinearLayout> |
64 | 64 | <LinearLayout |
65 | 65 | android:layout_width="match_parent" |
@@ -67,13 +67,13 @@ | ||
67 | 67 | android:orientation="horizontal"> |
68 | 68 | <Button android:id="@+id/pin_7" |
69 | 69 | style="@style/PinButton" |
70 | - android:text="7" /> | |
70 | + android:text="@string/seven" /> | |
71 | 71 | <Button android:id="@+id/pin_8" |
72 | 72 | style="@style/PinButton" |
73 | - android:text="8" /> | |
73 | + android:text="@string/eight" /> | |
74 | 74 | <Button android:id="@+id/pin_9" |
75 | 75 | style="@style/PinButton" |
76 | - android:text="9" /> | |
76 | + android:text="@string/nine" /> | |
77 | 77 | </LinearLayout> |
78 | 78 | <LinearLayout |
79 | 79 | android:layout_width="match_parent" |
@@ -81,12 +81,12 @@ | ||
81 | 81 | android:orientation="horizontal"> |
82 | 82 | <Button android:id="@+id/pin_ok" |
83 | 83 | style="@style/PinButton" |
84 | - android:text="Allow" /> | |
84 | + android:text="@string/allow" /> | |
85 | 85 | <Button android:id="@+id/pin_0" |
86 | 86 | style="@style/PinButton" |
87 | - android:text="0" /> | |
87 | + android:text="@string/zero" /> | |
88 | 88 | <Button android:id="@+id/pin_cancel" |
89 | 89 | style="@style/PinButton" |
90 | - android:text="Deny" /> | |
90 | + android:text="@string/deny" /> | |
91 | 91 | </LinearLayout> |
92 | 92 | </LinearLayout> |
@@ -76,6 +76,21 @@ | ||
76 | 76 | <string name="detail_command">Command</string> |
77 | 77 | <string name="detail_status">Status</string> |
78 | 78 | |
79 | + <string name="use_global_settings">Use global settings</string> | |
80 | + <string name="notifications_enabled">Notifications enabled</string> | |
81 | + <string name="logging_enabled">Logging enabled</string> | |
82 | + | |
83 | + <string name="zero">0</string> | |
84 | + <string name="one">1</string> | |
85 | + <string name="two">2</string> | |
86 | + <string name="three">3</string> | |
87 | + <string name="four">4</string> | |
88 | + <string name="five">5</string> | |
89 | + <string name="six">6</string> | |
90 | + <string name="seven">7</string> | |
91 | + <string name="eight">8</string> | |
92 | + <string name="nine">9</string> | |
93 | + | |
79 | 94 | <string name="request_message">%1$s is requesting Superuser access.\n\nWarning: If you did not initiate this action, or if you do not understand this request, it\'s generally a good idea to deny it.</string> |
80 | 95 | <string name="request_more_info">Tap for more info</string> |
81 | 96 | <string name="request_less_info">Tap for less info</string> |
@@ -243,7 +258,11 @@ | ||
243 | 258 | <string name="malicious_app_uid">shares UID with Superuser</string> |
244 | 259 | <string name="malicious_app_respond">requests respond permission</string> |
245 | 260 | <string name="malicious_app_write">requests permission to write to permissions provider</string> |
246 | - | |
261 | + | |
247 | 262 | <string name="changelog_full_title">Changelog</string> |
248 | 263 | <string name="changelog_title">What\'s New</string> |
264 | + | |
265 | + <!-- Do not translate any strings below, they are here to prevent build errors --> | |
266 | + <string name="before_secret_code">*#*#</string> | |
267 | + <string name="after_secret_code">#*#*</string> | |
249 | 268 | </resources> |
@@ -71,6 +71,7 @@ public class SlidingPanel extends ViewGroup { | ||
71 | 71 | @Override |
72 | 72 | protected void onFinishInflate() { |
73 | 73 | mButton = findViewById(mButtonId); |
74 | + ((Button)mButton).setText(">"); | |
74 | 75 | if (mButton == null) { |
75 | 76 | throw new IllegalArgumentException("The handle attribute must refer to a child"); |
76 | 77 | } |