Add strings for the Translate Message UI dismissal tooltip.
These strings are for the eventual Translate Message UI dismissal
tooltip, see
https://chromium-review.googlesource.com/c/chromium/src/+/3645546 for
the separate CL with functionality. These strings are being landed
before the rest of the functionality in order to make sure they land
before branch.
Bug: 1324357
Change-Id: I1cc093d23aa8bdc0b2024db25f3eb31e29770e1c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3835275
Reviewed-by: Trevor Perrier <perrier@chromium.org>
Auto-Submit: Scott Little <sclittle@chromium.org>
Commit-Queue: Scott Little <sclittle@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1036742}
diff --git a/chrome/android/expectations/lint-suppressions.xml b/chrome/android/expectations/lint-suppressions.xml
index aa3982c..97380c99 100644
--- a/chrome/android/expectations/lint-suppressions.xml
+++ b/chrome/android/expectations/lint-suppressions.xml
@@ -290,6 +290,10 @@
<!-- TODO(https://crbug.com/1332596): Remove unused resources when UX is finalized. -->
<ignore regexp="The resource `R.string.search_resumption_module_subtitle` appears to be unused"/>
+ <!-- TODO(https://crbug.com/1324357): Remove the following 2 lines after the bug is resolved. -->
+ <ignore regexp="The resource `R.string.iph_translate_message_dismissed_text` appears to be unused"/>
+ <ignore regexp="The resource `R.string.iph_translate_message_dismissed_accessibility_text` appears to be unused"/>
+
<!-- Endnote: Please specify number of suppressions when adding more -->
</issue>
<issue id="VectorPath" severity="ignore"/>
diff --git a/chrome/browser/ui/android/strings/android_chrome_strings.grd b/chrome/browser/ui/android/strings/android_chrome_strings.grd
index 6408a8f..60c6712 100644
--- a/chrome/browser/ui/android/strings/android_chrome_strings.grd
+++ b/chrome/browser/ui/android/strings/android_chrome_strings.grd
@@ -4580,6 +4580,12 @@
<message name="IDS_IPH_TRANSLATE_MENU_BUTTON_ACCESSIBILITY_TEXT" desc="The in-product-help accessibility text after a successful navigation prompting user to translate current page.">
Translate this page to any language from the More options button
</message>
+ <message name="IDS_IPH_TRANSLATE_MESSAGE_DISMISSED_TEXT" desc="The in-product-help message after the prompt for the user to translate the current page has disappeared, in order to show the user how to bring the translate prompt back.">
+ Translate pages here
+ </message>
+ <message name="IDS_IPH_TRANSLATE_MESSAGE_DISMISSED_ACCESSIBILITY_TEXT" desc="The in-product-help message spoken by screen readers after the prompt for the user to translate the current page has disappeared, in order to show the user how to bring the translate prompt back.">
+ Translate pages from the More Options button
+ </message>
<message name="IDS_IPH_SHARED_HIGHLIGHTING_BUILDER" desc="The in-product-help message to notify the user that the share action can preemptively share a link-to-text.">
New: share a link that scrolls to this text
</message>
diff --git a/chrome/browser/ui/android/strings/android_chrome_strings_grd/IDS_IPH_TRANSLATE_MESSAGE_DISMISSED_ACCESSIBILITY_TEXT.png.sha1 b/chrome/browser/ui/android/strings/android_chrome_strings_grd/IDS_IPH_TRANSLATE_MESSAGE_DISMISSED_ACCESSIBILITY_TEXT.png.sha1
new file mode 100644
index 0000000..801c794
--- /dev/null
+++ b/chrome/browser/ui/android/strings/android_chrome_strings_grd/IDS_IPH_TRANSLATE_MESSAGE_DISMISSED_ACCESSIBILITY_TEXT.png.sha1
@@ -0,0 +1 @@
+a18bd08c077d50e37c708316ad3bf80b4c1ba8df
\ No newline at end of file
diff --git a/chrome/browser/ui/android/strings/android_chrome_strings_grd/IDS_IPH_TRANSLATE_MESSAGE_DISMISSED_TEXT.png.sha1 b/chrome/browser/ui/android/strings/android_chrome_strings_grd/IDS_IPH_TRANSLATE_MESSAGE_DISMISSED_TEXT.png.sha1
new file mode 100644
index 0000000..d11f5c1
--- /dev/null
+++ b/chrome/browser/ui/android/strings/android_chrome_strings_grd/IDS_IPH_TRANSLATE_MESSAGE_DISMISSED_TEXT.png.sha1
@@ -0,0 +1 @@
+a5e139472d90b3084c21c2794b28859b32956294
\ No newline at end of file