Skip to content

Commit

Permalink
fix graph doc error
Browse files Browse the repository at this point in the history
  • Loading branch information
Neutree committed Nov 15, 2023
1 parent 45a2705 commit 28fd883
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 14 deletions.
7 changes: 5 additions & 2 deletions COMTool/locales/en/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 <EMAIL@ADDRESS>\n"
"Language: en\n"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -1033,3 +1033,6 @@ msgstr ""
#~ msgid "Double click to add a gragh widget"
#~ msgstr ""

#~ msgid "\"$\" means start of frame, \",\" means separator"
#~ msgstr ""

7 changes: 5 additions & 2 deletions COMTool/locales/ja/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 <EMAIL@ADDRESS>\n"
"Language: ja\n"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -1046,3 +1046,6 @@ msgstr ""
#~ msgid "Double click to add a gragh widget"
#~ msgstr ""

#~ msgid "\"$\" means start of frame, \",\" means separator"
#~ msgstr ""

4 changes: 2 additions & 2 deletions COMTool/locales/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions COMTool/locales/zh_CN/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 <EMAIL@ADDRESS>\n"
"Language: zh_Hans_CN\n"
Expand Down Expand Up @@ -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 ""
Expand Down
7 changes: 5 additions & 2 deletions COMTool/locales/zh_TW/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 <EMAIL@ADDRESS>\n"
"Language: zh_Hant_TW\n"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -1011,3 +1011,6 @@ msgstr ""
#~ msgid "Double click to add a gragh widget"
#~ msgstr ""

#~ msgid "\"$\" means start of frame, \",\" means separator"
#~ msgstr ""

4 changes: 2 additions & 2 deletions COMTool/plugins/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class Plugin(Plugin_Base):
/*******'''+ _('For ASCII protocol("binary protocol" not checked)') + ''' *******/
/**
* $[line name],[x],[y]&lt;,checksum&gt;\\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"
Expand All @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion COMTool/version.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

major = 3
minor = 3
dev = 0
dev = 1

__version__ = "{}.{}.{}".format(major, minor, dev)

Expand Down

0 comments on commit 28fd883

Please sign in to comment.