0

scanner: Set "More actions" button label as translateable.

Bug: b:375967525
Change-Id: Ib998eeb801eb13a5f3b3ddf37d403db6f1d6ade6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6301376
Reviewed-by: Ahmed Fakhry <afakhry@chromium.org>
Commit-Queue: Michelle Chen <michellegc@google.com>
Cr-Commit-Position: refs/heads/main@{#1425543}
This commit is contained in:
Michelle Chen
2025-02-26 19:15:39 -08:00
committed by Chromium LUCI CQ
parent cbd21720ff
commit 25df433b34
3 changed files with 6 additions and 3 deletions

@ -6868,6 +6868,9 @@ Here are some things you can try to get started.
<!-- Scanner -->
<!-- TODO: crbug.com/375967525 - Finalize these strings and mark them as translateable -->
<message name="IDS_ASH_SCANNER_SMART_ACTIONS_BUTTON_LABEL" desc="The label on a button that can be clicked to show more actions based on the contents of a screenshot. Example actions include creating a new doc or adding a detected event to the user's calendar.">
More actions
</message>
<message name="IDS_ASH_SCANNER_ACTION_CREATE_EVENT_LABEL" desc="The label on a button that can be clicked to create a new calendar event from the contents of a screenshot. Clicking the button will open a draft new event in Google Calendar with the event details pre-filled.">
Add to Calendar
</message>

@ -0,0 +1 @@
deea53e88c3a8e594cb44c83cbdc2d97179f40f0

@ -1553,12 +1553,11 @@ void CaptureModeSession::AddSmartActionsButton() {
RecordScannerFeatureUserState(
ScannerFeatureUserState::kScreenCaptureModeScannerButtonShown);
// TODO(crbug.com/375967525): Finalize and translate the smart actions button
// text.
AddActionButton(
base::BindRepeating(&CaptureModeSession::OnSmartActionsButtonPressed,
weak_ptr_factory_.GetWeakPtr()),
u"More actions", /*icon=*/nullptr,
l10n_util::GetStringUTF16(IDS_ASH_SCANNER_SMART_ACTIONS_BUTTON_LABEL),
/*icon=*/nullptr,
ActionButtonRank{ActionButtonType::kScanner, /*weight=*/0},
ActionButtonViewID::kSmartActionsButton);
}