Commit 2d4cbb2e authored by Abigail Klein's avatar Abigail Klein Committed by Commit Bot

[Live Caption] Update captions strings to the UXW approved copy

Screenshots:
Chrome accessibility page: https://screenshot.googleplex.com/5vU2bhoKpJvoruY
ChromeOS accessibility page: https://screenshot.googleplex.com/ALQB78FPBjvhEqD
Captions settings page: https://screenshot.googleplex.com/3LUrCWPny6kv954

AX-Relnotes: Clarified the names of captions strings in settings

Bug: 1055150
Change-Id: Ia645b35626b1e5a30e5115882362b7e0c632f60f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2398980Reviewed-by: default avatarAvi Drissman <avi@chromium.org>
Commit-Queue: Abigail Klein <abigailbklein@google.com>
Cr-Commit-Position: refs/heads/master@{#804955}
parent 7ca3f7c4
...@@ -1051,11 +1051,11 @@ ...@@ -1051,11 +1051,11 @@
<message name="IDS_OS_SETTINGS_TAG_A11Y_STARTUP_SOUND" desc="Text for search result item which, when clicked, navigates the user to accessibility settings, with a toggle to enable/disable playing a sound upon device startup."> <message name="IDS_OS_SETTINGS_TAG_A11Y_STARTUP_SOUND" desc="Text for search result item which, when clicked, navigates the user to accessibility settings, with a toggle to enable/disable playing a sound upon device startup.">
Startup sound Startup sound
</message> </message>
<message name="IDS_OS_SETTINGS_TAG_A11Y_CAPTIONS" desc="Text for search result item which, when clicked, navigates the user to accessibility captions settings."> <message name="IDS_OS_SETTINGS_TAG_A11Y_CAPTIONS" desc="Text for search result item which, when clicked, navigates the user to accessibility caption preferences.">
Captions Caption preferences
</message> </message>
<message name="IDS_OS_SETTINGS_TAG_A11Y_LIVE_CAPTIONS" desc="Text for a search result item which, when clicked, navigates the user to accessibility settings, with a toggle to enable/disable live captions."> <message name="IDS_OS_SETTINGS_TAG_A11Y_LIVE_CAPTION" desc="Text for a search result item which, when clicked, navigates the user to accessibility settings, with a toggle to enable/disable Live Caption.">
Live Captions Live Caption
</message> </message>
<message name="IDS_OS_SETTINGS_TAG_A11Y_ENABLE_SWITCH_ACCESS" desc="Text for search result item which, when clicked, navigates the user to accessibility settings, with a toggle to enable/disable switch access, which allows users to control the computer with just one or two switches."> <message name="IDS_OS_SETTINGS_TAG_A11Y_ENABLE_SWITCH_ACCESS" desc="Text for search result item which, when clicked, navigates the user to accessibility settings, with a toggle to enable/disable switch access, which allows users to control the computer with just one or two switches.">
Switch access Switch access
......
518a92dc3a4b49211860b4d3bc454a20f5bdc38f
\ No newline at end of file
03471e143151edac0bb94db03cc0e24d21ba8067
\ No newline at end of file
...@@ -53,19 +53,19 @@ ...@@ -53,19 +53,19 @@
<message name="IDS_SETTINGS_ACCESSIBLE_IMAGE_LABELS_SUBTITLE" desc="Subtitle for screen reader image labels feature."> <message name="IDS_SETTINGS_ACCESSIBLE_IMAGE_LABELS_SUBTITLE" desc="Subtitle for screen reader image labels feature.">
If an image doesn’t have a useful description, Chrome will try to provide one for you. To create descriptions, images are sent to Google. If an image doesn’t have a useful description, Chrome will try to provide one for you. To create descriptions, images are sent to Google.
</message> </message>
<message name="IDS_SETTINGS_CAPTIONS_ENABLE_LIVE_CAPTION_TITLE" desc="Name of the setting to enable Live Caption."> <message name="IDS_SETTINGS_CAPTIONS_ENABLE_LIVE_CAPTION_TITLE" desc="Name of the setting to enable Live Caption feature.">
Get captions for your media Live Caption
</message> </message>
<message name="IDS_SETTINGS_CAPTIONS_ENABLE_LIVE_CAPTION_SUBTITLE" desc="Subtitle of the setting to enable Live Caption."> <message name="IDS_SETTINGS_CAPTIONS_ENABLE_LIVE_CAPTION_SUBTITLE" desc="Description text for Live Caption feature. When media is playing (such as a video) the user will see captions on the screen. Only works in Chrome browser initially.">
Chrome automatically creates captions using Live Caption (currently available in English only) Automatically creates captions for media in Chrome browser (currently available in English only)
</message> </message>
<message name="IDS_SETTINGS_CAPTIONS_LIVE_CAPTION_DOWNLOAD_PROGRESS" desc="This message is displayed as a subtitle to the Live Caption title while the model is being downloading. It shows the download progress as a percentage and is updated dynamically."> <message name="IDS_SETTINGS_CAPTIONS_LIVE_CAPTION_DOWNLOAD_PROGRESS" desc="Download progress indicator after Live Caption is enabled. The user needs to download certain files for the feature to work.">
Downloading speech recognition files... <ph name="PERCENT">$1<ex>17</ex></ph>% Downloading speech recognition files... <ph name="PERCENT">$1<ex>17</ex></ph>%
</message> </message>
<message name="IDS_SETTINGS_CAPTIONS_LIVE_CAPTION_DOWNLOAD_COMPLETE" desc="Message displayed when the live caption files have completed downloading."> <message name="IDS_SETTINGS_CAPTIONS_LIVE_CAPTION_DOWNLOAD_COMPLETE" desc="Success message when Live Caption files have completed downloading.">
Speech recognition files downloaded Speech recognition files downloaded
</message> </message>
<message name="IDS_SETTINGS_CAPTIONS_LIVE_CAPTION_DOWNLOAD_ERROR" desc="Message displayed when there is an error downloading the live caption files."> <message name="IDS_SETTINGS_CAPTIONS_LIVE_CAPTION_DOWNLOAD_ERROR" desc="Error message when Live Caption files can’t be downloaded.">
The required files can't be downloaded. Try again later. The required files can't be downloaded. Try again later.
</message> </message>
<message name="IDS_SETTINGS_ENABLE_CARET_BROWSING_TITLE" desc="Name of the setting to enable Caret Browsing, which allows you to move around any web page using a text caret."> <message name="IDS_SETTINGS_ENABLE_CARET_BROWSING_TITLE" desc="Name of the setting to enable Caret Browsing, which allows you to move around any web page using a text caret.">
......
b27e796150aefe4b797d705ae882cd27b52c1171 4670b194f154b7a3dcac6d1f853a2c56735e7668
\ No newline at end of file \ No newline at end of file
4271555d15cf7deabdfc68334155188c659bd60f 89ba5831aaa1ea7be334ecf8f3c7c894cf819f2d
\ No newline at end of file \ No newline at end of file
...@@ -10,8 +10,11 @@ ...@@ -10,8 +10,11 @@
</message> </message>
<!-- Caption Subpage (strings used by the <settings-captions> element) --> <!-- Caption Subpage (strings used by the <settings-captions> element) -->
<message name="IDS_SETTINGS_CAPTIONS" desc="Name of the settings page which displays caption preferences."> <message name="IDS_SETTINGS_CAPTIONS" desc="Section title for caption style setting that is supported by some apps">
Captions Caption preferences
</message>
<message name="IDS_SETTINGS_CAPTIONS_SUBTITLE" desc="Settings subcopy for Caption preferences. Disclaimer that not all apps support the system caption style. Some apps don't use the web captioning standard and have their own captioning platform.">
Customize caption size and style for apps that support this setting
</message> </message>
<message name="IDS_SETTINGS_CAPTIONS_SETTINGS" desc="Name of settings section of the caption settings page."> <message name="IDS_SETTINGS_CAPTIONS_SETTINGS" desc="Name of settings section of the caption settings page.">
Settings Settings
...@@ -19,8 +22,8 @@ ...@@ -19,8 +22,8 @@
<message name="IDS_SETTINGS_CAPTIONS_PREVIEW" desc="Name of preview section of the caption settings page."> <message name="IDS_SETTINGS_CAPTIONS_PREVIEW" desc="Name of preview section of the caption settings page.">
Preview Preview
</message> </message>
<message name="IDS_SETTINGS_CAPTIONS_TEXT_SIZE" desc="Name of the caption text size preference."> <message name="IDS_SETTINGS_CAPTIONS_TEXT_SIZE" desc="Name of the caption text size preference. Text size will apply to captions and alo Live Caption when it's enabled.">
Text size Text size (Also applies to Live Caption)
</message> </message>
<message name="IDS_SETTINGS_CAPTIONS_TEXT_FONT" desc="Name of the caption text font preference."> <message name="IDS_SETTINGS_CAPTIONS_TEXT_FONT" desc="Name of the caption text font preference.">
Text font Text font
......
33ab32d6f786c17ce3efef4a0a1dc59e57d6a381
\ No newline at end of file
3a7ffbc39fcd794af75600f0c61c777fdb4856d8
\ No newline at end of file
cf655ed8640962529a2e35740866a51673a2dab4
\ No newline at end of file
...@@ -10,7 +10,9 @@ ...@@ -10,7 +10,9 @@
</cr-link-row> </cr-link-row>
</if> </if>
<if expr="not chromeos"> <if expr="not chromeos">
<cr-link-row class="hr" id="captions" label="$i18n{captionsTitle}" <cr-link-row class="hr" id="captions"
label="$i18n{captionsTitle}"
sub-label="$i18n{captionsSubtitle}"
on-click="onCaptionsClick_" on-click="onCaptionsClick_"
external$="[[captionSettingsOpensExternally_]]"> external$="[[captionSettingsOpensExternally_]]">
</cr-link-row> </cr-link-row>
......
...@@ -284,7 +284,9 @@ ...@@ -284,7 +284,9 @@
<h2>$i18n{audioAndCaptionsHeading}</h2> <h2>$i18n{audioAndCaptionsHeading}</h2>
<template is="dom-if" if="[[!isKioskModeActive_]]"> <template is="dom-if" if="[[!isKioskModeActive_]]">
<cr-link-row id="captionsSubpageButton" class="first" <cr-link-row id="captionsSubpageButton" class="first"
label="$i18n{captionsTitle}" on-click="onCaptionsClick_" label="$i18n{captionsTitle}"
sub-label="$i18n{captionsSubtitle}"
on-click="onCaptionsClick_"
role-description="$i18n{subpageArrowRoleDescription}"></cr-link-row> role-description="$i18n{subpageArrowRoleDescription}"></cr-link-row>
</template> </template>
<template is="dom-if" if="[[enableLiveCaption_]]"> <template is="dom-if" if="[[enableLiveCaption_]]">
......
...@@ -261,7 +261,7 @@ const std::vector<SearchConcept>& GetA11yLabelsSearchConcepts() { ...@@ -261,7 +261,7 @@ const std::vector<SearchConcept>& GetA11yLabelsSearchConcepts() {
const std::vector<SearchConcept>& GetA11yLiveCaptionSearchConcepts() { const std::vector<SearchConcept>& GetA11yLiveCaptionSearchConcepts() {
static const base::NoDestructor<std::vector<SearchConcept>> tags({ static const base::NoDestructor<std::vector<SearchConcept>> tags({
{IDS_OS_SETTINGS_TAG_A11Y_LIVE_CAPTIONS, {IDS_OS_SETTINGS_TAG_A11Y_LIVE_CAPTION,
mojom::kManageAccessibilitySubpagePath, mojom::kManageAccessibilitySubpagePath,
mojom::SearchResultIcon::kA11y, mojom::SearchResultIcon::kA11y,
mojom::SearchResultDefaultRank::kMedium, mojom::SearchResultDefaultRank::kMedium,
...@@ -629,7 +629,7 @@ void AccessibilitySection::RegisterHierarchy( ...@@ -629,7 +629,7 @@ void AccessibilitySection::RegisterHierarchy(
RegisterNestedSettingBulk(mojom::Subpage::kSwitchAccessOptions, RegisterNestedSettingBulk(mojom::Subpage::kSwitchAccessOptions,
kSwitchAccessSettings, generator); kSwitchAccessSettings, generator);
// Captions. // Caption preferences.
generator->RegisterTopLevelSubpage( generator->RegisterTopLevelSubpage(
IDS_SETTINGS_CAPTIONS, mojom::Subpage::kCaptions, IDS_SETTINGS_CAPTIONS, mojom::Subpage::kCaptions,
mojom::SearchResultIcon::kA11y, mojom::SearchResultDefaultRank::kMedium, mojom::SearchResultIcon::kA11y, mojom::SearchResultDefaultRank::kMedium,
......
...@@ -52,6 +52,7 @@ base::string16 GetHelpUrlWithBoard(const std::string& original_url) { ...@@ -52,6 +52,7 @@ base::string16 GetHelpUrlWithBoard(const std::string& original_url) {
void AddCaptionSubpageStrings(content::WebUIDataSource* html_source) { void AddCaptionSubpageStrings(content::WebUIDataSource* html_source) {
static constexpr webui::LocalizedString kLocalizedStrings[] = { static constexpr webui::LocalizedString kLocalizedStrings[] = {
{"captionsTitle", IDS_SETTINGS_CAPTIONS}, {"captionsTitle", IDS_SETTINGS_CAPTIONS},
{"captionsSubtitle", IDS_SETTINGS_CAPTIONS_SUBTITLE},
{"captionsSettings", IDS_SETTINGS_CAPTIONS_SETTINGS}, {"captionsSettings", IDS_SETTINGS_CAPTIONS_SETTINGS},
{"captionsPreview", IDS_SETTINGS_CAPTIONS_PREVIEW}, {"captionsPreview", IDS_SETTINGS_CAPTIONS_PREVIEW},
{"captionsTextSize", IDS_SETTINGS_CAPTIONS_TEXT_SIZE}, {"captionsTextSize", IDS_SETTINGS_CAPTIONS_TEXT_SIZE},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment