l10n for the debug tab

This commit is contained in:
wixette 2020-03-08 19:49:28 +08:00
parent e48f14b560
commit 260b06d25e
3 changed files with 40 additions and 3 deletions

View File

@ -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;
}

View File

@ -581,10 +581,12 @@
<input id="debug-data-input" type="text">
</div>
<div class="flex-grow-1">
<input id="debug-load-data" type="button" value="LOAD DATA">
<div id="debug-load-data" class="button l10n">Load Data</div>
</div>
</div>
<div class="comments">In HEX string, such as 'c3 00 00'</div>
<div id="debug-data-sample" class="comments l10n">
In HEX string, such as 'c3 00 00'
</div>
<div class="subheader-bar mt-8">
<div id="debug-cpu-dump-title" class="l10n">8080 CPU Status Dump</div>

View File

@ -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': '内存信息',
},
};
/**