From 260b06d25e83e71acb779b1e8c4591eed0869b86 Mon Sep 17 00:00:00 2001 From: wixette Date: Sun, 8 Mar 2020 19:49:28 +0800 Subject: [PATCH] l10n for the debug tab --- css/style.css | 12 +++++++++++- index.html | 6 ++++-- js/l10n.js | 25 +++++++++++++++++++++++++ 3 files changed, 40 insertions(+), 3 deletions(-) diff --git a/css/style.css b/css/style.css index 35e4536..32a9268 100644 --- a/css/style.css +++ b/css/style.css @@ -167,7 +167,6 @@ footer { } #debug-data-input { - line-height: 1.5em; width: 100%; } @@ -186,3 +185,14 @@ footer { font-size: 12px; overflow-x: hidden; } + +.button { + background-color: #eee; + border: 1px solid #bbb; + cursor: pointer; + text-align: center; + user-select: none; + -moz-user-select: none; + -ms-user-select: none; + -webkit-user-select: none; +} diff --git a/index.html b/index.html index ae0e02d..35cf31b 100644 --- a/index.html +++ b/index.html @@ -581,10 +581,12 @@
- +
Load Data
-
In HEX string, such as 'c3 00 00'
+
+ In HEX string, such as 'c3 00 00' +
8080 CPU Status Dump
diff --git a/js/l10n.js b/js/l10n.js index 31d3cff..54f30e8 100644 --- a/js/l10n.js +++ b/js/l10n.js @@ -74,6 +74,31 @@ l10n.MESSAGES = { 'en': 'Source code', 'zh': '源代码', }, + + 'debug-load-data-title': { + 'en': 'Load Data to Addr #0', + 'zh': '从地址0开始加载数据', + }, + + 'debug-load-data': { + 'en': 'Load Data', + 'zh': '加载数据', + }, + + 'debug-data-sample': { + 'en': 'Bytes in HEX string, such as \'c3 00 00\'', + 'zh': '十六进制字节序列,如 c3 00 00', + }, + + 'debug-cpu-dump-title': { + 'en': '8080 CPU Status Dump', + 'zh': '8080 CPU 的状态信息', + }, + + 'debug-mem-dump-title': { + 'en': 'Memory Dump', + 'zh': '内存信息', + }, }; /**