Skip to content

Commit d6ae2f5

Browse files
committed
Add VSCode editore docs
1 parent 2132716 commit d6ae2f5

File tree

3 files changed

+52
-25
lines changed

3 files changed

+52
-25
lines changed

docs/language.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,3 +661,9 @@ PyCharm
661661

662662
Syntax highlighting settings for PyCharm is available from
663663
`bitproto's github repository <https://github.com/hit9/bitproto/tree/master/editors/pycharm>`_.
664+
665+
VSCode
666+
""""""
667+
668+
Install the extension from marketplace:
669+
`bitproto vscode extension <https://marketplace.visualstudio.com/items?itemName=hit9.bitproto>`_.

docs/locales/zh/LC_MESSAGES/changelog.po

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: bitproto 0.4.0\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2022-12-13 22:41+0800\n"
11+
"POT-Creation-Date: 2022-12-26 21:32+0800\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -21,55 +21,67 @@ msgstr ""
2121
msgid "Changelog"
2222
msgstr "版本历史"
2323

24-
#: ../../../changes.rst:5 9e9740e4c92e4ed595194bd543ebe147
24+
#: ../../../changes.rst:4 fc5a94d17a314c589b3622ad0c32e5a0
25+
msgid "Version 1.0.0"
26+
msgstr ""
27+
28+
#: ../../../changes.rst:8 c894eb85f9834f1b837622fd859c7e98
29+
msgid "First fully release version"
30+
msgstr "第一次发布 1.0 版本"
31+
32+
#: ../../../changes.rst:13 30bc2f453f9a4e4daec1f2b082a6ac91
33+
msgid "Version 0.4.6"
34+
msgstr ""
35+
36+
#: ../../../changes.rst:15 9e9740e4c92e4ed595194bd543ebe147
2537
msgid "Support signed integers with arbitrary bits, e.g. int24 PR#45."
2638
msgstr "支持任意比特数目的有符号整数类型 例如 int24, 见 PR#45"
2739

28-
#: ../../../changes.rst:10 30bc2f453f9a4e4daec1f2b082a6ac91
40+
#: ../../../changes.rst:20 30bc2f453f9a4e4daec1f2b082a6ac91
2941
msgid "Version 0.4.5"
3042
msgstr ""
3143

32-
#: ../../../changes.rst:12 3ba33408fbab4e6e8fa4bd1348e776a9
44+
#: ../../../changes.rst:22 3ba33408fbab4e6e8fa4bd1348e776a9
3345
msgid ""
3446
"Use Python IntEnum for enum generation (respecting backward "
3547
"compatibility) PR#41."
3648
msgstr ""
3749

38-
#: ../../../changes.rst:17 dc7770b7fd674da18fa53f58fea0f06f
50+
#: ../../../changes.rst:27 dc7770b7fd674da18fa53f58fea0f06f
3951
msgid "Version 0.4.4"
4052
msgstr ""
4153

42-
#: ../../../changes.rst:19 ee1e046b6272442181a755b5b744d6ba
54+
#: ../../../changes.rst:29 ee1e046b6272442181a755b5b744d6ba
4355
msgid "Minor fix compiler setup.py path issue."
4456
msgstr ""
4557

46-
#: ../../../changes.rst:24 2cd432670b154c19a01259f94cb33bc3
58+
#: ../../../changes.rst:34 2cd432670b154c19a01259f94cb33bc3
4759
msgid "Version 0.4.2"
4860
msgstr ""
4961

50-
#: ../../../changes.rst:26 a8406cdecd1d4dfc94ad9cebc4c927b5
62+
#: ../../../changes.rst:36 a8406cdecd1d4dfc94ad9cebc4c927b5
5163
msgid "Allow using ``type`` as message field name, fixes issue #39."
5264
msgstr ""
5365

54-
#: ../../../changes.rst:31 fc5a94d17a314c589b3622ad0c32e5a0
66+
#: ../../../changes.rst:41 fc5a94d17a314c589b3622ad0c32e5a0
5567
msgid "Version 0.4.0"
5668
msgstr ""
5769

58-
#: ../../../changes.rst:33 3c499990cd38434f932a3558376617c5
70+
#: ../../../changes.rst:43 3c499990cd38434f932a3558376617c5
5971
msgid ""
6072
"Add support for ``message`` and ``enum`` extensiblity for protocol "
6173
"backward compatibility."
6274
msgstr ""
6375

64-
#: ../../../changes.rst:34 ad10bcd6f05a4e5187b2d8ba2f3e5235
76+
#: ../../../changes.rst:44 ad10bcd6f05a4e5187b2d8ba2f3e5235
6577
msgid "Cut down the code size of generated language-specific files."
6678
msgstr ""
6779

