/
text.po
122 lines (100 loc) · 3.39 KB
/
text.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
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.Text\n"
"---"
msgstr ""
msgid "# `xmlua.Text` class"
msgstr "# `xmlua.Text` クラス"
msgid "## Summary"
msgstr "## 概要"
msgid ""
"It's a class for text node. You can get text object by [`xmlua.Searchable:sear"
"ch`][searchable-search] and [`xmlua.NodeSet`][node-set]'s `[]`."
msgstr ""
"テキストノードのためのクラスです。[`xmlua.Searchable:search`][searchable-search] と [`xmlua.Node"
"Set`][node-set] の `[]` を使ってテキストノードを取得できます。"
msgid "Example:"
msgstr "例:"
msgid ""
"```lua\n"
"local xmlua = require(\"xmlua\")"
msgstr ""
msgid "local document = xmlua.XML.parse(\"<root>This is text</root>\")"
msgstr ""
msgid ""
"document:search(\"/root/text()\")[1] -- -> xmlua.Text\n"
"```"
msgstr ""
msgid "## Instance methods"
msgstr "## インスタンスメソッド"
msgid "### `concat(content) -> boolean` {#concat}"
msgstr ""
msgid ""
"Concat the given content of argument at the end of the existing node.\n"
"It returns the success or failure of the concatenation as a boolean.\n"
"`true` is a success of concatenating. `false` is concatenate failure."
msgstr ""
"既存のノードの最後に引数で指定した内容を連結します。連結の成否をブーリアンとして返します。`true` は連結の成功を表します。 `false` は連結の失"
"敗を表します。"
msgid ""
"```lua\n"
"local document =\n"
" xmlua.XML.build({\"root\", {}, \"Text1\"})\n"
"local text_nodes = document:search(\"/root/text()\")\n"
"text_nodes[1]:concat(\"Text2\")\n"
"print(document:to_xml())\n"
"--<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"--<root>Text1Text2</root>\n"
"end\n"
"```"
msgstr ""
msgid "### `merge(content) -> boolean` {#concat}"
msgstr ""
msgid ""
"Merge receiver and content of argument into one text node.\n"
"It returns the success or failure of the merge as a boolean.\n"
"`true` is a success of merge. `false` is merge failure."
msgstr ""
"レシーバーのノードと引数の内容を1つのテキストノードにマージします。マージの成否をブーリアンとして返します。`true` はマージの成功を表します。 `fa"
"lse` はマージの失敗を表します。"
msgid ""
"```lua\n"
"local document = xmlua.XML.parse([[\n"
"<root>\n"
" Text:\n"
" <child>This is child</child>\n"
"</root>\n"
"]])\n"
"local text1 = document:search(\"/root/text()\")\n"
"local text2 = document:search(\"/root/child/text()\")"
msgstr ""
msgid ""
"text1[1]:merge(text2[1])\n"
"print(document:to_xml())\n"
"--<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"--<root>\n"
"-- Text:\n"
"-- This is child<child/>\n"
"--</root>\n"
"```"
msgstr ""
msgid "## See also"
msgstr "## 参照"
msgid " * [`xmlua.NodeSet`][node-set]: The class for multiple nodes."
msgstr " * [`xmlua.NodeSet`][node-set]: 複数ノードを扱うためのクラスです。"
msgid " * [`xmlua.Searchable`][searchable]: Provides node search related methods."
msgstr " * [`xmlua.Searchable`][searchable]: ノード検索関連のメソッドを提供します。"
msgid "[node-set]:node-set.html"
msgstr ""
msgid "[searchable-search]:searchable.html#search"
msgstr ""
msgid "[searchable]:searchable.html"
msgstr ""