From 4abdbaa2a7797c6096d2db4a314c7b9d1139ef17 Mon Sep 17 00:00:00 2001 From: wixette Date: Sun, 8 Mar 2020 21:43:25 +0800 Subject: [PATCH] translation of the ref page done --- index.html | 40 ++++++++++----------- js/l10n.js | 100 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 120 insertions(+), 20 deletions(-) diff --git a/index.html b/index.html index aba9792..b40eb24 100644 --- a/index.html +++ b/index.html @@ -646,7 +646,7 @@

@@ -666,25 +666,25 @@
                    ; 00 000 000

    -
  1. Turn on the computer.
  2. -
  3. Set switches A7 - A0 to 00 111 010 (up for 1, down for 0).
  4. -
  5. Click "DEPOSIT".
  6. -
  7. Set switches A7 - A0 to 10 000 000.
  8. -
  9. Click "DEPOSIT NEXT".
  10. -
  11. Repeat step 4-5 to input the following bytes one by one: 00 000 000, 01 000 111, 00 111 010, 10 000 001, 00 000 000, 10 000 000, 00 110 010, 10 000 010, 00 000 000, 11 000 011, 00 000 000, 00 000 000.
  12. -
  13. Set switches A7 - A0 to 10 000 000.
  14. -
  15. Click "EXAMINE"
  16. -
  17. Set switches A7 - A0 to 00 000 001 (the first number to be added, or 1 in decimal).
  18. -
  19. Click "DEPOSIT".
  20. -
  21. Set switches A7 - A0 to 00 000 010 (the second number to be added, or 2 in decimal).
  22. -
  23. Click "DEPOSIT NEXT".
  24. -
  25. Click "RESET".
  26. -
  27. Click "RUN" and wait for a few seconds.
  28. -
  29. Click "STOP".
  30. -
  31. Set switches A7 - A0 to 10 000 010 (the address that holds the sum).
  32. -
  33. Click "EXAMINE"
  34. -
  35. The LEDs D7 - D0 show the result 00 000 011 (3 in decimal).
  36. -
  37. Turn off the computer.
  38. +
  39. Turn on Altair 8800 by clicking OFF/ON switch.
  40. +
  41. Set switches A7-A0 to 00 111 010 (up for 1, down for 0).
  42. +
  43. Click "DEPOSIT".
  44. +
  45. Set switches A7-A0 to 10 000 000.
  46. +
  47. Click "DEPOSIT NEXT".
  48. +
  49. Repeat step 4-5 to input the following bytes one by one: 00 000 000, 01 000 111, 00 111 010, 10 000 001, 00 000 000, 10 000 000, 00 110 010, 10 000 010, 00 000 000, 11 000 011, 00 000 000, 00 000 000.
  50. +
  51. Set switches A7-A0 to 10 000 000.
  52. +
  53. Click "EXAMINE".
  54. +
  55. Set switches A7-A0 to 00 000 001 (the first number to be added, or 1 in decimal).
  56. +
  57. Click "DEPOSIT".
  58. +
  59. Set switches A7-A0 to 00 000 010 (the second number to be added, or 2 in decimal).
  60. +
  61. Click "DEPOSIT NEXT".
  62. +
  63. Click "RESET".
  64. +
  65. Click "RUN" and wait for a few seconds.
  66. +
  67. Click "STOP".
  68. +
  69. Set switches A7-A0 to 10 000 010 (the address that holds the sum).
  70. +
  71. Click "EXAMINE".
  72. +
  73. The LEDs D7-D0 show the result 00 000 011 (3 in decimal).
  74. +
  75. Turn off Altair 8800.

