Merge "Polish humanize strings for magnification page"

This commit is contained in:
Menghan Li
2022-02-14 05:39:00 +00:00
committed by Android (Google) Code Review
2 changed files with 12 additions and 6 deletions

View File

@@ -5254,9 +5254,11 @@
<string name="accessibility_screen_magnification_short_summary">Tap 3 times to zoom</string>
<!-- Short summary for nav bar Magnification. Tells the user that this feature allows the user to magnify the screen using a button in the nav bar -->
<string name="accessibility_screen_magnification_navbar_short_summary">Tap a button to zoom</string>
<!-- Intro for the accessibility preference screen to enable screen magnification gestures. [CHAR LIMIT=none] -->
<string name="accessibility_screen_magnification_intro_text">Quickly zoom in on the screen to make content larger</string>
<!-- Summary for the accessibility preference screen to enable screen magnification gestures. [CHAR LIMIT=none] -->
<string name="accessibility_screen_magnification_summary">
<![CDATA[Quickly zoom in on the screen to make content larger.<br/><br/>
<![CDATA[
<b>To zoom in:</b><br/>
{0,number,integer}. Use shortcut to start magnification<br/>
{1,number,integer}. Tap the screen<br/>
@@ -5264,10 +5266,11 @@
{3,number,integer}. Pinch with 2 fingers to adjust zoom<br/>
{4,number,integer}. Use shortcut to stop magnification<br/><br/>
<b>To zoom in temporarily:</b><br/>
{0,number,integer}. Use shortcut to start magnification<br/>
{1,number,integer}. Touch & hold anywhere on the screen<br/>
{2,number,integer}. Drag finger to move around screen<br/>
{3,number,integer}. Lift finger to stop magnification
{0,number,integer}. Make sure your magnification type is set to full screen<br/>
{1,number,integer}. Use shortcut to start magnification<br/>
{2,number,integer}. Touch & hold anywhere on the screen<br/>
{3,number,integer}. Drag finger to move around screen<br/>
{4,number,integer}. Lift finger to stop magnification
]]>
</string>
<!-- Summary for the accessibility preference screen to enable screen magnification via the nav bar. [CHAR LIMIT=none] -->

View File

@@ -100,7 +100,10 @@ public class MagnificationGesturesPreferenceController extends TogglePreferenceC
extras.putInt(AccessibilitySettings.EXTRA_TITLE_RES,
R.string.accessibility_screen_magnification_gestures_title);
String summary = context.getString(R.string.accessibility_screen_magnification_summary);
String intro = context.getString(R.string.accessibility_screen_magnification_intro_text);
extras.putCharSequence(AccessibilitySettings.EXTRA_INTRO, intro);
String summary = context.getString(R.string.accessibility_screen_magnification_summary);
final Object[] numberArguments = {1, 2, 3, 4, 5};
summary = MessageFormat.format(summary, numberArguments);
extras.putCharSequence(AccessibilitySettings.EXTRA_HTML_DESCRIPTION, summary);