Add string labels #98576

This commit is contained in:
Rob Lourens 2020-05-26 16:53:07 -05:00
parent b314697b4d
commit 1d5d9558e6
2 changed files with 8 additions and 2 deletions

View file

@ -157,7 +157,11 @@ export function createTOCIterator(model: TOCTreeModel | SettingsTreeGroupElement
class SettingsAccessibilityProvider implements IListAccessibilityProvider<SettingsTreeGroupElement> {
getWidgetAriaLabel(): string {
return localize('settingsTOC', "Settings Table of Contents");
return localize({
key: 'settingsTOC',
comment: ['A label for the table of contents for the full settings list']
},
"Settings Table of Contents");
}
getAriaLabel(element: SettingsTreeElement): string {

View file

@ -869,7 +869,9 @@ export class AnythingQuickAccessProvider extends PickerQuickAccessProvider<IAnyt
// Open to side / below
buttons.push({
iconClass: openSideBySideDirection === 'right' ? Codicon.splitHorizontal.classNames : Codicon.splitVertical.classNames,
tooltip: openSideBySideDirection === 'right' ? localize('openToSide', "Open to the Side") : localize('openToBottom', "Open to the Bottom")
tooltip: openSideBySideDirection === 'right' ?
localize({ key: 'openToSide', comment: ['Open this file in a split editor on the left/right side'] }, "Open to the Side") :
localize({ key: 'openToBottom', comment: ['Open this file in a split editor on the bottom'] }, "Open to the Bottom")
});
// Remove from History