-
Notifications
You must be signed in to change notification settings - Fork 9
/
comment.po
153 lines (127 loc) · 3.89 KB
/
comment.po
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Language: ja\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
msgid ""
"---\n"
"title: xmlua.Comment\n"
"---"
msgstr ""
msgid "# `xmlua.Comment` class"
msgstr "# `xmlua.Comment` クラス"
msgid "## Summary"
msgstr "## 概要"
msgid ""
"It's a class for comment node. Normaly, you can get comment object by [`xmlua."
"Document:create_comment`][create-comment]."
msgstr "コメントノード用のクラスです。通常、[`xmlua.Document:create_comment`][create-comment]を使用して取得します。"
msgid "Example:"
msgstr "例:"
msgid ""
"```lua\n"
"local xmlua = require(\"xmlua\")"
msgstr ""
msgid ""
"local document = xmlua.XML.build({\"root\"})\n"
"local comment_node = -- -> xmlua.Comment\n"
" document:create_comment(\"This is <CDATA>\")\n"
"```"
msgstr ""
msgid "## Instance methods"
msgstr "## インスタンスメソッド"
msgid "### `content() -> string` {#content}"
msgstr ""
msgid "It returns content of the comment as `string`."
msgstr "コメントノードの内容を `string` として返します。"
msgid ""
"local document = xmlua.XML.build({\"root\"})\n"
"local comment_node =\n"
" document:create_comment(\"This is comment\")\n"
"print(comment_node:content())\n"
"--This is comment\n"
"```"
msgstr ""
msgid "### `set_content(countent) -> void` {#set-content}"
msgstr ""
msgid "You can set content of comment with this method."
msgstr "このメソッドは、コメントノードの内容を設定できます。"
msgid ""
"local document = xmlua.XML.build({\"root\"})\n"
"local comment_node =\n"
" document:create_comment(\"This is comment\")\n"
"print(comment_node:content())\n"
"--This is comment\n"
"comment_node:set_content(\"Seted comment\")\n"
"print(comment_node:content())\n"
"--Seted comment\n"
"```"
msgstr ""
msgid "### `replace(replace_node) -> void` {#replace}"
msgstr ""
msgid "You can replace receiver node to specify node."
msgstr "レシーバのノードを指定したノードに置き換えます。"
msgid ""
"```lua\n"
"local document = xmlua.XML.build({\"root\"})"
msgstr ""
msgid ""
"local comment_node =\n"
" document:create_comment(\"This is comment\")\n"
"local replace_node =\n"
" document:create_cdata_section(\"This is <CDATASetion>\")\n"
"root = document:root()\n"
"root:add_child(comment_node)\n"
"print(document:to_xml())\n"
"--<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"--<root>\n"
"-- <!--This is Comment-->\n"
"--</root>\n"
"comment_node:replace(replace_node)\n"
"print(document:to_xml())\n"
"--<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"--<root><!--[CDATA[This is <CDATA>]]></root>\n"
"```"
msgstr ""
msgid "### `text() -> nil` {#text}"
msgstr ""
msgid ""
"It's returns `nil`.\n"
"Beacuse text node don't have child node."
msgstr "コメントノードは子要素を持たないため、`nil`を返します。"
msgid "### `path() -> string` {#path}"
msgstr ""
msgid "It returns XPath of the comment node as `string`."
msgstr "コメントノードのXPathを `string` として返します。"
msgid ""
"local comment_node =\n"
" document:create_comment(\"This is comment\")\n"
"root = document:root()\n"
"root:add_child(comment_node)\n"
"print(comment_node:path())\n"
"--/root/comment()\n"
"```"
msgstr ""
msgid "### `unlink() -> xmlua.Element` {#unlink}"
msgstr ""
msgid "It remove receiver from document tree."
msgstr "レシーバーをドキュメントツリーから削除します。"
msgid ""
"local comment_node =\n"
" document:create_comment(\"This is comment\")\n"
"root = document:root()\n"
"root:add_child(comment_node)\n"
"print(document:to_xml())\n"
"--<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"--<root>\n"
"-- <!--This is comment-->\n"
"--</root>\n"
"comment_node:unlink()\n"
"print(document:to_xml())\n"
"--<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"--<root/>\n"
"```"
msgstr ""