Skip to content

Conversation

@manabu-nakamura
Copy link
Contributor

@manabu-nakamura manabu-nakamura commented Mar 31, 2025

The tooltip text of the close button ("Close Banner") is not localized (#245194).
en
ja
First, it is internationalized in this PR.

I can not check this PR fully because the language pack can not be used in the code-oss (#245119).

Fixes #245194

const actionBarContainer = append(this.element, $('div.action-container'));
this.actionBar = this._register(new ActionBar(actionBarContainer));
const label = item.closeLabel ?? 'Close Banner';
const label = localize('closeBanner', "Close Banner");
Copy link
Member

@TylerLeonhardt TylerLeonhardt Apr 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's keep the previous logic. Just wrap the Close Banner in the localize call.

Suggested change
const label = localize('closeBanner', "Close Banner");
const label = item.closeLabel ?? localize('closeBanner', "Close Banner");
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. I rewrote it.

@manabu-nakamura
Copy link
Contributor Author

manabu-nakamura commented Apr 1, 2025

I could check this PR.
ja2
https://github.com/microsoft/vscode-loc/blob/main/i18n/vscode-language-pack-ja/translations/main.i18n.json#L3742-L3744:

		"vs/workbench/browser/parts/banner/bannerPart": {
+			"closeBanner": "バナーを閉じる",
			"focusBanner": "バナーにフォーカス"
		},
@TylerLeonhardt
Copy link
Member

TylerLeonhardt commented Apr 1, 2025

Thank you for contributing! This will be in version 1.100. The insider build of that will go out Thursday and the stable version of that will go out early next month.

You may not see the translation in insiders right away because translations do lag a bit, but I would say by end of next week it should be there.

@TylerLeonhardt TylerLeonhardt enabled auto-merge (squash) April 1, 2025 12:47
@TylerLeonhardt TylerLeonhardt merged commit e5f20e7 into microsoft:main Apr 1, 2025
7 checks passed
@manabu-nakamura manabu-nakamura deleted the banner branch April 1, 2025 13:48
@manabu-nakamura
Copy link
Contributor Author

Will they be translated?
https://github.com/microsoft/vscode-loc/blob/main/i18n/vscode-language-pack-ja/translations/main.i18n.json:

			"closeBanner": "Close Banner"

			"closeBanner": "Close Banner",
@TylerLeonhardt
Copy link
Member

It'll take some time. Likely in the next stable release of VS Code 1.100 projected for early May

@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators May 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

4 participants