diff --git a/COMTool/locales/en/LC_MESSAGES/messages.po b/COMTool/locales/en/LC_MESSAGES/messages.po index 5fc80d9..aab7615 100644 --- a/COMTool/locales/en/LC_MESSAGES/messages.po +++ b/COMTool/locales/en/LC_MESSAGES/messages.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-03-07 15:52+0800\n" +"POT-Creation-Date: 2022-03-18 19:39+0800\n" "PO-Revision-Date: 2021-12-04 15:21+0800\n" "Last-Translator: FULL NAME \n" "Language: en\n" @@ -18,72 +18,93 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Generated-By: Babel 2.9.1\n" -#: Main.py:242 conn/conn_tcp_udp.py:515 +#: Main.py:245 conn/conn_tcp_udp.py:530 msgid "Connection" msgstr "" -#: Main.py:312 Main.py:508 +#: Main.py:316 Main.py:517 msgid "Sent" msgstr "" -#: Main.py:312 Main.py:313 Main.py:508 Main.py:509 +#: Main.py:316 Main.py:317 Main.py:517 Main.py:518 msgid "bytes" msgstr "" -#: Main.py:313 Main.py:509 +#: Main.py:317 Main.py:518 msgid "Received" msgstr "" -#: Main.py:344 +#: Main.py:348 msgid "New Window" msgstr "" -#: Main.py:398 Main.py:403 Main.py:493 Main.py:504 Main.py:752 -#: conn/conn_serial.py:320 conn/conn_tcp_udp.py:387 plugins/base.py:109 -#: plugins/base.py:114 plugins/base.py:130 plugins/base.py:167 -#: plugins/base.py:185 plugins/dbg.py:504 plugins/dbg.py:521 plugins/dbg.py:578 -#: plugins/dbg.py:586 plugins/protocol.py:443 plugins/protocol.py:631 -#: plugins/protocol.py:645 plugins/protocol.py:711 +#: Main.py:402 Main.py:407 Main.py:502 Main.py:513 Main.py:815 +#: conn/conn_serial.py:325 conn/conn_ssh.py:280 conn/conn_tcp_udp.py:400 +#: plugins/base.py:133 plugins/base.py:138 plugins/base.py:154 +#: plugins/base.py:191 plugins/base.py:209 plugins/dbg.py:504 +#: plugins/dbg.py:521 plugins/dbg.py:578 plugins/dbg.py:586 +#: plugins/protocol.py:444 plugins/protocol.py:632 plugins/protocol.py:646 +#: plugins/protocol.py:712 msgid "Error" msgstr "" -#: Main.py:493 +#: Main.py:502 msgid "Open file failed!" msgstr "" -#: Main.py:541 Main.py:550 +#: Main.py:522 +msgid "Connected" +msgstr "" + +#: Main.py:524 parameters.py:31 +msgid "Closed" +msgstr "" + +#: Main.py:526 +msgid "Connecting" +msgstr "" + +#: Main.py:528 +msgid "Connection lose" +msgstr "" + +#: Main.py:557 Main.py:566 msgid "Restart now?" msgstr "" -#: Main.py:542 +#: Main.py:558 msgid "language changed to: " msgstr "" -#: Main.py:542 +#: Main.py:558 msgid "Restart software to take effect now?" msgstr "" -#: Main.py:669 +#: Main.py:614 Main.py:615 +msgid "Closing ..." +msgstr "" + +#: Main.py:703 msgid "About" msgstr "" -#: Main.py:678 +#: Main.py:712 msgid "New versioin detected, please click learn more to download" msgstr "" -#: Main.py:679 +#: Main.py:713 msgid "Learn More" msgstr "" -#: Main.py:680 +#: Main.py:714 msgid "Skip this version" msgstr "" -#: Main.py:681 +#: Main.py:715 msgid "Remind me next time" msgstr "" -#: Main.py:682 +#: Main.py:716 msgid "Need update" msgstr "" @@ -147,10 +168,6 @@ msgstr "" msgid "Functional Send" msgstr "" -#: parameters.py:31 -msgid "Closed" -msgstr "" - #: parameters.py:32 msgid "Ready" msgstr "" @@ -187,109 +204,163 @@ msgstr "" msgid "Custom, input baudrate" msgstr "" -#: conn/conn_serial.py:99 conn/conn_tcp_udp.py:104 +#: conn/conn_serial.py:103 conn/conn_ssh.py:138 conn/conn_tcp_udp.py:108 msgid "Port" msgstr "" -#: conn/conn_serial.py:100 +#: conn/conn_serial.py:104 msgid "Baudrate" msgstr "" -#: conn/conn_serial.py:101 +#: conn/conn_serial.py:105 msgid "DataBytes" msgstr "" -#: conn/conn_serial.py:102 +#: conn/conn_serial.py:106 msgid "Parity" msgstr "" -#: conn/conn_serial.py:103 +#: conn/conn_serial.py:107 msgid "Stopbits" msgstr "" -#: conn/conn_serial.py:104 +#: conn/conn_serial.py:108 msgid "Flow control" msgstr "" -#: conn/conn_serial.py:138 conn/conn_serial.py:139 +#: conn/conn_serial.py:142 conn/conn_serial.py:143 msgid "Check to enable(usually output low level)" msgstr "" -#: conn/conn_serial.py:140 conn/conn_serial.py:285 conn/conn_serial.py:376 -#: conn/conn_tcp_udp.py:129 conn/conn_tcp_udp.py:320 conn/conn_tcp_udp.py:419 +#: conn/conn_serial.py:144 conn/conn_serial.py:289 conn/conn_serial.py:381 +#: conn/conn_ssh.py:152 conn/conn_ssh.py:235 conn/conn_ssh.py:323 +#: conn/conn_tcp_udp.py:133 conn/conn_tcp_udp.py:324 conn/conn_tcp_udp.py:432 msgid "OPEN" msgstr "" -#: conn/conn_serial.py:193 conn/conn_serial.py:319 +#: conn/conn_serial.py:197 conn/conn_serial.py:324 msgid "Open Failed" msgstr "" -#: conn/conn_serial.py:379 conn/conn_serial.py:382 conn/conn_tcp_udp.py:422 -#: conn/conn_tcp_udp.py:425 +#: conn/conn_serial.py:384 conn/conn_serial.py:387 conn/conn_ssh.py:326 +#: conn/conn_ssh.py:329 conn/conn_tcp_udp.py:435 conn/conn_tcp_udp.py:438 msgid "CLOSE" msgstr "" -#: conn/conn_serial.py:416 conn/conn_tcp_udp.py:475 +#: conn/conn_serial.py:422 conn/conn_ssh.py:352 conn/conn_tcp_udp.py:490 msgid "Reconnected" msgstr "" -#: conn/conn_serial.py:446 conn/conn_tcp_udp.py:534 +#: conn/conn_serial.py:452 conn/conn_ssh.py:397 conn/conn_tcp_udp.py:549 msgid "Connection lose!" msgstr "" -#: conn/conn_tcp_udp.py:99 +#: conn/conn_ssh.py:137 +msgid "Host" +msgstr "" + +#: conn/conn_ssh.py:139 +msgid "User" +msgstr "" + +#: conn/conn_ssh.py:140 +msgid "Password" +msgstr "" + +#: conn/conn_ssh.py:141 +msgid "SSH key" +msgstr "" + +#: conn/conn_ssh.py:142 +msgid "Saved" +msgstr "" + +#: conn/conn_ssh.py:150 +msgid "File" +msgstr "" + +#: conn/conn_ssh.py:210 +msgid "Input error" +msgstr "" + +#: conn/conn_ssh.py:210 +msgid "Input" +msgstr "" + +#: conn/conn_ssh.py:210 +msgid "error" +msgstr "" + +#: conn/conn_ssh.py:223 plugins/dbg.py:396 plugins/dbg.py:410 +#: plugins/protocol.py:423 plugins/protocol.py:433 +msgid "Select file" +msgstr "" + +#: conn/conn_ssh.py:225 plugins/dbg.py:398 +msgid "All Files (*)" +msgstr "" + +#: conn/conn_ssh.py:279 conn/conn_tcp_udp.py:399 +msgid "Connect Failed" +msgstr "" + +#: conn/conn_ssh.py:290 +msgid "Config error" +msgstr "" + +#: conn/conn_ssh.py:317 +msgid "SSH pub key file path error" +msgstr "" + +#: conn/conn_ssh.py:379 conn/conn_tcp_udp.py:510 +msgid "Closed by peer" +msgstr "" + +#: conn/conn_ssh.py:384 conn/conn_tcp_udp.py:534 +msgid "Connection closed!" +msgstr "" + +#: conn/conn_tcp_udp.py:103 msgid "Protocol" msgstr "" -#: conn/conn_tcp_udp.py:100 +#: conn/conn_tcp_udp.py:104 msgid "Mode" msgstr "" -#: conn/conn_tcp_udp.py:101 +#: conn/conn_tcp_udp.py:105 msgid "Target" msgstr "" -#: conn/conn_tcp_udp.py:124 conn/conn_tcp_udp.py:243 +#: conn/conn_tcp_udp.py:128 conn/conn_tcp_udp.py:247 msgid "All clients" msgstr "" -#: conn/conn_tcp_udp.py:125 +#: conn/conn_tcp_udp.py:129 msgid "Disconnect" msgstr "" -#: conn/conn_tcp_udp.py:126 +#: conn/conn_tcp_udp.py:130 msgid "Auto reconnect" msgstr "" -#: conn/conn_tcp_udp.py:350 conn/conn_tcp_udp.py:468 conn/conn_tcp_udp.py:561 +#: conn/conn_tcp_udp.py:362 conn/conn_tcp_udp.py:482 conn/conn_tcp_udp.py:576 msgid "Target error" msgstr "" -#: conn/conn_tcp_udp.py:386 -msgid "Connect Failed" -msgstr "" - -#: conn/conn_tcp_udp.py:446 +#: conn/conn_tcp_udp.py:459 msgid "Client connected:" msgstr "" -#: conn/conn_tcp_udp.py:495 -msgid "Closed by peer" -msgstr "" - -#: conn/conn_tcp_udp.py:515 +#: conn/conn_tcp_udp.py:530 msgid "closed!" msgstr "" -#: conn/conn_tcp_udp.py:519 -msgid "Connection closed!" -msgstr "" - -#: plugins/base.py:130 +#: plugins/base.py:154 msgid "Format error, should be like 00 01 02 03" msgstr "" -#: plugins/base.py:167 plugins/base.py:185 +#: plugins/base.py:191 plugins/base.py:209 msgid "Escape is on, but escape error:" msgstr "" @@ -297,7 +368,7 @@ msgstr "" msgid "Send Receive" msgstr "" -#: plugins/dbg.py:132 plugins/dbg.py:161 plugins/protocol.py:381 +#: plugins/dbg.py:132 plugins/dbg.py:161 plugins/protocol.py:382 msgid "ASCII" msgstr "" @@ -307,7 +378,7 @@ msgid "" "corner" msgstr "" -#: plugins/dbg.py:134 plugins/dbg.py:162 plugins/protocol.py:382 +#: plugins/dbg.py:134 plugins/dbg.py:162 plugins/protocol.py:383 msgid "HEX" msgstr "" @@ -348,13 +419,13 @@ msgstr "" msgid "Enable unix terminal color support, e.g. \\33[31;43mhello\\33[0m" msgstr "" -#: plugins/dbg.py:163 plugins/protocol.py:383 +#: plugins/dbg.py:163 plugins/protocol.py:384 msgid "" "Get send data as visible format, select encoding method at top right " "corner" msgstr "" -#: plugins/dbg.py:164 plugins/protocol.py:384 +#: plugins/dbg.py:164 plugins/protocol.py:385 msgid "Get send data as hex format, e.g. hex '31 32 33' equal to ascii '123'" msgstr "" @@ -368,11 +439,11 @@ msgstr "" msgid "Timed send, unit: ms" msgstr "" -#: plugins/dbg.py:173 plugins/protocol.py:386 +#: plugins/dbg.py:173 plugins/protocol.py:387 msgid "" msgstr "" -#: plugins/dbg.py:174 plugins/protocol.py:387 +#: plugins/dbg.py:174 plugins/protocol.py:388 msgid "Select to send \\r\\n instead of \\n" msgstr "" @@ -384,11 +455,11 @@ msgstr "" msgid "Record send data" msgstr "" -#: plugins/dbg.py:178 plugins/protocol.py:389 +#: plugins/dbg.py:178 plugins/protocol.py:390 msgid "Escape" msgstr "" -#: plugins/dbg.py:179 plugins/protocol.py:390 +#: plugins/dbg.py:179 plugins/protocol.py:391 msgid "Enable escape characters support like \\t \\r \\n \\x01 \\001" msgstr "" @@ -436,8 +507,8 @@ msgstr "" msgid "Log path" msgstr "" -#: plugins/dbg.py:349 plugins/dbg.py:507 plugins/protocol.py:733 -#: plugins/protocol.py:755 +#: plugins/dbg.py:349 plugins/dbg.py:507 plugins/protocol.py:734 +#: plugins/protocol.py:756 msgid "Warning" msgstr "" @@ -457,15 +528,6 @@ msgstr "" msgid "Send file" msgstr "" -#: plugins/dbg.py:396 plugins/dbg.py:410 plugins/protocol.py:422 -#: plugins/protocol.py:432 -msgid "Select file" -msgstr "" - -#: plugins/dbg.py:398 -msgid "All Files (*)" -msgstr "" - #: plugins/dbg.py:412 msgid "Log file (*.log);;txt file (*.txt);;All Files (*)" msgstr "" @@ -524,83 +586,87 @@ msgstr "" msgid "Key mode" msgstr "" -#: plugins/protocol.py:359 +#: plugins/protocol.py:360 msgid "En-decoding settings" msgstr "" -#: plugins/protocol.py:363 +#: plugins/protocol.py:364 msgid "Custom, input name" msgstr "" -#: plugins/protocol.py:364 +#: plugins/protocol.py:365 msgid "Load defaults" msgstr "" -#: plugins/protocol.py:367 plugins/protocol.py:699 plugins/protocol.py:723 -#: plugins/protocol.py:726 plugins/protocol.py:746 +#: plugins/protocol.py:368 plugins/protocol.py:700 plugins/protocol.py:724 +#: plugins/protocol.py:727 plugins/protocol.py:747 msgid "Save" msgstr "" -#: plugins/protocol.py:369 +#: plugins/protocol.py:370 msgid "Delete" msgstr "" -#: plugins/protocol.py:373 +#: plugins/protocol.py:374 msgid "Defaults" msgstr "" -#: plugins/protocol.py:375 +#: plugins/protocol.py:376 msgid "Code" msgstr "" -#: plugins/protocol.py:379 +#: plugins/protocol.py:380 msgid "Send settings" msgstr "" -#: plugins/protocol.py:412 +#: plugins/protocol.py:413 msgid "Load config" msgstr "" -#: plugins/protocol.py:413 +#: plugins/protocol.py:414 msgid "Share config" msgstr "" -#: plugins/protocol.py:424 plugins/protocol.py:434 +#: plugins/protocol.py:425 plugins/protocol.py:435 msgid "json file (*.json);;config file (*.conf);;All Files (*)" msgstr "" -#: plugins/protocol.py:443 +#: plugins/protocol.py:444 msgid "config file format error" msgstr "" -#: plugins/protocol.py:451 +#: plugins/protocol.py:452 msgid "Restart to load config?" msgstr "" -#: plugins/protocol.py:631 +#: plugins/protocol.py:632 msgid "Run decode error" msgstr "" -#: plugins/protocol.py:645 +#: plugins/protocol.py:646 msgid "Run encode error" msgstr "" -#: plugins/protocol.py:707 +#: plugins/protocol.py:708 msgid "decode and encode method should be in code" msgstr "" -#: plugins/protocol.py:710 +#: plugins/protocol.py:711 msgid "Method error" msgstr "" -#: plugins/protocol.py:733 +#: plugins/protocol.py:734 msgid "Please input code profile name first" msgstr "" -#: plugins/protocol.py:755 +#: plugins/protocol.py:756 msgid "Please select a code profile name first to delete" msgstr "" +#: plugins/terminal.py:674 +msgid "terminal" +msgstr "" + #~ msgid "Pack date:" #~ msgstr "" diff --git a/COMTool/locales/ja/LC_MESSAGES/messages.po b/COMTool/locales/ja/LC_MESSAGES/messages.po index 470f4bb..8462c38 100644 --- a/COMTool/locales/ja/LC_MESSAGES/messages.po +++ b/COMTool/locales/ja/LC_MESSAGES/messages.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-03-07 15:52+0800\n" +"POT-Creation-Date: 2022-03-18 19:39+0800\n" "PO-Revision-Date: 2021-12-04 15:20+0800\n" "Last-Translator: FULL NAME \n" "Language: ja\n" @@ -18,74 +18,98 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Generated-By: Babel 2.9.1\n" -#: Main.py:242 conn/conn_tcp_udp.py:515 +#: Main.py:245 conn/conn_tcp_udp.py:530 #, fuzzy msgid "Connection" msgstr "接続が失われます!" -#: Main.py:312 Main.py:508 +#: Main.py:316 Main.py:517 msgid "Sent" msgstr "" -#: Main.py:312 Main.py:313 Main.py:508 Main.py:509 +#: Main.py:316 Main.py:317 Main.py:517 Main.py:518 msgid "bytes" msgstr "バイト" -#: Main.py:313 Main.py:509 +#: Main.py:317 Main.py:518 #, fuzzy msgid "Received" msgstr "受信" -#: Main.py:344 +#: Main.py:348 msgid "New Window" msgstr "" -#: Main.py:398 Main.py:403 Main.py:493 Main.py:504 Main.py:752 -#: conn/conn_serial.py:320 conn/conn_tcp_udp.py:387 plugins/base.py:109 -#: plugins/base.py:114 plugins/base.py:130 plugins/base.py:167 -#: plugins/base.py:185 plugins/dbg.py:504 plugins/dbg.py:521 plugins/dbg.py:578 -#: plugins/dbg.py:586 plugins/protocol.py:443 plugins/protocol.py:631 -#: plugins/protocol.py:645 plugins/protocol.py:711 +#: Main.py:402 Main.py:407 Main.py:502 Main.py:513 Main.py:815 +#: conn/conn_serial.py:325 conn/conn_ssh.py:280 conn/conn_tcp_udp.py:400 +#: plugins/base.py:133 plugins/base.py:138 plugins/base.py:154 +#: plugins/base.py:191 plugins/base.py:209 plugins/dbg.py:504 +#: plugins/dbg.py:521 plugins/dbg.py:578 plugins/dbg.py:586 +#: plugins/protocol.py:444 plugins/protocol.py:632 plugins/protocol.py:646 +#: plugins/protocol.py:712 msgid "Error" msgstr "間違い" -#: Main.py:493 +#: Main.py:502 msgid "Open file failed!" msgstr "ファイルを開くことができませんでした!" -#: Main.py:541 Main.py:550 +#: Main.py:522 +#, fuzzy +msgid "Connected" +msgstr "接続が失われます!" + +#: Main.py:524 parameters.py:31 +msgid "Closed" +msgstr "クローズ" + +#: Main.py:526 +#, fuzzy +msgid "Connecting" +msgstr "接続が失われます!" + +#: Main.py:528 +#, fuzzy +msgid "Connection lose" +msgstr "接続が失われます!" + +#: Main.py:557 Main.py:566 msgid "Restart now?" msgstr "今すぐ再起動しますか?" -#: Main.py:542 +#: Main.py:558 msgid "language changed to: " msgstr "言語が次のように変更されました:" -#: Main.py:542 +#: Main.py:558 msgid "Restart software to take effect now?" msgstr "ソフトウェアを再起動して今すぐ有効にしますか?" -#: Main.py:669 +#: Main.py:614 Main.py:615 +msgid "Closing ..." +msgstr "" + +#: Main.py:703 msgid "About" msgstr "だいたい" -#: Main.py:678 +#: Main.py:712 msgid "New versioin detected, please click learn more to download" msgstr "" -#: Main.py:679 +#: Main.py:713 msgid "Learn More" msgstr "もっと詳しく知る" -#: Main.py:680 +#: Main.py:714 msgid "Skip this version" msgstr "このバージョンをスキップ" -#: Main.py:681 +#: Main.py:715 msgid "Remind me next time" msgstr "次回リマインダー" -#: Main.py:682 +#: Main.py:716 msgid "Need update" msgstr "更新が必要" @@ -151,10 +175,6 @@ msgstr "受信設定" msgid "Functional Send" msgstr "機能送信" -#: parameters.py:31 -msgid "Closed" -msgstr "クローズ" - #: parameters.py:32 msgid "Ready" msgstr "準備完了" @@ -191,115 +211,174 @@ msgstr "" msgid "Custom, input baudrate" msgstr "" -#: conn/conn_serial.py:99 conn/conn_tcp_udp.py:104 +#: conn/conn_serial.py:103 conn/conn_ssh.py:138 conn/conn_tcp_udp.py:108 msgid "Port" msgstr "ポート" -#: conn/conn_serial.py:100 +#: conn/conn_serial.py:104 msgid "Baudrate" msgstr "ボーレート" -#: conn/conn_serial.py:101 +#: conn/conn_serial.py:105 msgid "DataBytes" msgstr "データ文字节" -#: conn/conn_serial.py:102 +#: conn/conn_serial.py:106 msgid "Parity" msgstr "パリティ" -#: conn/conn_serial.py:103 +#: conn/conn_serial.py:107 msgid "Stopbits" msgstr "ストップビット" -#: conn/conn_serial.py:104 +#: conn/conn_serial.py:108 msgid "Flow control" msgstr "フロー制御" -#: conn/conn_serial.py:138 conn/conn_serial.py:139 +#: conn/conn_serial.py:142 conn/conn_serial.py:143 msgid "Check to enable(usually output low level)" msgstr "チェックして有効にします(通常は低レベルを出力します)" -#: conn/conn_serial.py:140 conn/conn_serial.py:285 conn/conn_serial.py:376 -#: conn/conn_tcp_udp.py:129 conn/conn_tcp_udp.py:320 conn/conn_tcp_udp.py:419 +#: conn/conn_serial.py:144 conn/conn_serial.py:289 conn/conn_serial.py:381 +#: conn/conn_ssh.py:152 conn/conn_ssh.py:235 conn/conn_ssh.py:323 +#: conn/conn_tcp_udp.py:133 conn/conn_tcp_udp.py:324 conn/conn_tcp_udp.py:432 msgid "OPEN" msgstr "打込み" -#: conn/conn_serial.py:193 conn/conn_serial.py:319 +#: conn/conn_serial.py:197 conn/conn_serial.py:324 msgid "Open Failed" msgstr "開くことができませんでした" -#: conn/conn_serial.py:379 conn/conn_serial.py:382 conn/conn_tcp_udp.py:422 -#: conn/conn_tcp_udp.py:425 +#: conn/conn_serial.py:384 conn/conn_serial.py:387 conn/conn_ssh.py:326 +#: conn/conn_ssh.py:329 conn/conn_tcp_udp.py:435 conn/conn_tcp_udp.py:438 msgid "CLOSE" msgstr "関闭" -#: conn/conn_serial.py:416 conn/conn_tcp_udp.py:475 +#: conn/conn_serial.py:422 conn/conn_ssh.py:352 conn/conn_tcp_udp.py:490 msgid "Reconnected" msgstr "" -#: conn/conn_serial.py:446 conn/conn_tcp_udp.py:534 +#: conn/conn_serial.py:452 conn/conn_ssh.py:397 conn/conn_tcp_udp.py:549 msgid "Connection lose!" msgstr "接続が失われます!" -#: conn/conn_tcp_udp.py:99 +#: conn/conn_ssh.py:137 +msgid "Host" +msgstr "" + +#: conn/conn_ssh.py:139 +msgid "User" +msgstr "" + +#: conn/conn_ssh.py:140 +msgid "Password" +msgstr "" + +#: conn/conn_ssh.py:141 +msgid "SSH key" +msgstr "" + +#: conn/conn_ssh.py:142 +#, fuzzy +msgid "Saved" +msgstr "エスケープ" + +#: conn/conn_ssh.py:150 +#, fuzzy +msgid "File" +msgstr "ファイルを送信" + +#: conn/conn_ssh.py:210 +#, fuzzy +msgid "Input error" +msgstr "タイムフォーマットエラー" + +#: conn/conn_ssh.py:210 +msgid "Input" +msgstr "" + +#: conn/conn_ssh.py:210 +#, fuzzy +msgid "error" +msgstr "間違い" + +#: conn/conn_ssh.py:223 plugins/dbg.py:396 plugins/dbg.py:410 +#: plugins/protocol.py:423 plugins/protocol.py:433 +msgid "Select file" +msgstr "ファイルを選択" + +#: conn/conn_ssh.py:225 plugins/dbg.py:398 +msgid "All Files (*)" +msgstr "" + +#: conn/conn_ssh.py:279 conn/conn_tcp_udp.py:399 +#, fuzzy +msgid "Connect Failed" +msgstr "最初に接続してください" + +#: conn/conn_ssh.py:290 +#, fuzzy +msgid "Config error" +msgstr "タイムフォーマットエラー" + +#: conn/conn_ssh.py:317 +msgid "SSH pub key file path error" +msgstr "" + +#: conn/conn_ssh.py:379 conn/conn_tcp_udp.py:510 +msgid "Closed by peer" +msgstr "" + +#: conn/conn_ssh.py:384 conn/conn_tcp_udp.py:534 +#, fuzzy +msgid "Connection closed!" +msgstr "接続が失われます!" + +#: conn/conn_tcp_udp.py:103 msgid "Protocol" msgstr "" -#: conn/conn_tcp_udp.py:100 +#: conn/conn_tcp_udp.py:104 #, fuzzy msgid "Mode" msgstr "記録" -#: conn/conn_tcp_udp.py:101 +#: conn/conn_tcp_udp.py:105 msgid "Target" msgstr "" -#: conn/conn_tcp_udp.py:124 conn/conn_tcp_udp.py:243 +#: conn/conn_tcp_udp.py:128 conn/conn_tcp_udp.py:247 msgid "All clients" msgstr "" -#: conn/conn_tcp_udp.py:125 +#: conn/conn_tcp_udp.py:129 #, fuzzy msgid "Disconnect" msgstr "接続が失われます!" -#: conn/conn_tcp_udp.py:126 +#: conn/conn_tcp_udp.py:130 msgid "Auto reconnect" msgstr "" -#: conn/conn_tcp_udp.py:350 conn/conn_tcp_udp.py:468 conn/conn_tcp_udp.py:561 +#: conn/conn_tcp_udp.py:362 conn/conn_tcp_udp.py:482 conn/conn_tcp_udp.py:576 #, fuzzy msgid "Target error" msgstr "タイムフォーマットエラー" -#: conn/conn_tcp_udp.py:386 -#, fuzzy -msgid "Connect Failed" -msgstr "最初に接続してください" - -#: conn/conn_tcp_udp.py:446 +#: conn/conn_tcp_udp.py:459 msgid "Client connected:" msgstr "" -#: conn/conn_tcp_udp.py:495 -msgid "Closed by peer" -msgstr "" - -#: conn/conn_tcp_udp.py:515 +#: conn/conn_tcp_udp.py:530 #, fuzzy msgid "closed!" msgstr "クローズ" -#: conn/conn_tcp_udp.py:519 -#, fuzzy -msgid "Connection closed!" -msgstr "接続が失われます!" - -#: plugins/base.py:130 +#: plugins/base.py:154 msgid "Format error, should be like 00 01 02 03" msgstr "フォーマットエラー、00 01 02 03 のようになります" -#: plugins/base.py:167 plugins/base.py:185 +#: plugins/base.py:191 plugins/base.py:209 msgid "Escape is on, but escape error:" msgstr "エスケープはオンですが、エスケープエラー:" @@ -308,7 +387,7 @@ msgstr "エスケープはオンですが、エスケープエラー:" msgid "Send Receive" msgstr "清除接収区" -#: plugins/dbg.py:132 plugins/dbg.py:161 plugins/protocol.py:381 +#: plugins/dbg.py:132 plugins/dbg.py:161 plugins/protocol.py:382 msgid "ASCII" msgstr "ASCII" @@ -318,7 +397,7 @@ msgid "" "corner" msgstr "表示されている文字を使用して受信データを表示し、右上隅でデコード方法を選択します" -#: plugins/dbg.py:134 plugins/dbg.py:162 plugins/protocol.py:382 +#: plugins/dbg.py:134 plugins/dbg.py:162 plugins/protocol.py:383 msgid "HEX" msgstr "HEX" @@ -358,13 +437,13 @@ msgstr "顔色" msgid "Enable unix terminal color support, e.g. \\33[31;43mhello\\33[0m" msgstr "UNIX端末の色のサポートを有効にする, 例えば \\33[31;43mhello\\33[0m" -#: plugins/dbg.py:163 plugins/protocol.py:383 +#: plugins/dbg.py:163 plugins/protocol.py:384 msgid "" "Get send data as visible format, select encoding method at top right " "corner" msgstr "表示文字形式で送信するデータを取得し、右上隅でエンコード方法を選択します" -#: plugins/dbg.py:164 plugins/protocol.py:384 +#: plugins/dbg.py:164 plugins/protocol.py:385 msgid "Get send data as hex format, e.g. hex '31 32 33' equal to ascii '123'" msgstr "16進数の「313233」などの16進数形式で送信するデータを取得し、ASCIIコードの「123」は同等です。" @@ -380,11 +459,11 @@ msgstr "" msgid "Timed send, unit: ms" msgstr "定時間P送、単位:ms" -#: plugins/dbg.py:173 plugins/protocol.py:386 +#: plugins/dbg.py:173 plugins/protocol.py:387 msgid "" msgstr "" -#: plugins/dbg.py:174 plugins/protocol.py:387 +#: plugins/dbg.py:174 plugins/protocol.py:388 msgid "Select to send \\r\\n instead of \\n" msgstr "選択中ρ送信\\ r \\ n圧電不是\\ n" @@ -396,11 +475,11 @@ msgstr "記録" msgid "Record send data" msgstr "送信データを記録する" -#: plugins/dbg.py:178 plugins/protocol.py:389 +#: plugins/dbg.py:178 plugins/protocol.py:390 msgid "Escape" msgstr "エスケープ" -#: plugins/dbg.py:179 plugins/protocol.py:390 +#: plugins/dbg.py:179 plugins/protocol.py:391 msgid "Enable escape characters support like \\t \\r \\n \\x01 \\001" msgstr "\\t \\r \\n \\x01 \\001 のようなエスケープ文字のサポートを有効にする" @@ -448,8 +527,8 @@ msgstr "カスタム送信" msgid "Log path" msgstr "ログパス" -#: plugins/dbg.py:349 plugins/dbg.py:507 plugins/protocol.py:733 -#: plugins/protocol.py:755 +#: plugins/dbg.py:349 plugins/dbg.py:507 plugins/protocol.py:734 +#: plugins/protocol.py:756 msgid "Warning" msgstr "" @@ -470,15 +549,6 @@ msgstr "履歴がクリアされました!" msgid "Send file" msgstr "ファイルを送信" -#: plugins/dbg.py:396 plugins/dbg.py:410 plugins/protocol.py:422 -#: plugins/protocol.py:432 -msgid "Select file" -msgstr "ファイルを選択" - -#: plugins/dbg.py:398 -msgid "All Files (*)" -msgstr "" - #: plugins/dbg.py:412 msgid "Log file (*.log);;txt file (*.txt);;All Files (*)" msgstr "" @@ -543,90 +613,94 @@ msgstr "" msgid "Key mode" msgstr "" -#: plugins/protocol.py:359 +#: plugins/protocol.py:360 #, fuzzy msgid "En-decoding settings" msgstr "送信設定" -#: plugins/protocol.py:363 +#: plugins/protocol.py:364 msgid "Custom, input name" msgstr "" -#: plugins/protocol.py:364 +#: plugins/protocol.py:365 msgid "Load defaults" msgstr "" -#: plugins/protocol.py:367 plugins/protocol.py:699 plugins/protocol.py:723 -#: plugins/protocol.py:726 plugins/protocol.py:746 +#: plugins/protocol.py:368 plugins/protocol.py:700 plugins/protocol.py:724 +#: plugins/protocol.py:727 plugins/protocol.py:747 #, fuzzy msgid "Save" msgstr "エスケープ" -#: plugins/protocol.py:369 +#: plugins/protocol.py:370 msgid "Delete" msgstr "" -#: plugins/protocol.py:373 +#: plugins/protocol.py:374 msgid "Defaults" msgstr "" -#: plugins/protocol.py:375 +#: plugins/protocol.py:376 #, fuzzy msgid "Code" msgstr "記録" -#: plugins/protocol.py:379 +#: plugins/protocol.py:380 #, fuzzy msgid "Send settings" msgstr "送信設定" -#: plugins/protocol.py:412 +#: plugins/protocol.py:413 msgid "Load config" msgstr "" -#: plugins/protocol.py:413 +#: plugins/protocol.py:414 msgid "Share config" msgstr "" -#: plugins/protocol.py:424 plugins/protocol.py:434 +#: plugins/protocol.py:425 plugins/protocol.py:435 msgid "json file (*.json);;config file (*.conf);;All Files (*)" msgstr "" -#: plugins/protocol.py:443 +#: plugins/protocol.py:444 #, fuzzy msgid "config file format error" msgstr "タイムフォーマットエラー" -#: plugins/protocol.py:451 +#: plugins/protocol.py:452 msgid "Restart to load config?" msgstr "" -#: plugins/protocol.py:631 +#: plugins/protocol.py:632 msgid "Run decode error" msgstr "" -#: plugins/protocol.py:645 +#: plugins/protocol.py:646 #, fuzzy msgid "Run encode error" msgstr "エラーの送信" -#: plugins/protocol.py:707 +#: plugins/protocol.py:708 msgid "decode and encode method should be in code" msgstr "" -#: plugins/protocol.py:710 +#: plugins/protocol.py:711 #, fuzzy msgid "Method error" msgstr "エラーの送信" -#: plugins/protocol.py:733 +#: plugins/protocol.py:734 msgid "Please input code profile name first" msgstr "" -#: plugins/protocol.py:755 +#: plugins/protocol.py:756 msgid "Please select a code profile name first to delete" msgstr "" +#: plugins/terminal.py:674 +msgid "terminal" +msgstr "" + #~ msgid "Send" #~ msgstr "送信" diff --git a/COMTool/locales/messages.pot b/COMTool/locales/messages.pot index 1fc9a50..24652a8 100644 --- a/COMTool/locales/messages.pot +++ b/COMTool/locales/messages.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-03-07 15:52+0800\n" +"POT-Creation-Date: 2022-03-18 19:39+0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -17,72 +17,93 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Generated-By: Babel 2.9.1\n" -#: Main.py:242 conn/conn_tcp_udp.py:515 +#: Main.py:245 conn/conn_tcp_udp.py:530 msgid "Connection" msgstr "" -#: Main.py:312 Main.py:508 +#: Main.py:316 Main.py:517 msgid "Sent" msgstr "" -#: Main.py:312 Main.py:313 Main.py:508 Main.py:509 +#: Main.py:316 Main.py:317 Main.py:517 Main.py:518 msgid "bytes" msgstr "" -#: Main.py:313 Main.py:509 +#: Main.py:317 Main.py:518 msgid "Received" msgstr "" -#: Main.py:344 +#: Main.py:348 msgid "New Window" msgstr "" -#: Main.py:398 Main.py:403 Main.py:493 Main.py:504 Main.py:752 -#: conn/conn_serial.py:320 conn/conn_tcp_udp.py:387 plugins/base.py:109 -#: plugins/base.py:114 plugins/base.py:130 plugins/base.py:167 -#: plugins/base.py:185 plugins/dbg.py:504 plugins/dbg.py:521 plugins/dbg.py:578 -#: plugins/dbg.py:586 plugins/protocol.py:443 plugins/protocol.py:631 -#: plugins/protocol.py:645 plugins/protocol.py:711 +#: Main.py:402 Main.py:407 Main.py:502 Main.py:513 Main.py:815 +#: conn/conn_serial.py:325 conn/conn_ssh.py:280 conn/conn_tcp_udp.py:400 +#: plugins/base.py:133 plugins/base.py:138 plugins/base.py:154 +#: plugins/base.py:191 plugins/base.py:209 plugins/dbg.py:504 +#: plugins/dbg.py:521 plugins/dbg.py:578 plugins/dbg.py:586 +#: plugins/protocol.py:444 plugins/protocol.py:632 plugins/protocol.py:646 +#: plugins/protocol.py:712 msgid "Error" msgstr "" -#: Main.py:493 +#: Main.py:502 msgid "Open file failed!" msgstr "" -#: Main.py:541 Main.py:550 +#: Main.py:522 +msgid "Connected" +msgstr "" + +#: Main.py:524 parameters.py:31 +msgid "Closed" +msgstr "" + +#: Main.py:526 +msgid "Connecting" +msgstr "" + +#: Main.py:528 +msgid "Connection lose" +msgstr "" + +#: Main.py:557 Main.py:566 msgid "Restart now?" msgstr "" -#: Main.py:542 +#: Main.py:558 msgid "language changed to: " msgstr "" -#: Main.py:542 +#: Main.py:558 msgid "Restart software to take effect now?" msgstr "" -#: Main.py:669 +#: Main.py:614 Main.py:615 +msgid "Closing ..." +msgstr "" + +#: Main.py:703 msgid "About" msgstr "" -#: Main.py:678 +#: Main.py:712 msgid "New versioin detected, please click learn more to download" msgstr "" -#: Main.py:679 +#: Main.py:713 msgid "Learn More" msgstr "" -#: Main.py:680 +#: Main.py:714 msgid "Skip this version" msgstr "" -#: Main.py:681 +#: Main.py:715 msgid "Remind me next time" msgstr "" -#: Main.py:682 +#: Main.py:716 msgid "Need update" msgstr "" @@ -146,10 +167,6 @@ msgstr "" msgid "Functional Send" msgstr "" -#: parameters.py:31 -msgid "Closed" -msgstr "" - #: parameters.py:32 msgid "Ready" msgstr "" @@ -186,109 +203,163 @@ msgstr "" msgid "Custom, input baudrate" msgstr "" -#: conn/conn_serial.py:99 conn/conn_tcp_udp.py:104 +#: conn/conn_serial.py:103 conn/conn_ssh.py:138 conn/conn_tcp_udp.py:108 msgid "Port" msgstr "" -#: conn/conn_serial.py:100 +#: conn/conn_serial.py:104 msgid "Baudrate" msgstr "" -#: conn/conn_serial.py:101 +#: conn/conn_serial.py:105 msgid "DataBytes" msgstr "" -#: conn/conn_serial.py:102 +#: conn/conn_serial.py:106 msgid "Parity" msgstr "" -#: conn/conn_serial.py:103 +#: conn/conn_serial.py:107 msgid "Stopbits" msgstr "" -#: conn/conn_serial.py:104 +#: conn/conn_serial.py:108 msgid "Flow control" msgstr "" -#: conn/conn_serial.py:138 conn/conn_serial.py:139 +#: conn/conn_serial.py:142 conn/conn_serial.py:143 msgid "Check to enable(usually output low level)" msgstr "" -#: conn/conn_serial.py:140 conn/conn_serial.py:285 conn/conn_serial.py:376 -#: conn/conn_tcp_udp.py:129 conn/conn_tcp_udp.py:320 conn/conn_tcp_udp.py:419 +#: conn/conn_serial.py:144 conn/conn_serial.py:289 conn/conn_serial.py:381 +#: conn/conn_ssh.py:152 conn/conn_ssh.py:235 conn/conn_ssh.py:323 +#: conn/conn_tcp_udp.py:133 conn/conn_tcp_udp.py:324 conn/conn_tcp_udp.py:432 msgid "OPEN" msgstr "" -#: conn/conn_serial.py:193 conn/conn_serial.py:319 +#: conn/conn_serial.py:197 conn/conn_serial.py:324 msgid "Open Failed" msgstr "" -#: conn/conn_serial.py:379 conn/conn_serial.py:382 conn/conn_tcp_udp.py:422 -#: conn/conn_tcp_udp.py:425 +#: conn/conn_serial.py:384 conn/conn_serial.py:387 conn/conn_ssh.py:326 +#: conn/conn_ssh.py:329 conn/conn_tcp_udp.py:435 conn/conn_tcp_udp.py:438 msgid "CLOSE" msgstr "" -#: conn/conn_serial.py:416 conn/conn_tcp_udp.py:475 +#: conn/conn_serial.py:422 conn/conn_ssh.py:352 conn/conn_tcp_udp.py:490 msgid "Reconnected" msgstr "" -#: conn/conn_serial.py:446 conn/conn_tcp_udp.py:534 +#: conn/conn_serial.py:452 conn/conn_ssh.py:397 conn/conn_tcp_udp.py:549 msgid "Connection lose!" msgstr "" -#: conn/conn_tcp_udp.py:99 +#: conn/conn_ssh.py:137 +msgid "Host" +msgstr "" + +#: conn/conn_ssh.py:139 +msgid "User" +msgstr "" + +#: conn/conn_ssh.py:140 +msgid "Password" +msgstr "" + +#: conn/conn_ssh.py:141 +msgid "SSH key" +msgstr "" + +#: conn/conn_ssh.py:142 +msgid "Saved" +msgstr "" + +#: conn/conn_ssh.py:150 +msgid "File" +msgstr "" + +#: conn/conn_ssh.py:210 +msgid "Input error" +msgstr "" + +#: conn/conn_ssh.py:210 +msgid "Input" +msgstr "" + +#: conn/conn_ssh.py:210 +msgid "error" +msgstr "" + +#: conn/conn_ssh.py:223 plugins/dbg.py:396 plugins/dbg.py:410 +#: plugins/protocol.py:423 plugins/protocol.py:433 +msgid "Select file" +msgstr "" + +#: conn/conn_ssh.py:225 plugins/dbg.py:398 +msgid "All Files (*)" +msgstr "" + +#: conn/conn_ssh.py:279 conn/conn_tcp_udp.py:399 +msgid "Connect Failed" +msgstr "" + +#: conn/conn_ssh.py:290 +msgid "Config error" +msgstr "" + +#: conn/conn_ssh.py:317 +msgid "SSH pub key file path error" +msgstr "" + +#: conn/conn_ssh.py:379 conn/conn_tcp_udp.py:510 +msgid "Closed by peer" +msgstr "" + +#: conn/conn_ssh.py:384 conn/conn_tcp_udp.py:534 +msgid "Connection closed!" +msgstr "" + +#: conn/conn_tcp_udp.py:103 msgid "Protocol" msgstr "" -#: conn/conn_tcp_udp.py:100 +#: conn/conn_tcp_udp.py:104 msgid "Mode" msgstr "" -#: conn/conn_tcp_udp.py:101 +#: conn/conn_tcp_udp.py:105 msgid "Target" msgstr "" -#: conn/conn_tcp_udp.py:124 conn/conn_tcp_udp.py:243 +#: conn/conn_tcp_udp.py:128 conn/conn_tcp_udp.py:247 msgid "All clients" msgstr "" -#: conn/conn_tcp_udp.py:125 +#: conn/conn_tcp_udp.py:129 msgid "Disconnect" msgstr "" -#: conn/conn_tcp_udp.py:126 +#: conn/conn_tcp_udp.py:130 msgid "Auto reconnect" msgstr "" -#: conn/conn_tcp_udp.py:350 conn/conn_tcp_udp.py:468 conn/conn_tcp_udp.py:561 +#: conn/conn_tcp_udp.py:362 conn/conn_tcp_udp.py:482 conn/conn_tcp_udp.py:576 msgid "Target error" msgstr "" -#: conn/conn_tcp_udp.py:386 -msgid "Connect Failed" -msgstr "" - -#: conn/conn_tcp_udp.py:446 +#: conn/conn_tcp_udp.py:459 msgid "Client connected:" msgstr "" -#: conn/conn_tcp_udp.py:495 -msgid "Closed by peer" -msgstr "" - -#: conn/conn_tcp_udp.py:515 +#: conn/conn_tcp_udp.py:530 msgid "closed!" msgstr "" -#: conn/conn_tcp_udp.py:519 -msgid "Connection closed!" -msgstr "" - -#: plugins/base.py:130 +#: plugins/base.py:154 msgid "Format error, should be like 00 01 02 03" msgstr "" -#: plugins/base.py:167 plugins/base.py:185 +#: plugins/base.py:191 plugins/base.py:209 msgid "Escape is on, but escape error:" msgstr "" @@ -296,7 +367,7 @@ msgstr "" msgid "Send Receive" msgstr "" -#: plugins/dbg.py:132 plugins/dbg.py:161 plugins/protocol.py:381 +#: plugins/dbg.py:132 plugins/dbg.py:161 plugins/protocol.py:382 msgid "ASCII" msgstr "" @@ -306,7 +377,7 @@ msgid "" "corner" msgstr "" -#: plugins/dbg.py:134 plugins/dbg.py:162 plugins/protocol.py:382 +#: plugins/dbg.py:134 plugins/dbg.py:162 plugins/protocol.py:383 msgid "HEX" msgstr "" @@ -343,13 +414,13 @@ msgstr "" msgid "Enable unix terminal color support, e.g. \\33[31;43mhello\\33[0m" msgstr "" -#: plugins/dbg.py:163 plugins/protocol.py:383 +#: plugins/dbg.py:163 plugins/protocol.py:384 msgid "" "Get send data as visible format, select encoding method at top right " "corner" msgstr "" -#: plugins/dbg.py:164 plugins/protocol.py:384 +#: plugins/dbg.py:164 plugins/protocol.py:385 msgid "Get send data as hex format, e.g. hex '31 32 33' equal to ascii '123'" msgstr "" @@ -363,11 +434,11 @@ msgstr "" msgid "Timed send, unit: ms" msgstr "" -#: plugins/dbg.py:173 plugins/protocol.py:386 +#: plugins/dbg.py:173 plugins/protocol.py:387 msgid "" msgstr "" -#: plugins/dbg.py:174 plugins/protocol.py:387 +#: plugins/dbg.py:174 plugins/protocol.py:388 msgid "Select to send \\r\\n instead of \\n" msgstr "" @@ -379,11 +450,11 @@ msgstr "" msgid "Record send data" msgstr "" -#: plugins/dbg.py:178 plugins/protocol.py:389 +#: plugins/dbg.py:178 plugins/protocol.py:390 msgid "Escape" msgstr "" -#: plugins/dbg.py:179 plugins/protocol.py:390 +#: plugins/dbg.py:179 plugins/protocol.py:391 msgid "Enable escape characters support like \\t \\r \\n \\x01 \\001" msgstr "" @@ -431,8 +502,8 @@ msgstr "" msgid "Log path" msgstr "" -#: plugins/dbg.py:349 plugins/dbg.py:507 plugins/protocol.py:733 -#: plugins/protocol.py:755 +#: plugins/dbg.py:349 plugins/dbg.py:507 plugins/protocol.py:734 +#: plugins/protocol.py:756 msgid "Warning" msgstr "" @@ -452,15 +523,6 @@ msgstr "" msgid "Send file" msgstr "" -#: plugins/dbg.py:396 plugins/dbg.py:410 plugins/protocol.py:422 -#: plugins/protocol.py:432 -msgid "Select file" -msgstr "" - -#: plugins/dbg.py:398 -msgid "All Files (*)" -msgstr "" - #: plugins/dbg.py:412 msgid "Log file (*.log);;txt file (*.txt);;All Files (*)" msgstr "" @@ -519,80 +581,84 @@ msgstr "" msgid "Key mode" msgstr "" -#: plugins/protocol.py:359 +#: plugins/protocol.py:360 msgid "En-decoding settings" msgstr "" -#: plugins/protocol.py:363 +#: plugins/protocol.py:364 msgid "Custom, input name" msgstr "" -#: plugins/protocol.py:364 +#: plugins/protocol.py:365 msgid "Load defaults" msgstr "" -#: plugins/protocol.py:367 plugins/protocol.py:699 plugins/protocol.py:723 -#: plugins/protocol.py:726 plugins/protocol.py:746 +#: plugins/protocol.py:368 plugins/protocol.py:700 plugins/protocol.py:724 +#: plugins/protocol.py:727 plugins/protocol.py:747 msgid "Save" msgstr "" -#: plugins/protocol.py:369 +#: plugins/protocol.py:370 msgid "Delete" msgstr "" -#: plugins/protocol.py:373 +#: plugins/protocol.py:374 msgid "Defaults" msgstr "" -#: plugins/protocol.py:375 +#: plugins/protocol.py:376 msgid "Code" msgstr "" -#: plugins/protocol.py:379 +#: plugins/protocol.py:380 msgid "Send settings" msgstr "" -#: plugins/protocol.py:412 +#: plugins/protocol.py:413 msgid "Load config" msgstr "" -#: plugins/protocol.py:413 +#: plugins/protocol.py:414 msgid "Share config" msgstr "" -#: plugins/protocol.py:424 plugins/protocol.py:434 +#: plugins/protocol.py:425 plugins/protocol.py:435 msgid "json file (*.json);;config file (*.conf);;All Files (*)" msgstr "" -#: plugins/protocol.py:443 +#: plugins/protocol.py:444 msgid "config file format error" msgstr "" -#: plugins/protocol.py:451 +#: plugins/protocol.py:452 msgid "Restart to load config?" msgstr "" -#: plugins/protocol.py:631 +#: plugins/protocol.py:632 msgid "Run decode error" msgstr "" -#: plugins/protocol.py:645 +#: plugins/protocol.py:646 msgid "Run encode error" msgstr "" -#: plugins/protocol.py:707 +#: plugins/protocol.py:708 msgid "decode and encode method should be in code" msgstr "" -#: plugins/protocol.py:710 +#: plugins/protocol.py:711 msgid "Method error" msgstr "" -#: plugins/protocol.py:733 +#: plugins/protocol.py:734 msgid "Please input code profile name first" msgstr "" -#: plugins/protocol.py:755 +#: plugins/protocol.py:756 msgid "Please select a code profile name first to delete" msgstr "" +#: plugins/terminal.py:674 +msgid "terminal" +msgstr "" + diff --git a/COMTool/locales/zh_CN/LC_MESSAGES/messages.po b/COMTool/locales/zh_CN/LC_MESSAGES/messages.po index bbaa6c9..4d7d2e7 100644 --- a/COMTool/locales/zh_CN/LC_MESSAGES/messages.po +++ b/COMTool/locales/zh_CN/LC_MESSAGES/messages.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: https://github.com/Neutree/COMTool/issues\n" -"POT-Creation-Date: 2022-03-07 15:52+0800\n" +"POT-Creation-Date: 2022-03-18 19:39+0800\n" "PO-Revision-Date: 2021-12-04 15:20+0800\n" "Last-Translator: FULL NAME \n" "Language: zh_Hans_CN\n" @@ -18,72 +18,93 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Generated-By: Babel 2.9.1\n" -#: Main.py:242 conn/conn_tcp_udp.py:515 +#: Main.py:245 conn/conn_tcp_udp.py:530 msgid "Connection" msgstr "连接" -#: Main.py:312 Main.py:508 +#: Main.py:316 Main.py:517 msgid "Sent" msgstr "已发送" -#: Main.py:312 Main.py:313 Main.py:508 Main.py:509 +#: Main.py:316 Main.py:317 Main.py:517 Main.py:518 msgid "bytes" msgstr "字节" -#: Main.py:313 Main.py:509 +#: Main.py:317 Main.py:518 msgid "Received" msgstr "已接收" -#: Main.py:344 +#: Main.py:348 msgid "New Window" msgstr "新窗口" -#: Main.py:398 Main.py:403 Main.py:493 Main.py:504 Main.py:752 -#: conn/conn_serial.py:320 conn/conn_tcp_udp.py:387 plugins/base.py:109 -#: plugins/base.py:114 plugins/base.py:130 plugins/base.py:167 -#: plugins/base.py:185 plugins/dbg.py:504 plugins/dbg.py:521 plugins/dbg.py:578 -#: plugins/dbg.py:586 plugins/protocol.py:443 plugins/protocol.py:631 -#: plugins/protocol.py:645 plugins/protocol.py:711 +#: Main.py:402 Main.py:407 Main.py:502 Main.py:513 Main.py:815 +#: conn/conn_serial.py:325 conn/conn_ssh.py:280 conn/conn_tcp_udp.py:400 +#: plugins/base.py:133 plugins/base.py:138 plugins/base.py:154 +#: plugins/base.py:191 plugins/base.py:209 plugins/dbg.py:504 +#: plugins/dbg.py:521 plugins/dbg.py:578 plugins/dbg.py:586 +#: plugins/protocol.py:444 plugins/protocol.py:632 plugins/protocol.py:646 +#: plugins/protocol.py:712 msgid "Error" msgstr "错误" -#: Main.py:493 +#: Main.py:502 msgid "Open file failed!" msgstr "打开失败" -#: Main.py:541 Main.py:550 +#: Main.py:522 +msgid "Connected" +msgstr "已连接" + +#: Main.py:524 parameters.py:31 +msgid "Closed" +msgstr "已关闭" + +#: Main.py:526 +msgid "Connecting" +msgstr "连接中" + +#: Main.py:528 +msgid "Connection lose" +msgstr "连接丢失" + +#: Main.py:557 Main.py:566 msgid "Restart now?" msgstr "现在就重启?" -#: Main.py:542 +#: Main.py:558 msgid "language changed to: " msgstr "语言更改为: " -#: Main.py:542 +#: Main.py:558 msgid "Restart software to take effect now?" msgstr "现在就重启软件以生效?" -#: Main.py:669 +#: Main.py:614 Main.py:615 +msgid "Closing ..." +msgstr "关闭中 ..." + +#: Main.py:703 msgid "About" msgstr "关于" -#: Main.py:678 +#: Main.py:712 msgid "New versioin detected, please click learn more to download" msgstr "检测到了新版本, 请点击 了解更多 以下载" -#: Main.py:679 +#: Main.py:713 msgid "Learn More" msgstr "了解更多" -#: Main.py:680 +#: Main.py:714 msgid "Skip this version" msgstr "跳过此版本" -#: Main.py:681 +#: Main.py:715 msgid "Remind me next time" msgstr "下次提醒我" -#: Main.py:682 +#: Main.py:716 msgid "Need update" msgstr "需要更新" @@ -147,10 +168,6 @@ msgstr "接收设置" msgid "Functional Send" msgstr "其它发送功能" -#: parameters.py:31 -msgid "Closed" -msgstr "已关闭" - #: parameters.py:32 msgid "Ready" msgstr "就绪" @@ -187,109 +204,163 @@ msgstr "串口" msgid "Custom, input baudrate" msgstr "自定义,输入波特率" -#: conn/conn_serial.py:99 conn/conn_tcp_udp.py:104 +#: conn/conn_serial.py:103 conn/conn_ssh.py:138 conn/conn_tcp_udp.py:108 msgid "Port" msgstr "端口" -#: conn/conn_serial.py:100 +#: conn/conn_serial.py:104 msgid "Baudrate" msgstr "波特率" -#: conn/conn_serial.py:101 +#: conn/conn_serial.py:105 msgid "DataBytes" msgstr "数据字节" -#: conn/conn_serial.py:102 +#: conn/conn_serial.py:106 msgid "Parity" msgstr "奇偶校验" -#: conn/conn_serial.py:103 +#: conn/conn_serial.py:107 msgid "Stopbits" msgstr "停止位" -#: conn/conn_serial.py:104 +#: conn/conn_serial.py:108 msgid "Flow control" msgstr "流控" -#: conn/conn_serial.py:138 conn/conn_serial.py:139 +#: conn/conn_serial.py:142 conn/conn_serial.py:143 msgid "Check to enable(usually output low level)" msgstr "选中以使能(通常会输出低电平)" -#: conn/conn_serial.py:140 conn/conn_serial.py:285 conn/conn_serial.py:376 -#: conn/conn_tcp_udp.py:129 conn/conn_tcp_udp.py:320 conn/conn_tcp_udp.py:419 +#: conn/conn_serial.py:144 conn/conn_serial.py:289 conn/conn_serial.py:381 +#: conn/conn_ssh.py:152 conn/conn_ssh.py:235 conn/conn_ssh.py:323 +#: conn/conn_tcp_udp.py:133 conn/conn_tcp_udp.py:324 conn/conn_tcp_udp.py:432 msgid "OPEN" msgstr "打开" -#: conn/conn_serial.py:193 conn/conn_serial.py:319 +#: conn/conn_serial.py:197 conn/conn_serial.py:324 msgid "Open Failed" msgstr "打开失败" -#: conn/conn_serial.py:379 conn/conn_serial.py:382 conn/conn_tcp_udp.py:422 -#: conn/conn_tcp_udp.py:425 +#: conn/conn_serial.py:384 conn/conn_serial.py:387 conn/conn_ssh.py:326 +#: conn/conn_ssh.py:329 conn/conn_tcp_udp.py:435 conn/conn_tcp_udp.py:438 msgid "CLOSE" msgstr "关闭" -#: conn/conn_serial.py:416 conn/conn_tcp_udp.py:475 +#: conn/conn_serial.py:422 conn/conn_ssh.py:352 conn/conn_tcp_udp.py:490 msgid "Reconnected" msgstr "已重连" -#: conn/conn_serial.py:446 conn/conn_tcp_udp.py:534 +#: conn/conn_serial.py:452 conn/conn_ssh.py:397 conn/conn_tcp_udp.py:549 msgid "Connection lose!" msgstr "连接丢失!" -#: conn/conn_tcp_udp.py:99 +#: conn/conn_ssh.py:137 +msgid "Host" +msgstr "主机" + +#: conn/conn_ssh.py:139 +msgid "User" +msgstr "用户" + +#: conn/conn_ssh.py:140 +msgid "Password" +msgstr "密码" + +#: conn/conn_ssh.py:141 +msgid "SSH key" +msgstr "SSH 公钥" + +#: conn/conn_ssh.py:142 +msgid "Saved" +msgstr "已保存" + +#: conn/conn_ssh.py:150 +msgid "File" +msgstr "文件" + +#: conn/conn_ssh.py:210 +msgid "Input error" +msgstr "输入错误" + +#: conn/conn_ssh.py:210 +msgid "Input" +msgstr "输入" + +#: conn/conn_ssh.py:210 +msgid "error" +msgstr "错误" + +#: conn/conn_ssh.py:223 plugins/dbg.py:396 plugins/dbg.py:410 +#: plugins/protocol.py:423 plugins/protocol.py:433 +msgid "Select file" +msgstr "选择文件" + +#: conn/conn_ssh.py:225 plugins/dbg.py:398 +msgid "All Files (*)" +msgstr "所有文件 (*)" + +#: conn/conn_ssh.py:279 conn/conn_tcp_udp.py:399 +msgid "Connect Failed" +msgstr "连接失败" + +#: conn/conn_ssh.py:290 +msgid "Config error" +msgstr "配置错误" + +#: conn/conn_ssh.py:317 +msgid "SSH pub key file path error" +msgstr "SSH 公钥文件路径错误" + +#: conn/conn_ssh.py:379 conn/conn_tcp_udp.py:510 +msgid "Closed by peer" +msgstr "对方主动关闭连接" + +#: conn/conn_ssh.py:384 conn/conn_tcp_udp.py:534 +msgid "Connection closed!" +msgstr "连接已关闭!" + +#: conn/conn_tcp_udp.py:103 msgid "Protocol" msgstr "协议" -#: conn/conn_tcp_udp.py:100 +#: conn/conn_tcp_udp.py:104 msgid "Mode" msgstr "模式" -#: conn/conn_tcp_udp.py:101 +#: conn/conn_tcp_udp.py:105 msgid "Target" msgstr "目标" -#: conn/conn_tcp_udp.py:124 conn/conn_tcp_udp.py:243 +#: conn/conn_tcp_udp.py:128 conn/conn_tcp_udp.py:247 msgid "All clients" msgstr "所有客户端" -#: conn/conn_tcp_udp.py:125 +#: conn/conn_tcp_udp.py:129 msgid "Disconnect" msgstr "断开连接" -#: conn/conn_tcp_udp.py:126 +#: conn/conn_tcp_udp.py:130 msgid "Auto reconnect" msgstr "自动重连" -#: conn/conn_tcp_udp.py:350 conn/conn_tcp_udp.py:468 conn/conn_tcp_udp.py:561 +#: conn/conn_tcp_udp.py:362 conn/conn_tcp_udp.py:482 conn/conn_tcp_udp.py:576 msgid "Target error" msgstr "目标错误" -#: conn/conn_tcp_udp.py:386 -msgid "Connect Failed" -msgstr "连接失败" - -#: conn/conn_tcp_udp.py:446 +#: conn/conn_tcp_udp.py:459 msgid "Client connected:" msgstr "客户端已连接" -#: conn/conn_tcp_udp.py:495 -msgid "Closed by peer" -msgstr "对方主动关闭连接" - -#: conn/conn_tcp_udp.py:515 +#: conn/conn_tcp_udp.py:530 msgid "closed!" msgstr "已关闭!" -#: conn/conn_tcp_udp.py:519 -msgid "Connection closed!" -msgstr "连接已关闭!" - -#: plugins/base.py:130 +#: plugins/base.py:154 msgid "Format error, should be like 00 01 02 03" msgstr "格式错误,格式应该应该如 00 01 02 03" -#: plugins/base.py:167 plugins/base.py:185 +#: plugins/base.py:191 plugins/base.py:209 msgid "Escape is on, but escape error:" msgstr "转移符支持已打开,但是转义时错误" @@ -297,7 +368,7 @@ msgstr "转移符支持已打开,但是转义时错误" msgid "Send Receive" msgstr "收发" -#: plugins/dbg.py:132 plugins/dbg.py:161 plugins/protocol.py:381 +#: plugins/dbg.py:132 plugins/dbg.py:161 plugins/protocol.py:382 msgid "ASCII" msgstr "ASCII" @@ -307,7 +378,7 @@ msgid "" "corner" msgstr "使用可见字符显示收到的数据,在右上角选择解码的方法" -#: plugins/dbg.py:134 plugins/dbg.py:162 plugins/protocol.py:382 +#: plugins/dbg.py:134 plugins/dbg.py:162 plugins/protocol.py:383 msgid "HEX" msgstr "HEX" @@ -344,13 +415,13 @@ msgstr "颜色" msgid "Enable unix terminal color support, e.g. \\33[31;43mhello\\33[0m" msgstr "使能 unix 终端颜色支持,比如:\\33[31;43mhello\\33[0m" -#: plugins/dbg.py:163 plugins/protocol.py:383 +#: plugins/dbg.py:163 plugins/protocol.py:384 msgid "" "Get send data as visible format, select encoding method at top right " "corner" msgstr "以可见字符的方式获取将要发送的数据,在右上角选择编码的方法" -#: plugins/dbg.py:164 plugins/protocol.py:384 +#: plugins/dbg.py:164 plugins/protocol.py:385 msgid "Get send data as hex format, e.g. hex '31 32 33' equal to ascii '123'" msgstr "以十六进制的格式获取将要发送的数据,比如 十六进制的'31 32 33' 和 ascii编码的 '123' 等效" @@ -364,11 +435,11 @@ msgstr "定时发送" msgid "Timed send, unit: ms" msgstr "定时发送,单位:ms" -#: plugins/dbg.py:173 plugins/protocol.py:386 +#: plugins/dbg.py:173 plugins/protocol.py:387 msgid "" msgstr "" -#: plugins/dbg.py:174 plugins/protocol.py:387 +#: plugins/dbg.py:174 plugins/protocol.py:388 msgid "Select to send \\r\\n instead of \\n" msgstr "选中发送 \\r\\n 而不是 \\n" @@ -380,11 +451,11 @@ msgstr "记录" msgid "Record send data" msgstr "记录发送的数据" -#: plugins/dbg.py:178 plugins/protocol.py:389 +#: plugins/dbg.py:178 plugins/protocol.py:390 msgid "Escape" msgstr "转义符" -#: plugins/dbg.py:179 plugins/protocol.py:390 +#: plugins/dbg.py:179 plugins/protocol.py:391 msgid "Enable escape characters support like \\t \\r \\n \\x01 \\001" msgstr "使能转义字符支持,比如 \\t \\r \\n \\x01 \\001" @@ -432,8 +503,8 @@ msgstr "自定义发送" msgid "Log path" msgstr "日志路径" -#: plugins/dbg.py:349 plugins/dbg.py:507 plugins/protocol.py:733 -#: plugins/protocol.py:755 +#: plugins/dbg.py:349 plugins/dbg.py:507 plugins/protocol.py:734 +#: plugins/protocol.py:756 msgid "Warning" msgstr "警告" @@ -453,15 +524,6 @@ msgstr "历史已清除" msgid "Send file" msgstr "发送文件" -#: plugins/dbg.py:396 plugins/dbg.py:410 plugins/protocol.py:422 -#: plugins/protocol.py:432 -msgid "Select file" -msgstr "选择文件" - -#: plugins/dbg.py:398 -msgid "All Files (*)" -msgstr "所有文件 (*)" - #: plugins/dbg.py:412 msgid "Log file (*.log);;txt file (*.txt);;All Files (*)" msgstr "日志文件 (*.log);;文本文件 (*.txt);;所有文件 (*)" @@ -522,80 +584,84 @@ msgstr "协议" msgid "Key mode" msgstr "按键模式" -#: plugins/protocol.py:359 +#: plugins/protocol.py:360 msgid "En-decoding settings" msgstr "发送设置" -#: plugins/protocol.py:363 +#: plugins/protocol.py:364 msgid "Custom, input name" msgstr "自定义,输入名字" -#: plugins/protocol.py:364 +#: plugins/protocol.py:365 msgid "Load defaults" msgstr "加载默认项" -#: plugins/protocol.py:367 plugins/protocol.py:699 plugins/protocol.py:723 -#: plugins/protocol.py:726 plugins/protocol.py:746 +#: plugins/protocol.py:368 plugins/protocol.py:700 plugins/protocol.py:724 +#: plugins/protocol.py:727 plugins/protocol.py:747 msgid "Save" msgstr "保存" -#: plugins/protocol.py:369 +#: plugins/protocol.py:370 msgid "Delete" msgstr "删除" -#: plugins/protocol.py:373 +#: plugins/protocol.py:374 msgid "Defaults" msgstr "默认项" -#: plugins/protocol.py:375 +#: plugins/protocol.py:376 msgid "Code" msgstr "代码" -#: plugins/protocol.py:379 +#: plugins/protocol.py:380 msgid "Send settings" msgstr "发送设置" -#: plugins/protocol.py:412 +#: plugins/protocol.py:413 msgid "Load config" msgstr "加载配置" -#: plugins/protocol.py:413 +#: plugins/protocol.py:414 msgid "Share config" msgstr "分享配置" -#: plugins/protocol.py:424 plugins/protocol.py:434 +#: plugins/protocol.py:425 plugins/protocol.py:435 msgid "json file (*.json);;config file (*.conf);;All Files (*)" msgstr "json 文件 (*.json);;配置文件 (*.conf);;所有文件 (*)" -#: plugins/protocol.py:443 +#: plugins/protocol.py:444 msgid "config file format error" msgstr "配置文件格式错误" -#: plugins/protocol.py:451 +#: plugins/protocol.py:452 msgid "Restart to load config?" msgstr "重启以加载配置" -#: plugins/protocol.py:631 +#: plugins/protocol.py:632 msgid "Run decode error" msgstr "执行解码错误" -#: plugins/protocol.py:645 +#: plugins/protocol.py:646 msgid "Run encode error" msgstr "执行编码错误" -#: plugins/protocol.py:707 +#: plugins/protocol.py:708 msgid "decode and encode method should be in code" msgstr "编解码方法未提供" -#: plugins/protocol.py:710 +#: plugins/protocol.py:711 msgid "Method error" msgstr "方法错误" -#: plugins/protocol.py:733 +#: plugins/protocol.py:734 msgid "Please input code profile name first" msgstr "请先输入代码存档名" -#: plugins/protocol.py:755 +#: plugins/protocol.py:756 msgid "Please select a code profile name first to delete" msgstr "请先选择要删除的存档名" +#: plugins/terminal.py:674 +msgid "terminal" +msgstr "终端" + diff --git a/COMTool/locales/zh_TW/LC_MESSAGES/messages.po b/COMTool/locales/zh_TW/LC_MESSAGES/messages.po index d149f81..7259fc9 100644 --- a/COMTool/locales/zh_TW/LC_MESSAGES/messages.po +++ b/COMTool/locales/zh_TW/LC_MESSAGES/messages.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-03-07 15:52+0800\n" +"POT-Creation-Date: 2022-03-18 19:39+0800\n" "PO-Revision-Date: 2021-12-04 15:20+0800\n" "Last-Translator: FULL NAME \n" "Language: zh_Hant_TW\n" @@ -18,74 +18,98 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Generated-By: Babel 2.9.1\n" -#: Main.py:242 conn/conn_tcp_udp.py:515 +#: Main.py:245 conn/conn_tcp_udp.py:530 #, fuzzy msgid "Connection" msgstr "連接丟失!" -#: Main.py:312 Main.py:508 +#: Main.py:316 Main.py:517 msgid "Sent" msgstr "" -#: Main.py:312 Main.py:313 Main.py:508 Main.py:509 +#: Main.py:316 Main.py:317 Main.py:517 Main.py:518 msgid "bytes" msgstr "字節" -#: Main.py:313 Main.py:509 +#: Main.py:317 Main.py:518 #, fuzzy msgid "Received" msgstr "接收" -#: Main.py:344 +#: Main.py:348 msgid "New Window" msgstr "" -#: Main.py:398 Main.py:403 Main.py:493 Main.py:504 Main.py:752 -#: conn/conn_serial.py:320 conn/conn_tcp_udp.py:387 plugins/base.py:109 -#: plugins/base.py:114 plugins/base.py:130 plugins/base.py:167 -#: plugins/base.py:185 plugins/dbg.py:504 plugins/dbg.py:521 plugins/dbg.py:578 -#: plugins/dbg.py:586 plugins/protocol.py:443 plugins/protocol.py:631 -#: plugins/protocol.py:645 plugins/protocol.py:711 +#: Main.py:402 Main.py:407 Main.py:502 Main.py:513 Main.py:815 +#: conn/conn_serial.py:325 conn/conn_ssh.py:280 conn/conn_tcp_udp.py:400 +#: plugins/base.py:133 plugins/base.py:138 plugins/base.py:154 +#: plugins/base.py:191 plugins/base.py:209 plugins/dbg.py:504 +#: plugins/dbg.py:521 plugins/dbg.py:578 plugins/dbg.py:586 +#: plugins/protocol.py:444 plugins/protocol.py:632 plugins/protocol.py:646 +#: plugins/protocol.py:712 msgid "Error" msgstr "錯誤" -#: Main.py:493 +#: Main.py:502 msgid "Open file failed!" msgstr "打開失敗" -#: Main.py:541 Main.py:550 +#: Main.py:522 +#, fuzzy +msgid "Connected" +msgstr "連接丟失!" + +#: Main.py:524 parameters.py:31 +msgid "Closed" +msgstr "已關閉" + +#: Main.py:526 +#, fuzzy +msgid "Connecting" +msgstr "連接丟失!" + +#: Main.py:528 +#, fuzzy +msgid "Connection lose" +msgstr "連接丟失!" + +#: Main.py:557 Main.py:566 msgid "Restart now?" msgstr "現在就重啟?" -#: Main.py:542 +#: Main.py:558 msgid "language changed to: " msgstr "語言更改為:" -#: Main.py:542 +#: Main.py:558 msgid "Restart software to take effect now?" msgstr "現在就重啟軟件以生效?" -#: Main.py:669 +#: Main.py:614 Main.py:615 +msgid "Closing ..." +msgstr "" + +#: Main.py:703 msgid "About" msgstr "關於" -#: Main.py:678 +#: Main.py:712 msgid "New versioin detected, please click learn more to download" msgstr "檢測到了新版本,請點擊 瞭解更多 按鈕以下載" -#: Main.py:679 +#: Main.py:713 msgid "Learn More" msgstr "瞭解更多" -#: Main.py:680 +#: Main.py:714 msgid "Skip this version" msgstr "跳過此版本" -#: Main.py:681 +#: Main.py:715 msgid "Remind me next time" msgstr "下次提醒我" -#: Main.py:682 +#: Main.py:716 msgid "Need update" msgstr "需要更新" @@ -151,10 +175,6 @@ msgstr "接收設置" msgid "Functional Send" msgstr "其它發送功能" -#: parameters.py:31 -msgid "Closed" -msgstr "已關閉" - #: parameters.py:32 msgid "Ready" msgstr "就緒" @@ -191,115 +211,174 @@ msgstr "" msgid "Custom, input baudrate" msgstr "" -#: conn/conn_serial.py:99 conn/conn_tcp_udp.py:104 +#: conn/conn_serial.py:103 conn/conn_ssh.py:138 conn/conn_tcp_udp.py:108 msgid "Port" msgstr "端口" -#: conn/conn_serial.py:100 +#: conn/conn_serial.py:104 msgid "Baudrate" msgstr "波特率" -#: conn/conn_serial.py:101 +#: conn/conn_serial.py:105 msgid "DataBytes" msgstr "數據字節" -#: conn/conn_serial.py:102 +#: conn/conn_serial.py:106 msgid "Parity" msgstr "奇偶偶" -#: conn/conn_serial.py:103 +#: conn/conn_serial.py:107 msgid "Stopbits" msgstr "停止位" -#: conn/conn_serial.py:104 +#: conn/conn_serial.py:108 msgid "Flow control" msgstr "流控" -#: conn/conn_serial.py:138 conn/conn_serial.py:139 +#: conn/conn_serial.py:142 conn/conn_serial.py:143 msgid "Check to enable(usually output low level)" msgstr "選中以使能(通常會輸出低電平)" -#: conn/conn_serial.py:140 conn/conn_serial.py:285 conn/conn_serial.py:376 -#: conn/conn_tcp_udp.py:129 conn/conn_tcp_udp.py:320 conn/conn_tcp_udp.py:419 +#: conn/conn_serial.py:144 conn/conn_serial.py:289 conn/conn_serial.py:381 +#: conn/conn_ssh.py:152 conn/conn_ssh.py:235 conn/conn_ssh.py:323 +#: conn/conn_tcp_udp.py:133 conn/conn_tcp_udp.py:324 conn/conn_tcp_udp.py:432 msgid "OPEN" msgstr "打開" -#: conn/conn_serial.py:193 conn/conn_serial.py:319 +#: conn/conn_serial.py:197 conn/conn_serial.py:324 msgid "Open Failed" msgstr "打開失敗" -#: conn/conn_serial.py:379 conn/conn_serial.py:382 conn/conn_tcp_udp.py:422 -#: conn/conn_tcp_udp.py:425 +#: conn/conn_serial.py:384 conn/conn_serial.py:387 conn/conn_ssh.py:326 +#: conn/conn_ssh.py:329 conn/conn_tcp_udp.py:435 conn/conn_tcp_udp.py:438 msgid "CLOSE" msgstr "關閉" -#: conn/conn_serial.py:416 conn/conn_tcp_udp.py:475 +#: conn/conn_serial.py:422 conn/conn_ssh.py:352 conn/conn_tcp_udp.py:490 msgid "Reconnected" msgstr "" -#: conn/conn_serial.py:446 conn/conn_tcp_udp.py:534 +#: conn/conn_serial.py:452 conn/conn_ssh.py:397 conn/conn_tcp_udp.py:549 msgid "Connection lose!" msgstr "連接丟失!" -#: conn/conn_tcp_udp.py:99 +#: conn/conn_ssh.py:137 +msgid "Host" +msgstr "" + +#: conn/conn_ssh.py:139 +msgid "User" +msgstr "" + +#: conn/conn_ssh.py:140 +msgid "Password" +msgstr "" + +#: conn/conn_ssh.py:141 +msgid "SSH key" +msgstr "" + +#: conn/conn_ssh.py:142 +#, fuzzy +msgid "Saved" +msgstr "轉義符" + +#: conn/conn_ssh.py:150 +#, fuzzy +msgid "File" +msgstr "發送文件" + +#: conn/conn_ssh.py:210 +#, fuzzy +msgid "Input error" +msgstr "時間格式錯誤" + +#: conn/conn_ssh.py:210 +msgid "Input" +msgstr "" + +#: conn/conn_ssh.py:210 +#, fuzzy +msgid "error" +msgstr "錯誤" + +#: conn/conn_ssh.py:223 plugins/dbg.py:396 plugins/dbg.py:410 +#: plugins/protocol.py:423 plugins/protocol.py:433 +msgid "Select file" +msgstr "選擇文件" + +#: conn/conn_ssh.py:225 plugins/dbg.py:398 +msgid "All Files (*)" +msgstr "所有文件 (*)" + +#: conn/conn_ssh.py:279 conn/conn_tcp_udp.py:399 +#, fuzzy +msgid "Connect Failed" +msgstr "請先連接" + +#: conn/conn_ssh.py:290 +#, fuzzy +msgid "Config error" +msgstr "時間格式錯誤" + +#: conn/conn_ssh.py:317 +msgid "SSH pub key file path error" +msgstr "" + +#: conn/conn_ssh.py:379 conn/conn_tcp_udp.py:510 +msgid "Closed by peer" +msgstr "" + +#: conn/conn_ssh.py:384 conn/conn_tcp_udp.py:534 +#, fuzzy +msgid "Connection closed!" +msgstr "連接丟失!" + +#: conn/conn_tcp_udp.py:103 msgid "Protocol" msgstr "" -#: conn/conn_tcp_udp.py:100 +#: conn/conn_tcp_udp.py:104 #, fuzzy msgid "Mode" msgstr "記錄" -#: conn/conn_tcp_udp.py:101 +#: conn/conn_tcp_udp.py:105 msgid "Target" msgstr "" -#: conn/conn_tcp_udp.py:124 conn/conn_tcp_udp.py:243 +#: conn/conn_tcp_udp.py:128 conn/conn_tcp_udp.py:247 msgid "All clients" msgstr "" -#: conn/conn_tcp_udp.py:125 +#: conn/conn_tcp_udp.py:129 #, fuzzy msgid "Disconnect" msgstr "連接丟失!" -#: conn/conn_tcp_udp.py:126 +#: conn/conn_tcp_udp.py:130 msgid "Auto reconnect" msgstr "" -#: conn/conn_tcp_udp.py:350 conn/conn_tcp_udp.py:468 conn/conn_tcp_udp.py:561 +#: conn/conn_tcp_udp.py:362 conn/conn_tcp_udp.py:482 conn/conn_tcp_udp.py:576 #, fuzzy msgid "Target error" msgstr "時間格式錯誤" -#: conn/conn_tcp_udp.py:386 -#, fuzzy -msgid "Connect Failed" -msgstr "請先連接" - -#: conn/conn_tcp_udp.py:446 +#: conn/conn_tcp_udp.py:459 msgid "Client connected:" msgstr "" -#: conn/conn_tcp_udp.py:495 -msgid "Closed by peer" -msgstr "" - -#: conn/conn_tcp_udp.py:515 +#: conn/conn_tcp_udp.py:530 #, fuzzy msgid "closed!" msgstr "已關閉" -#: conn/conn_tcp_udp.py:519 -#, fuzzy -msgid "Connection closed!" -msgstr "連接丟失!" - -#: plugins/base.py:130 +#: plugins/base.py:154 msgid "Format error, should be like 00 01 02 03" msgstr "格式錯誤,應該如:00 01 02 03" -#: plugins/base.py:167 plugins/base.py:185 +#: plugins/base.py:191 plugins/base.py:209 msgid "Escape is on, but escape error:" msgstr "轉義符支持已打開,但是轉義時出現了問題" @@ -307,7 +386,7 @@ msgstr "轉義符支持已打開,但是轉義時出現了問題" msgid "Send Receive" msgstr "收发" -#: plugins/dbg.py:132 plugins/dbg.py:161 plugins/protocol.py:381 +#: plugins/dbg.py:132 plugins/dbg.py:161 plugins/protocol.py:382 msgid "ASCII" msgstr "ASCII" @@ -317,7 +396,7 @@ msgid "" "corner" msgstr "使用可見字符顯示收到的數據,在右上角選擇解碼的方法" -#: plugins/dbg.py:134 plugins/dbg.py:162 plugins/protocol.py:382 +#: plugins/dbg.py:134 plugins/dbg.py:162 plugins/protocol.py:383 msgid "HEX" msgstr "HEX" @@ -354,13 +433,13 @@ msgstr "顏色" msgid "Enable unix terminal color support, e.g. \\33[31;43mhello\\33[0m" msgstr "使能 unix 終端樣式的顏色支持, 比如: \\33[31;43mhello\\33[0m" -#: plugins/dbg.py:163 plugins/protocol.py:383 +#: plugins/dbg.py:163 plugins/protocol.py:384 msgid "" "Get send data as visible format, select encoding method at top right " "corner" msgstr "以可見字符的方式獲取將要發送的數據,在右上角選擇編碼的方法" -#: plugins/dbg.py:164 plugins/protocol.py:384 +#: plugins/dbg.py:164 plugins/protocol.py:385 msgid "Get send data as hex format, e.g. hex '31 32 33' equal to ascii '123'" msgstr "以十六進制的格式獲取將要發送的數據,比如 十六進制的'31 32 33' 和 ascii編碼的 '123' 等效" @@ -374,11 +453,11 @@ msgstr "定時發送" msgid "Timed send, unit: ms" msgstr "定時發送,單位:ms" -#: plugins/dbg.py:173 plugins/protocol.py:386 +#: plugins/dbg.py:173 plugins/protocol.py:387 msgid "" msgstr "" -#: plugins/dbg.py:174 plugins/protocol.py:387 +#: plugins/dbg.py:174 plugins/protocol.py:388 msgid "Select to send \\r\\n instead of \\n" msgstr "選中發出通知\\r\\n不是\\n" @@ -391,11 +470,11 @@ msgstr "記錄" msgid "Record send data" msgstr "發送數據" -#: plugins/dbg.py:178 plugins/protocol.py:389 +#: plugins/dbg.py:178 plugins/protocol.py:390 msgid "Escape" msgstr "轉義符" -#: plugins/dbg.py:179 plugins/protocol.py:390 +#: plugins/dbg.py:179 plugins/protocol.py:391 msgid "Enable escape characters support like \\t \\r \\n \\x01 \\001" msgstr "使能轉義符支持,比如 \\t \\r \\n \\x01 \\001" @@ -443,8 +522,8 @@ msgstr "自定義發送" msgid "Log path" msgstr "日誌路徑" -#: plugins/dbg.py:349 plugins/dbg.py:507 plugins/protocol.py:733 -#: plugins/protocol.py:755 +#: plugins/dbg.py:349 plugins/dbg.py:507 plugins/protocol.py:734 +#: plugins/protocol.py:756 msgid "Warning" msgstr "" @@ -465,15 +544,6 @@ msgstr "歷史已清除!" msgid "Send file" msgstr "發送文件" -#: plugins/dbg.py:396 plugins/dbg.py:410 plugins/protocol.py:422 -#: plugins/protocol.py:432 -msgid "Select file" -msgstr "選擇文件" - -#: plugins/dbg.py:398 -msgid "All Files (*)" -msgstr "所有文件 (*)" - #: plugins/dbg.py:412 msgid "Log file (*.log);;txt file (*.txt);;All Files (*)" msgstr "日誌文件 (*.log);;文本文件 (*.txt);;所有文件 (*)" @@ -538,90 +608,94 @@ msgstr "" msgid "Key mode" msgstr "" -#: plugins/protocol.py:359 +#: plugins/protocol.py:360 #, fuzzy msgid "En-decoding settings" msgstr "發送設置" -#: plugins/protocol.py:363 +#: plugins/protocol.py:364 msgid "Custom, input name" msgstr "" -#: plugins/protocol.py:364 +#: plugins/protocol.py:365 msgid "Load defaults" msgstr "" -#: plugins/protocol.py:367 plugins/protocol.py:699 plugins/protocol.py:723 -#: plugins/protocol.py:726 plugins/protocol.py:746 +#: plugins/protocol.py:368 plugins/protocol.py:700 plugins/protocol.py:724 +#: plugins/protocol.py:727 plugins/protocol.py:747 #, fuzzy msgid "Save" msgstr "轉義符" -#: plugins/protocol.py:369 +#: plugins/protocol.py:370 msgid "Delete" msgstr "" -#: plugins/protocol.py:373 +#: plugins/protocol.py:374 msgid "Defaults" msgstr "" -#: plugins/protocol.py:375 +#: plugins/protocol.py:376 #, fuzzy msgid "Code" msgstr "記錄" -#: plugins/protocol.py:379 +#: plugins/protocol.py:380 #, fuzzy msgid "Send settings" msgstr "發送設置" -#: plugins/protocol.py:412 +#: plugins/protocol.py:413 msgid "Load config" msgstr "" -#: plugins/protocol.py:413 +#: plugins/protocol.py:414 msgid "Share config" msgstr "" -#: plugins/protocol.py:424 plugins/protocol.py:434 +#: plugins/protocol.py:425 plugins/protocol.py:435 msgid "json file (*.json);;config file (*.conf);;All Files (*)" msgstr "" -#: plugins/protocol.py:443 +#: plugins/protocol.py:444 #, fuzzy msgid "config file format error" msgstr "時間格式錯誤" -#: plugins/protocol.py:451 +#: plugins/protocol.py:452 msgid "Restart to load config?" msgstr "" -#: plugins/protocol.py:631 +#: plugins/protocol.py:632 msgid "Run decode error" msgstr "" -#: plugins/protocol.py:645 +#: plugins/protocol.py:646 #, fuzzy msgid "Run encode error" msgstr "發送出錯" -#: plugins/protocol.py:707 +#: plugins/protocol.py:708 msgid "decode and encode method should be in code" msgstr "" -#: plugins/protocol.py:710 +#: plugins/protocol.py:711 #, fuzzy msgid "Method error" msgstr "發送出錯" -#: plugins/protocol.py:733 +#: plugins/protocol.py:734 msgid "Please input code profile name first" msgstr "" -#: plugins/protocol.py:755 +#: plugins/protocol.py:756 msgid "Please select a code profile name first to delete" msgstr "" +#: plugins/terminal.py:674 +msgid "terminal" +msgstr "" + #~ msgid "Send" #~ msgstr "發送" diff --git a/README.MD b/README.MD index 8acd772..04534b8 100644 --- a/README.MD +++ b/README.MD @@ -255,6 +255,18 @@ git clone https://github.com/Neutree/COMTool.git Recommended `PyCharm` IDE or `vscode` to get start +How to run: +Generate translate binary files first(`.mo`) + +``` +python COMTool/i18n.py finish +``` + +Then execute main program + +``` +python COMTool/Main.py +``` 5. pull request diff --git a/README_ZH.MD b/README_ZH.MD index d0aa8f4..f930cf9 100644 --- a/README_ZH.MD +++ b/README_ZH.MD @@ -253,6 +253,18 @@ git clone https://github.com/Neutree/COMTool.git 推荐使用 `PyCharm` IDE 或 `vscode` 开始 +运行方法: +需要先生成翻译所需要的二进制文件(`.mo`) + +``` +python COMTool/i18n.py finish +``` + +然后执行主程序即可 + +``` +python COMTool/Main.py +``` 5. 创建合并请求