diff --git a/js/l10n.js b/js/l10n.js index 29866ef..3af4ec2 100644 --- a/js/l10n.js +++ b/js/l10n.js @@ -104,6 +104,106 @@ l10n.MESSAGES = { 'en': 'Quick Tutorial', 'zh': '快速教程', }, + + 'tutorial-desc': { + 'en': 'How to input and run the following program to calculate 1 + 2 = 3:', + 'zh': '如何输入并运行以下加法程序,并计算 1 + 2 = 3:', + }, + + 'tutorial-1': { + 'en': 'Turn on Altair 8800 by clicking OFF/ON switch.', + 'zh': '点击 OFF/ON 开关,打开 Altair 8800', + }, + + 'tutorial-2': { + 'en': 'Set switches A7-A0 to 00 111 010 (up for 1, down for 0).', + 'zh': '将地址开关 A7-A0 依次设置为 00 111 010 (开关朝上为 1,开关朝下为 0)', + }, + + 'tutorial-3': { + 'en': 'Click "DEPOSIT".', + 'zh': '点击 DEPOSIT', + }, + + 'tutorial-4': { + 'en': 'Set switches A7-A0 to 10 000 000.', + 'zh': '将地址开关 A7-A0 依次设置为 10 000 000', + }, + + 'tutorial-5': { + 'en': 'Click "DEPOSIT NEXT".', + 'zh': '点击 DEPOSIT NEXT', + }, + + 'tutorial-6': { + 'en': 'Repeat step 4-5 to input the following bytes one by one: 00 000 000, 01 000 111, 00 111 010, 10 000 001, 00 000 000, 10 000 000, 00 110 010, 10 000 010, 00 000 000, 11 000 011, 00 000 000, 00 000 000.', + 'zh': '重复步骤 4 到步骤 5,逐个输入以下字节:00 000 000, 01 000 111, 00 111 010, 10 000 001, 00 000 000, 10 000 000, 00 110 010, 10 000 010, 00 000 000, 11 000 011, 00 000 000, 00 000 000', + }, + + 'tutorial-7': { + 'en': 'Set switches A7-A0 to 10 000 000.', + 'zh': '将地址开关 A7-A0 依次设置为 10 000 000', + }, + + 'tutorial-8': { + 'en': 'Click "EXAMINE".', + 'zh': '点击 EXAMINE', + }, + + 'tutorial-9': { + 'en': 'Set switches A7-A0 to 00 000 001 (the first number to be added, or 1 in decimal).', + 'zh': '将地址开关 A7-A0 依次设置为 00 000 001(即第一个加数的值,也就是十进制的 1)', + }, + + 'tutorial-10': { + 'en': 'Click "DEPOSIT".', + 'zh': '点击 DEPOSIT', + }, + + 'tutorial-11': { + 'en': 'Set switches A7-A0 to 00 000 010 (the second number to be added, or 2 in decimal).', + 'zh': '将地址开关 A7-A0 依次设置为 00 000 010(即第二个加数的值,也就是十进制的 2)', + }, + + 'tutorial-12': { + 'en': 'Click "DEPOSIT NEXT".', + 'zh': '点击 DEPOSIT NEXT', + }, + + 'tutorial-13': { + 'en': 'Click "RESET".', + 'zh': '点击 RESET', + }, + + 'tutorial-14': { + 'en': 'Click "RUN" and wait for a few seconds.', + 'zh': '点击 RUN 并等待几秒钟', + }, + + 'tutorial-15': { + 'en': 'Click "STOP".', + 'zh': '点击 STOP', + }, + + 'tutorial-16': { + 'en': 'Set switches A7-A0 to 10 000 010 (the address that holds the sum).', + 'zh': '将地址开关 A7-A0 依次设置为 10 000 010(即存储计算结果的地址)', + }, + + 'tutorial-17': { + 'en': 'Click "EXAMINE".', + 'zh': '点击 EXAMINE', + }, + + 'tutorial-18': { + 'en': 'The LEDs D7-D0 show the result 00 000 011 (3 in decimal).', + 'zh': 'LED 等显示出计算结果 00 000 011(即十进制的 3)', + }, + + 'tutorial-19': { + 'en': 'Turn off Altair 8800.', + 'zh': '关闭 Altair 8800', + }, }; /**