Skip to content

Commit 774a9ac

Browse files
committed
Standardize search button tooltips to use the common translation string and remove obsolete localization keys
- search feature in top bar should always have label 'search in selected results', not just 'search' in some cases ├── README.md └── apps └── editor ├── package.json ├── package.nls.bg.json ├── package.nls.cs.json ├── package.nls.de.json ├── package.nls.es.json ├── package.nls.fr.json ├── package.nls.hu.json ├── package.nls.it.json ├── package.nls.ja.json ├── package.nls.json ├── package.nls.ko.json ├── package.nls.pl.json ├── package.nls.pt-br.json ├── package.nls.ru.json ├── package.nls.tr.json ├── package.nls.zh-cn.json ├── package.nls.zh-tw.json └── src ├── commands │ ├── index.ts │ ├── select-imported-files-commands │ │ └── utils │ │ └── prompt-for-imported-files.ts │ └── select-referencing-files-commands │ ├── select-referencing-files-commands.ts │ └── utils │ ├── get-referencing-files-for-uris.ts │ └── prompt-for-referencing-files.ts ├── extension.ts ├── features │ └── search-files │ └── utils │ └── show-search-results-quick-pick.ts ├── i18n │ └── translations │ ├── commands │ │ ├── index.ts │ │ └── select-referencing-files.ts │ └── common.ts └── utils └── show-configuration-quick-pick.ts
1 parent cf6c3da commit 774a9ac

4 files changed

Lines changed: 2 additions & 38 deletions

File tree

‎apps/editor/src/commands/select-imported-files-commands/utils/prompt-for-imported-files.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export const prompt_for_imported_files = async (params: {
104104

105105
const search_button = {
106106
iconPath: new vscode.ThemeIcon('search'),
107-
tooltip: t('feature.imported-files.search')
107+
tooltip: t('common.search-in-selected-results')
108108
}
109109

110110
const deep_search_button = {

‎apps/editor/src/commands/select-referencing-files-commands/utils/prompt-for-referencing-files.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export const prompt_for_referencing_files = async (params: {
104104
}
105105
const search_button = {
106106
iconPath: new vscode.ThemeIcon('search'),
107-
tooltip: t('command.select-referencing-files.search')
107+
tooltip: t('common.search-in-selected-results')
108108
}
109109
quick_pick.buttons = [search_button, close_button]
110110

‎apps/editor/src/i18n/translations/commands/select-referencing-files.ts‎

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -89,24 +89,6 @@ export const translations = {
8989
hu: 'Hivatkozó fájlok',
9090
bg: 'Рефериращи файлове'
9191
},
92-
'command.select-referencing-files.search': {
93-
en: 'Search',
94-
pl: 'Szukaj',
95-
'zh-cn': '搜索',
96-
ja: '検索',
97-
'zh-tw': '搜尋',
98-
de: 'Suchen',
99-
es: 'Buscar',
100-
fr: 'Rechercher',
101-
'pt-br': 'Pesquisar',
102-
ru: 'Поиск',
103-
ko: '검색',
104-
it: 'Cerca',
105-
tr: 'Ara',
106-
cs: 'Hledat',
107-
hu: 'Keresés',
108-
bg: 'Търсене'
109-
},
11092
'command.select-referencing-files.error-opening': {
11193
en: 'Error opening file: {error}',
11294
pl: 'Błąd otwierania pliku: {error}',

‎apps/editor/src/i18n/translations/features/imported-files.ts‎

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,6 @@ export const translations = {
1717
hu: 'Importálások feldolgozása...',
1818
bg: 'Обработка на импортиранията...'
1919
},
20-
'feature.imported-files.search': {
21-
en: 'Search',
22-
pl: 'Szukaj',
23-
'zh-cn': '搜索',
24-
ja: '検索',
25-
'zh-tw': '搜尋',
26-
de: 'Suchen',
27-
es: 'Buscar',
28-
fr: 'Rechercher',
29-
'pt-br': 'Pesquisar',
30-
ru: 'Поиск',
31-
ko: '검색',
32-
it: 'Cerca',
33-
tr: 'Ara',
34-
cs: 'Hledat',
35-
hu: 'Keresés',
36-
bg: 'Търсене'
37-
},
3820
'feature.imported-files.deep-search': {
3921
en: 'Deep Search Imports',
4022
pl: 'Głębokie wyszukiwanie importów',

0 commit comments

Comments
 (0)