diff --git a/COMTool/locales/en/LC_MESSAGES/messages.po b/COMTool/locales/en/LC_MESSAGES/messages.po index 2f399c0..34ac37b 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: 2023-11-15 21:31+0800\n" +"POT-Creation-Date: 2023-11-15 22:11+0800\n" "PO-Revision-Date: 2021-12-04 15:21+0800\n" "Last-Translator: FULL NAME \n" "Language: en\n" @@ -685,7 +685,7 @@ msgid "For ASCII protocol(\"binary protocol\" not checked)" msgstr "" #: plugins/graph.py:72 -msgid "\"$\" means start of frame, \",\" means separator" +msgid "\"$\" means start of frame, end with \"\\n\" \",\" means separator" msgstr "" #: plugins/graph.py:73 @@ -1033,3 +1033,6 @@ msgstr "" #~ msgid "Double click to add a gragh widget" #~ msgstr "" +#~ msgid "\"$\" means start of frame, \",\" means separator" +#~ msgstr "" + diff --git a/COMTool/locales/ja/LC_MESSAGES/messages.po b/COMTool/locales/ja/LC_MESSAGES/messages.po index 75ef2b7..43bf789 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: 2023-11-15 21:31+0800\n" +"POT-Creation-Date: 2023-11-15 22:11+0800\n" "PO-Revision-Date: 2021-12-04 15:20+0800\n" "Last-Translator: FULL NAME \n" "Language: ja\n" @@ -706,7 +706,7 @@ msgid "For ASCII protocol(\"binary protocol\" not checked)" msgstr "" #: plugins/graph.py:72 -msgid "\"$\" means start of frame, \",\" means separator" +msgid "\"$\" means start of frame, end with \"\\n\" \",\" means separator" msgstr "" #: plugins/graph.py:73 @@ -1046,3 +1046,6 @@ msgstr "" #~ msgid "Double click to add a gragh widget" #~ msgstr "" +#~ msgid "\"$\" means start of frame, \",\" means separator" +#~ msgstr "" + diff --git a/COMTool/locales/messages.pot b/COMTool/locales/messages.pot index 900bbba..2cfbe3a 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: 2023-11-15 21:31+0800\n" +"POT-Creation-Date: 2023-11-15 22:11+0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -680,7 +680,7 @@ msgid "For ASCII protocol(\"binary protocol\" not checked)" msgstr "" #: plugins/graph.py:72 -msgid "\"$\" means start of frame, \",\" means separator" +msgid "\"$\" means start of frame, end with \"\\n\" \",\" means separator" msgstr "" #: plugins/graph.py:73 diff --git a/COMTool/locales/zh_CN/LC_MESSAGES/messages.po b/COMTool/locales/zh_CN/LC_MESSAGES/messages.po index b4ccbab..bba699b 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: 2023-11-15 21:31+0800\n" +"POT-Creation-Date: 2023-11-15 22:11+0800\n" "PO-Revision-Date: 2021-12-04 15:20+0800\n" "Last-Translator: FULL NAME \n" "Language: zh_Hans_CN\n" @@ -683,8 +683,8 @@ msgid "For ASCII protocol(\"binary protocol\" not checked)" msgstr "对于 字符(ASCII)协议(\"二进制协议\"选项未选中)" #: plugins/graph.py:72 -msgid "\"$\" means start of frame, \",\" means separator" -msgstr "\"$\" 代表帧开始,\",\" 代表分隔符" +msgid "\"$\" means start of frame, end with \"\\n\" \",\" means separator" +msgstr "\"$\" 代表帧开始,已\"\\n\"结尾,\",\" 代表分隔符" #: plugins/graph.py:73 msgid "" diff --git a/COMTool/locales/zh_TW/LC_MESSAGES/messages.po b/COMTool/locales/zh_TW/LC_MESSAGES/messages.po index e590152..db4aeba 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: 2023-11-15 21:31+0800\n" +"POT-Creation-Date: 2023-11-15 22:11+0800\n" "PO-Revision-Date: 2021-12-04 15:20+0800\n" "Last-Translator: FULL NAME \n" "Language: zh_Hant_TW\n" @@ -683,7 +683,7 @@ msgid "For ASCII protocol(\"binary protocol\" not checked)" msgstr "" #: plugins/graph.py:72 -msgid "\"$\" means start of frame, \",\" means separator" +msgid "\"$\" means start of frame, end with \"\\n\" \",\" means separator" msgstr "" #: plugins/graph.py:73 @@ -1011,3 +1011,6 @@ msgstr "" #~ msgid "Double click to add a gragh widget" #~ msgstr "" +#~ msgid "\"$\" means start of frame, \",\" means separator" +#~ msgstr "" + diff --git a/COMTool/plugins/graph.py b/COMTool/plugins/graph.py index 5a6c749..221e102 100644 --- a/COMTool/plugins/graph.py +++ b/COMTool/plugins/graph.py @@ -69,7 +69,7 @@ class Plugin(Plugin_Base): /*******'''+ _('For ASCII protocol("binary protocol" not checked)') + ''' *******/ /** * $[line name],[x],[y]<,checksum>\\n - * ''' + _('"$" means start of frame, "," means separator') + ''', + * ''' + _('"$" means start of frame, end with "\\n" "," means separator') + ''', * ''' + _('checksum is optional, checksum is sum of all bytes in frame except ",checksum".') + ''' * ''' + _('e.g.') + ''' * "$roll,1.0,2.0\\n" @@ -85,7 +85,7 @@ class Plugin(Plugin_Base): { sum += buff[i]; } - snprintf(buff + strlen(buff), buff_len - strlen(buff), ",%d\n", sum & 0xFF); + snprintf(buff + strlen(buff), buff_len - strlen(buff), ",%d\\n", sum & 0xFF); return strlen(buff); } diff --git a/COMTool/version.py b/COMTool/version.py index ce150e4..1bb93a5 100644 --- a/COMTool/version.py +++ b/COMTool/version.py @@ -1,7 +1,7 @@ major = 3 minor = 3 -dev = 0 +dev = 1 __version__ = "{}.{}.{}".format(major, minor, dev)