From 11aa40ea9d05d73c9227806f80bbaeb185c81555 Mon Sep 17 00:00:00 2001 From: naumov Date: Tue, 30 Jul 2024 16:17:32 +0200 Subject: [PATCH 1/2] CB-5355 change panels naming --- .../plugin-data-viewer-result-trace-details/src/locales/en.ts | 3 ++- .../plugin-data-viewer-result-trace-details/src/locales/fr.ts | 3 ++- .../plugin-data-viewer-result-trace-details/src/locales/it.ts | 3 ++- .../plugin-data-viewer-result-trace-details/src/locales/ru.ts | 3 ++- .../plugin-data-viewer-result-trace-details/src/locales/zh.ts | 3 ++- .../SQLEditor/SQLCodeEditorPanel/SQLCodeEditorPanelService.ts | 1 + webapp/packages/plugin-sql-editor/src/locales/en.ts | 3 ++- webapp/packages/plugin-sql-editor/src/locales/it.ts | 3 ++- webapp/packages/plugin-sql-editor/src/locales/ru.ts | 3 ++- webapp/packages/plugin-sql-editor/src/locales/zh.ts | 3 ++- 10 files changed, 19 insertions(+), 9 deletions(-) diff --git a/webapp/packages/plugin-data-viewer-result-trace-details/src/locales/en.ts b/webapp/packages/plugin-data-viewer-result-trace-details/src/locales/en.ts index fa1dbc8fe5..d891e536dd 100644 --- a/webapp/packages/plugin-data-viewer-result-trace-details/src/locales/en.ts +++ b/webapp/packages/plugin-data-viewer-result-trace-details/src/locales/en.ts @@ -6,6 +6,7 @@ * you may not use this file except in compliance with the License. */ export default [ - ['plugin_data_viewer_result_trace_details', 'Result details'], + ['plugin_data_viewer_result_trace_details', 'Details'], + ['plugin_data_viewer_result_trace_details_tooltip', 'Open Result details'], ['plugin_data_viewer_result_trace_no_data_placeholder', 'No trace details were found'], ]; diff --git a/webapp/packages/plugin-data-viewer-result-trace-details/src/locales/fr.ts b/webapp/packages/plugin-data-viewer-result-trace-details/src/locales/fr.ts index fa1dbc8fe5..d891e536dd 100644 --- a/webapp/packages/plugin-data-viewer-result-trace-details/src/locales/fr.ts +++ b/webapp/packages/plugin-data-viewer-result-trace-details/src/locales/fr.ts @@ -6,6 +6,7 @@ * you may not use this file except in compliance with the License. */ export default [ - ['plugin_data_viewer_result_trace_details', 'Result details'], + ['plugin_data_viewer_result_trace_details', 'Details'], + ['plugin_data_viewer_result_trace_details_tooltip', 'Open Result details'], ['plugin_data_viewer_result_trace_no_data_placeholder', 'No trace details were found'], ]; diff --git a/webapp/packages/plugin-data-viewer-result-trace-details/src/locales/it.ts b/webapp/packages/plugin-data-viewer-result-trace-details/src/locales/it.ts index fa1dbc8fe5..d891e536dd 100644 --- a/webapp/packages/plugin-data-viewer-result-trace-details/src/locales/it.ts +++ b/webapp/packages/plugin-data-viewer-result-trace-details/src/locales/it.ts @@ -6,6 +6,7 @@ * you may not use this file except in compliance with the License. */ export default [ - ['plugin_data_viewer_result_trace_details', 'Result details'], + ['plugin_data_viewer_result_trace_details', 'Details'], + ['plugin_data_viewer_result_trace_details_tooltip', 'Open Result details'], ['plugin_data_viewer_result_trace_no_data_placeholder', 'No trace details were found'], ]; diff --git a/webapp/packages/plugin-data-viewer-result-trace-details/src/locales/ru.ts b/webapp/packages/plugin-data-viewer-result-trace-details/src/locales/ru.ts index 060c0ea8b7..6dd5966004 100644 --- a/webapp/packages/plugin-data-viewer-result-trace-details/src/locales/ru.ts +++ b/webapp/packages/plugin-data-viewer-result-trace-details/src/locales/ru.ts @@ -6,6 +6,7 @@ * you may not use this file except in compliance with the License. */ export default [ - ['plugin_data_viewer_result_trace_details', 'Детализация результата'], + ['plugin_data_viewer_result_trace_details', 'Детали'], + ['plugin_data_viewer_result_trace_details_tooltip', 'Открыть детали результата'], ['plugin_data_viewer_result_trace_no_data_placeholder', 'Детали результата не найдены'], ]; diff --git a/webapp/packages/plugin-data-viewer-result-trace-details/src/locales/zh.ts b/webapp/packages/plugin-data-viewer-result-trace-details/src/locales/zh.ts index fa1dbc8fe5..d891e536dd 100644 --- a/webapp/packages/plugin-data-viewer-result-trace-details/src/locales/zh.ts +++ b/webapp/packages/plugin-data-viewer-result-trace-details/src/locales/zh.ts @@ -6,6 +6,7 @@ * you may not use this file except in compliance with the License. */ export default [ - ['plugin_data_viewer_result_trace_details', 'Result details'], + ['plugin_data_viewer_result_trace_details', 'Details'], + ['plugin_data_viewer_result_trace_details_tooltip', 'Open Result details'], ['plugin_data_viewer_result_trace_no_data_placeholder', 'No trace details were found'], ]; diff --git a/webapp/packages/plugin-sql-editor-new/src/SQLEditor/SQLCodeEditorPanel/SQLCodeEditorPanelService.ts b/webapp/packages/plugin-sql-editor-new/src/SQLEditor/SQLCodeEditorPanel/SQLCodeEditorPanelService.ts index fe3a087017..8ea79ccb3d 100644 --- a/webapp/packages/plugin-sql-editor-new/src/SQLEditor/SQLCodeEditorPanel/SQLCodeEditorPanelService.ts +++ b/webapp/packages/plugin-sql-editor-new/src/SQLEditor/SQLCodeEditorPanel/SQLCodeEditorPanelService.ts @@ -20,6 +20,7 @@ export class SQLCodeEditorPanelService { key: 'sql-editor', icon: '/icons/sql_script_sm.svg', name: 'sql_editor_script_editor', + title: 'sql_editor_script_editor_tooltip', isHidden: (_, props) => props?.data.dataSource?.hasFeature(ESqlDataSourceFeatures.script) !== true, panel: () => SQLCodeEditorPanel, }); diff --git a/webapp/packages/plugin-sql-editor/src/locales/en.ts b/webapp/packages/plugin-sql-editor/src/locales/en.ts index 84fc1cc25f..c683c099fe 100644 --- a/webapp/packages/plugin-sql-editor/src/locales/en.ts +++ b/webapp/packages/plugin-sql-editor/src/locales/en.ts @@ -10,7 +10,8 @@ export default [ ['sql_editor_settings_insert_table_aliases_name', 'Insert table aliases (in FROM clause)'], ['sql_editor_settings_insert_table_aliases_desc', 'Automatically inserts table aliases'], ['sql_editor_menu', 'SQL Editor'], - ['sql_editor_script_editor', 'SQL Editor'], + ['sql_editor_script_editor', 'Editor'], + ['sql_editor_script_editor_tooltip', 'Open SQL Editor'], ['sql_editor_alias_loading_error', 'Error occurred while loading node alias'], ['sql_editor_restore_message', 'Do you want to restore the connection?'], ['sql_editor_restore', 'Restore'], diff --git a/webapp/packages/plugin-sql-editor/src/locales/it.ts b/webapp/packages/plugin-sql-editor/src/locales/it.ts index eea24f0aff..2a9ca95908 100644 --- a/webapp/packages/plugin-sql-editor/src/locales/it.ts +++ b/webapp/packages/plugin-sql-editor/src/locales/it.ts @@ -10,7 +10,8 @@ export default [ ['sql_editor_settings_insert_table_aliases_name', 'Insert table aliases (in FROM clause)'], ['sql_editor_settings_insert_table_aliases_desc', 'Automatically inserts table aliases'], ['sql_editor_menu', 'SQL Editor'], - ['sql_editor_script_editor', 'SQL Editor'], + ['sql_editor_script_editor', 'Editor'], + ['sql_editor_script_editor_tooltip', 'Open SQL Editor'], ['sql_editor_alias_loading_error', 'Error occurred while loading node alias'], ['sql_editor_restore_message', 'Do you want to restore the connection?'], ['sql_editor_restore', 'Restore'], diff --git a/webapp/packages/plugin-sql-editor/src/locales/ru.ts b/webapp/packages/plugin-sql-editor/src/locales/ru.ts index 64861637e6..ca82b30ee7 100644 --- a/webapp/packages/plugin-sql-editor/src/locales/ru.ts +++ b/webapp/packages/plugin-sql-editor/src/locales/ru.ts @@ -10,7 +10,8 @@ export default [ ['sql_editor_settings_insert_table_aliases_name', 'Вставлять алиасы таблиц (в FROM условии)'], ['sql_editor_settings_insert_table_aliases_desc', 'Автоматически вставляет алиасы для таблиц'], ['sql_editor_menu', 'SQL Редактор'], - ['sql_editor_script_editor', 'Редактор SQL'], + ['sql_editor_script_editor', 'Редактор'], + ['sql_editor_script_editor_tooltip', 'Открыть редактор SQL'], ['sql_editor_alias_loading_error', 'Возникла ошибка при загрузке псевдонима'], ['sql_editor_restore_message', 'Вы хотите восстановить подключение?'], ['sql_editor_restore', 'Восстановить'], diff --git a/webapp/packages/plugin-sql-editor/src/locales/zh.ts b/webapp/packages/plugin-sql-editor/src/locales/zh.ts index dcdeaa9f7d..c984f59214 100644 --- a/webapp/packages/plugin-sql-editor/src/locales/zh.ts +++ b/webapp/packages/plugin-sql-editor/src/locales/zh.ts @@ -10,7 +10,8 @@ export default [ ['sql_editor_settings_insert_table_aliases_name', 'Insert table aliases (in FROM clause)'], ['sql_editor_settings_insert_table_aliases_desc', 'Automatically inserts table aliases'], ['sql_editor_menu', 'SQL编辑器'], - ['sql_editor_script_editor', 'SQL Editor'], + ['sql_editor_script_editor', 'Editor'], + ['sql_editor_script_editor_tooltip', 'Open SQL Editor'], ['sql_editor_alias_loading_error', 'Error occurred while loading node alias'], ['sql_editor_restore_message', 'Do you want to restore the connection?'], ['sql_editor_restore', 'Restore'], From b0416bd0283e8cb8a78057a0b1149295c6a7b564 Mon Sep 17 00:00:00 2001 From: naumov Date: Thu, 1 Aug 2024 14:28:51 +0200 Subject: [PATCH 2/2] CB-5355 simplify locale --- webapp/packages/plugin-sql-editor/src/locales/en.ts | 2 +- webapp/packages/plugin-sql-editor/src/locales/it.ts | 2 +- webapp/packages/plugin-sql-editor/src/locales/ru.ts | 2 +- webapp/packages/plugin-sql-editor/src/locales/zh.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/webapp/packages/plugin-sql-editor/src/locales/en.ts b/webapp/packages/plugin-sql-editor/src/locales/en.ts index c683c099fe..99edb4934d 100644 --- a/webapp/packages/plugin-sql-editor/src/locales/en.ts +++ b/webapp/packages/plugin-sql-editor/src/locales/en.ts @@ -10,7 +10,7 @@ export default [ ['sql_editor_settings_insert_table_aliases_name', 'Insert table aliases (in FROM clause)'], ['sql_editor_settings_insert_table_aliases_desc', 'Automatically inserts table aliases'], ['sql_editor_menu', 'SQL Editor'], - ['sql_editor_script_editor', 'Editor'], + ['sql_editor_script_editor', 'SQL'], ['sql_editor_script_editor_tooltip', 'Open SQL Editor'], ['sql_editor_alias_loading_error', 'Error occurred while loading node alias'], ['sql_editor_restore_message', 'Do you want to restore the connection?'], diff --git a/webapp/packages/plugin-sql-editor/src/locales/it.ts b/webapp/packages/plugin-sql-editor/src/locales/it.ts index 2a9ca95908..4d6b2b9417 100644 --- a/webapp/packages/plugin-sql-editor/src/locales/it.ts +++ b/webapp/packages/plugin-sql-editor/src/locales/it.ts @@ -10,7 +10,7 @@ export default [ ['sql_editor_settings_insert_table_aliases_name', 'Insert table aliases (in FROM clause)'], ['sql_editor_settings_insert_table_aliases_desc', 'Automatically inserts table aliases'], ['sql_editor_menu', 'SQL Editor'], - ['sql_editor_script_editor', 'Editor'], + ['sql_editor_script_editor', 'SQL'], ['sql_editor_script_editor_tooltip', 'Open SQL Editor'], ['sql_editor_alias_loading_error', 'Error occurred while loading node alias'], ['sql_editor_restore_message', 'Do you want to restore the connection?'], diff --git a/webapp/packages/plugin-sql-editor/src/locales/ru.ts b/webapp/packages/plugin-sql-editor/src/locales/ru.ts index ca82b30ee7..928cb6412b 100644 --- a/webapp/packages/plugin-sql-editor/src/locales/ru.ts +++ b/webapp/packages/plugin-sql-editor/src/locales/ru.ts @@ -10,7 +10,7 @@ export default [ ['sql_editor_settings_insert_table_aliases_name', 'Вставлять алиасы таблиц (в FROM условии)'], ['sql_editor_settings_insert_table_aliases_desc', 'Автоматически вставляет алиасы для таблиц'], ['sql_editor_menu', 'SQL Редактор'], - ['sql_editor_script_editor', 'Редактор'], + ['sql_editor_script_editor', 'SQL'], ['sql_editor_script_editor_tooltip', 'Открыть редактор SQL'], ['sql_editor_alias_loading_error', 'Возникла ошибка при загрузке псевдонима'], ['sql_editor_restore_message', 'Вы хотите восстановить подключение?'], diff --git a/webapp/packages/plugin-sql-editor/src/locales/zh.ts b/webapp/packages/plugin-sql-editor/src/locales/zh.ts index c984f59214..a8dbd2e0cf 100644 --- a/webapp/packages/plugin-sql-editor/src/locales/zh.ts +++ b/webapp/packages/plugin-sql-editor/src/locales/zh.ts @@ -10,7 +10,7 @@ export default [ ['sql_editor_settings_insert_table_aliases_name', 'Insert table aliases (in FROM clause)'], ['sql_editor_settings_insert_table_aliases_desc', 'Automatically inserts table aliases'], ['sql_editor_menu', 'SQL编辑器'], - ['sql_editor_script_editor', 'Editor'], + ['sql_editor_script_editor', 'SQL'], ['sql_editor_script_editor_tooltip', 'Open SQL Editor'], ['sql_editor_alias_loading_error', 'Error occurred while loading node alias'], ['sql_editor_restore_message', 'Do you want to restore the connection?'],