Skip to content

Commit e7e561e

Browse files
committed
chore(WebServer): remove unused symbol save i18n keys
saved_to_file, save_failed, save_file_error are no longer referenced after switching to browser download in 402df2b. Signed-off-by: VIFEX <vifextech@foxmail.com>
1 parent 402df2b commit e7e561e

4 files changed

Lines changed: 3 additions & 18 deletions

File tree

Tools/WebServer/static/js/features/symbols.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,7 @@ function saveSymbolData(symName) {
10301030

10311031
const hexDump = contentDiv.querySelector('.sym-hex-dump');
10321032
if (!hexDump) {
1033-
log.error(t('symbols.no_hex_data', 'No hex data to write'));
1033+
log.error('No hex data to write');
10341034
return;
10351035
}
10361036

@@ -1043,7 +1043,7 @@ function saveSymbolData(symName) {
10431043
.trim();
10441044

10451045
if (!hexBytes || !/^[0-9a-fA-F]+$/.test(hexBytes)) {
1046-
log.error(t('symbols.invalid_hex', 'Invalid hex data'));
1046+
log.error('Invalid hex data');
10471047
return;
10481048
}
10491049

@@ -1062,13 +1062,7 @@ function saveSymbolData(symName) {
10621062
a.download = fileName;
10631063
a.click();
10641064
URL.revokeObjectURL(url);
1065-
log.success(
1066-
t(
1067-
'symbols.saved_to_file',
1068-
`Saved ${bytes.length} bytes: ${fileName}`,
1069-
{ size: bytes.length, path: fileName },
1070-
),
1071-
);
1065+
log.success(`Saved ${bytes.length} bytes: ${fileName}`);
10721066
}
10731067

10741068
/* ===========================

Tools/WebServer/static/js/locales/en.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,6 @@ window.i18nResources['en'] = {
146146
reading_progress: 'Reading {{name}} {{percent}}%',
147147
loading_symbol: 'Loading {{name}}...',
148148
save_to_file: 'Save',
149-
saved_to_file: 'Saved {{size}} bytes to: {{path}}',
150-
save_failed: 'Failed to save: {{error}}',
151-
save_file_error: 'Failed to save file: {{error}}',
152149
},
153150

154151
// Inline value editing

Tools/WebServer/static/js/locales/zh-CN.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,6 @@ window.i18nResources['zh-CN'] = {
146146
reading_progress: '正在读取 {{name}} {{percent}}%',
147147
loading_symbol: '正在加载 {{name}}...',
148148
save_to_file: '保存',
149-
saved_to_file: '已保存 {{size}} 字节到: {{path}}',
150-
save_failed: '保存失败: {{error}}',
151-
save_file_error: '保存文件失败: {{error}}',
152149
},
153150

154151
// 内联值编辑

Tools/WebServer/static/js/locales/zh-TW.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,6 @@ window.i18nResources['zh-TW'] = {
146146
reading_progress: '正在讀取 {{name}} {{percent}}%',
147147
loading_symbol: '正在載入 {{name}}...',
148148
save_to_file: '儲存',
149-
saved_to_file: '已儲存 {{size}} 位元組到: {{path}}',
150-
save_failed: '儲存失敗: {{error}}',
151-
save_file_error: '儲存檔案失敗: {{error}}',
152149
},
153150

154151
// 內聯值編輯

0 commit comments

Comments
 (0)