68-
#: ../../../changes.rst:35 a2e47a95cb5c4f44ac3a9d965d8d719c
80+
#: ../../../changes.rst:45 a2e47a95cb5c4f44ac3a9d965d8d719c
6981
msgid "Refactor the bitproto compiler."
7082
msgstr ""
7183

72-
#: ../../../changes.rst:36 480040dd74284c97acfb4dcc47354779
84+
#: ../../../changes.rst:46 480040dd74284c97acfb4dcc47354779
7385
msgid ""
7486
"Refactor the bitproto serialization mechanism, using language-specific "
7587
"libraries instead of pure compiler-generated files."

docs/locales/zh/LC_MESSAGES/language.po

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: bitproto 0.4.0\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2022-12-13 22:41+0800\n"
11+
"POT-Creation-Date: 2022-12-26 21:32+0800\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -94,11 +94,14 @@ msgid ""
9494
"integer. For bitproto <= v0.4.5, only ``int8,int16,int32,int64`` are "
9595
"supported. But since bitproto 0.4.6, signed integers with arbitrary bits "
9696
"are supported."
97-
msgstr "有符号的比特级别的整数类型, 其中 ``n`` 是一个从 ``1`` 到 ``64`` 的数字。举例来说,``int24``, ``int32``, ``int64`` 都支持。"
98-
"一个有符号整数 ``int{n}`` 在编码后将占用 ``n`` 个比特。在代码生成时,``int{n}`` 将会被映射成为最小可以容纳这些数量的比特的对应语言中的整数类型,"
99-
"例如生成 C 语言时,``int3`` 将映射成 ``int8_t``, ``int13`` 将映射成 ``int16_t``,依此类推。"
100-
"对于一个有符号类型的整数 ``int{n}`` 而言,第 ``n`` 位比特会被认为是其符号位,比如说 ``int24`` 的符号位是第 ``24`` 个比特。"
101-
"在 bitproto v0.4.5 之前的版本,只有 ``int8,int16,int32,int64`` 才被支持, 但是自从 v0.4.6 以后,任意比特数目大小的有符号整数都支持了。"
97+
msgstr ""
98+
"有符号的比特级别的整数类型, 其中 ``n`` 是一个从 ``1`` 到 ``64`` 的数字。举例来说,``int24``, "
99+
"``int32``, ``int64`` 都支持。一个有符号整数 ``int{n}`` 在编码后将占用 ``n`` "
100+
"个比特。在代码生成时,``int{n}`` 将会被映射成为最小可以容纳这些数量的比特的对应语言中的整数类型,例如生成 C 语言时,``int3``"
101+
" 将映射成 ``int8_t``, ``int13`` 将映射成 ``int16_t``,依此类推。对于一个有符号类型的整数 ``int{n}``"
102+
" 而言,第 ``n`` 位比特会被认为是其符号位,比如说 ``int24`` 的符号位是第 ``24`` 个比特。在 bitproto "
103+
"v0.4.5 之前的版本,只有 ``int8,int16,int32,int64`` 才被支持, 但是自从 v0.4.6 "
104+
"以后,任意比特数目大小的有符号整数都支持了。"
102105

103106
#: ../../language.rst:60 83beae3ea0194637af4e2b8a05064115
104107
msgid "``byte``"
@@ -660,15 +663,21 @@ msgid "PyCharm"
660663
msgstr ""
661664

662665
#: ../../language.rst:662 d8243880ab7145a0ad9b686f35e3dbc1
663-
#, fuzzy
664666
msgid ""
665667
"Syntax highlighting settings for PyCharm is available from `bitproto's "
666-
"github repository "
667-
"<https://github.com/hit9/bitproto/tree/master/editors/pycharm>`_."
668+
"github repository <https://github.com/hit9/bitproto/tree/master/editors/pycharm>`_."
668669
msgstr ""
669-
"在 `bitproto 的 github 仓库 "
670-
"<https://github.com/hit9/bitproto/tree/master/editors/vim>`_ 中包含一个 `vim "
671-
"编辑器 <https://www.vim.org/>`_ 的语法高亮插件。"
670+
"bitproto 的 PyCharm 语法高亮插件: `<https://github.com/hit9/bitproto/tree/master/editors/pycharm>`_."
671+
672+
#: ../../language.rst:666 867939080c3643a6ad15e3ce30b70e9f
673+
msgid "VSCode"
674+
msgstr ""
675+
676+
#: ../../language.rst:668 44ebe8c3d9714e35b3434447f45d400d
677+
msgid ""
678+
"Install the extension from marketplace: `bitproto vscode extension "
679+
"<https://marketplace.visualstudio.com/items?itemName=hit9.bitproto>`_."
680+
msgstr "VSCode 插件可以直接从市场安装: `<https://marketplace.visualstudio.com/items?itemName=hit9.bitproto>`_."
672681

673682
#~ msgid "``int{8,16,32,64}``"
674683
#~ msgstr ""

0 commit comments

Comments
 (0)