Commit 5d0ba0b9 authored by Mariam Ali's avatar Mariam Ali Committed by Commit Bot

Update close guest string for translation

This CL offers both singular and plural options for the close button
string in guest mode to allow translation as mentioned in b/168224245.

Bug: none.
Change-Id: I6b3c0d0e4bbd77e2e37035e62d7068358278ebe8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2410031Reviewed-by: default avatarRamin Halavati <rhalavati@chromium.org>
Commit-Queue: Mariam Ali <alimariam@google.com>
Cr-Commit-Position: refs/heads/master@{#806999}
parent 4a60e6d0
......@@ -10605,7 +10605,10 @@ Please help our engineers fix this problem. Tell us what happened right before y
<!-- Guest Profile Menu bubble. -->
<message name="IDS_GUEST_PROFILE_MENU_CLOSE_BUTTON" desc="The text of the button offering to close all guest windows.">
Close guest
{0, plural,
=1 {Close guest}
other {Close guest}
}
</message>
<!-- User happiness tracking survey UI -->
......
7cf633fd6fae2b7fbe23d3c3cf892c15b4dcdd07
\ No newline at end of file
d5e17649bc7e9f520e5b682e04146df8a2e1e5c4
\ No newline at end of file
......@@ -593,14 +593,15 @@ void ProfileMenuView::BuildFeatureButtons() {
#endif
}
int window_count = CountBrowsersFor(profile);
if (base::FeatureList::IsEnabled(features::kNewProfilePicker) && is_guest) {
AddFeatureButton(
l10n_util::GetStringUTF16(IDS_GUEST_PROFILE_MENU_CLOSE_BUTTON),
l10n_util::GetPluralStringFUTF16(IDS_GUEST_PROFILE_MENU_CLOSE_BUTTON,
window_count),
base::BindRepeating(&ProfileMenuView::OnExitProfileButtonClicked,
base::Unretained(this)),
vector_icons::kCloseIcon);
} else {
int window_count = CountBrowsersFor(profile);
if (window_count > 1) {
AddFeatureButton(
l10n_util::GetPluralStringFUTF16(IDS_PROFILES_CLOSE_X_WINDOWS_BUTTON,
......
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