Translate badge labels.
Bug: b:345303965 Change-Id: I4596a8ed46cf81565f61c08dbbacbf4dd54fb735 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5764664 Reviewed-by: Michelle Chen <michellegc@google.com> Auto-Submit: Darren Shen <shend@chromium.org> Commit-Queue: Darren Shen <shend@chromium.org> Cr-Commit-Position: refs/heads/main@{#1337732}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
554b126aec
commit
4f34ebd9f6
@ -7492,13 +7492,15 @@ New install
|
||||
desc="This string appears a label inside a list of search results. It indicates that there are no search results found for the given query.">
|
||||
No results found.
|
||||
</message>
|
||||
<message name="IDS_PICKER_RESULT_BADGE_LABEL_INSERT" translateable="false" desc="Label of the badge in a result that can be inserted.">
|
||||
<message name="IDS_PICKER_INSERT_RESULT_BADGE_LABEL"
|
||||
desc="This string appears as the label for a badge in a search result. It indicates that selecting the search result will insert it into the current page. For example, this badge might appear in a search result for an image, which would insert the image into the page.">
|
||||
Insert
|
||||
</message>
|
||||
<message name="IDS_PICKER_RESULT_BADGE_LABEL_OPEN" translateable="false" desc="Label of the badge in a result that can be opened.">
|
||||
<message name="IDS_PICKER_OPEN_RESULT_BADGE_LABEL"
|
||||
desc="This string appears as the label for a badge in a search result. It indicates that selecting the search result will open it in a new window. For example, this badge might appear in a search result for an image, which would open the image in a new window.">
|
||||
Open
|
||||
</message>
|
||||
<message name="IDS_PICKER_RESULT_BADGE_LABEL_CREATE" translateable="false" desc="Label of the badge in a result that can be created.">
|
||||
<message name="IDS_PICKER_CREATE_RESULT_BADGE_LABEL" translateable="false" desc="Label of the badge in a result that can be created.">
|
||||
Create
|
||||
</message>
|
||||
<message name="IDS_PICKER_FEATURE_TOUR_LEARN_MORE_BUTTON_LABEL"
|
||||
|
@ -0,0 +1 @@
|
||||
efbae10845dbb0162021dff39e938f130fa58fab
|
@ -0,0 +1 @@
|
||||
9336367331f439e64844b94903a4fda57b69c94f
|
@ -232,15 +232,15 @@ void PickerListItemView::SetBadgeAction(PickerActionType action) {
|
||||
break;
|
||||
case PickerActionType::kInsert:
|
||||
trailing_badge_->SetText(
|
||||
l10n_util::GetStringUTF16(IDS_PICKER_RESULT_BADGE_LABEL_INSERT));
|
||||
l10n_util::GetStringUTF16(IDS_PICKER_INSERT_RESULT_BADGE_LABEL));
|
||||
break;
|
||||
case PickerActionType::kOpen:
|
||||
trailing_badge_->SetText(
|
||||
l10n_util::GetStringUTF16(IDS_PICKER_RESULT_BADGE_LABEL_OPEN));
|
||||
l10n_util::GetStringUTF16(IDS_PICKER_OPEN_RESULT_BADGE_LABEL));
|
||||
break;
|
||||
case PickerActionType::kCreate:
|
||||
trailing_badge_->SetText(
|
||||
l10n_util::GetStringUTF16(IDS_PICKER_RESULT_BADGE_LABEL_CREATE));
|
||||
l10n_util::GetStringUTF16(IDS_PICKER_CREATE_RESULT_BADGE_LABEL));
|
||||
break;
|
||||
}
|
||||
badge_action_ = action;
|
||||
|
Reference in New Issue
Block a user