Skip to content

Commit 75a1611

Browse files
author
文派备案
committed
补充语言包,2.0 正式版发布
1 parent 021fef2 commit 75a1611

File tree

128 files changed

+13259
-115
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+13259
-115
lines changed

bbpress-api-server.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* Plugin Name: bbPress API Server
4-
* Plugin URI: https://wptopic.com/document/bbpress-api-server
4+
* Plugin URI: https://wenpai.org/plugins/bbpress-api-server
55
* Description: Provides comprehensive API endpoints for bbPress forums, topics, and replies with creation capabilities
66
* Version: 2.0.0
77
* Author: WPTopic.com
@@ -86,3 +86,13 @@ function bbpas_load_textdomain() {
8686
'bbpas_admin_page'
8787
);
8888
});
89+
90+
// Integrate UpdatePulse Server for updates using PUC v5.3
91+
require_once plugin_dir_path(__FILE__) . 'lib/plugin-update-checker/plugin-update-checker.php';
92+
use YahnisElsts\PluginUpdateChecker\v5p3\PucFactory;
93+
94+
$BbpressApiServerUpdateChecker = PucFactory::buildUpdateChecker(
95+
'https://updates.weixiaoduo.com/bbpress-api-server.json',
96+
__FILE__,
97+
'bbpress-api-server'
98+
);

includes/admin.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88
function bbpas_admin_page() {
99
?>
1010
<div class="wrap">
11-
<h1><?php _e('bbPress API Server', 'bbpress-api-server'); ?></h1>
12-
11+
<h1><?php _e('bbPress API Server', 'bbpress-api-server'); ?>
12+
<span style="font-size: 13px; padding-left: 10px;"><?php printf(esc_html__('Version: %s', 'bbpress-api-server'), esc_html(BBPAS_VERSION)); ?></span>
13+
<a href="https://wpsdk.com/?p=1076" target="_blank" class="button button-secondary" style="margin-left: 10px;"><?php esc_html_e('Document', 'bbpress-api-server'); ?></a>
14+
<a href="https://bbs.weixiaoduo.com/" target="_blank" class="button button-secondary"><?php esc_html_e('Support', 'bbpress-api-server'); ?></a>
15+
</h1>
1316
<!-- Tabs for API Details -->
1417
<div class="card">
1518
<h2><?php _e('API Details', 'bbpress-api-server'); ?></h2>
-196 Bytes
Binary file not shown.

languages/bbpress-api-server-zh_CN.po

Lines changed: 70 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -3,56 +3,56 @@ msgstr ""
33
"Project-Id-Version: bbPress API Server\n"
44
"Report-Msgid-Bugs-To: \n"
55
"POT-Creation-Date: 2025-03-16 07:25+0000\n"
6-
"PO-Revision-Date: 2025-03-16 15:47+0800\n"
6+
"PO-Revision-Date: 2025-03-27 03:56+0000\n"
77
"Last-Translator: \n"
88
"Language-Team: 简体中文\n"
99
"Language: zh_CN\n"
1010
"MIME-Version: 1.0\n"
1111
"Content-Type: text/plain; charset=UTF-8\n"
1212
"Content-Transfer-Encoding: 8bit\n"
1313
"Plural-Forms: nplurals=1; plural=0;\n"
14-
"X-Generator: Poedit 3.5\n"
14+
"X-Generator: Loco https://localise.biz/\n"
1515
"X-Loco-Version: 2.6.11; wp-6.7.2\n"
1616
"X-Domain: bbpress-api-server\n"
1717

18-
#: includes/admin.php:191
18+
#: includes/admin.php:194
1919
msgid "Activate this plugin (bbPress API Server) from the Plugins page."
2020
msgstr "从插件页面激活此插件(bbPress API 服务器)。"
2121

22-
#: includes/admin.php:40
22+
#: includes/admin.php:43
2323
msgid "Active"
2424
msgstr "启用"
2525

26-
#: includes/admin.php:199
26+
#: includes/admin.php:202
2727
msgid "Advanced Tips"
2828
msgstr "高级技巧"
2929

30-
#: includes/admin.php:15
30+
#: includes/admin.php:18
3131
msgid "API Details"
3232
msgstr "API 详细信息"
3333

34-
#: includes/admin.php:26
34+
#: includes/admin.php:29
3535
msgid "API Namespace:"
3636
msgstr "API 命名空间:"
3737

38-
#: includes/admin.php:19
38+
#: includes/admin.php:22
3939
msgid "API Status"
4040
msgstr "API 状态"
4141

42-
#: includes/admin.php:20
42+
#: includes/admin.php:23
4343
msgid "Available Endpoints"
4444
msgstr "可用端点"
4545

46-
#: bbpress-api-server.php:73
46+
#: bbpress-api-server.php:83
4747
msgid "bbPress API"
4848
msgstr "bbPress API"
4949

5050
#. Name of the plugin
51-
#: bbpress-api-server.php:72 includes/admin.php:11
51+
#: bbpress-api-server.php:82 includes/admin.php:11
5252
msgid "bbPress API Server"
5353
msgstr "bbPress API 服务器"
5454

55-
#: bbpress-api-server.php:41 bbpress-api-server.php:55
55+
#: bbpress-api-server.php:41 bbpress-api-server.php:65
5656
msgid "bbPress API Server requires bbPress to be installed and activated."
5757
msgstr "bbPress API 服务器需要安装并激活 bbPress。"
5858

@@ -61,7 +61,7 @@ msgstr "bbPress API 服务器需要安装并激活 bbPress。"
6161
msgid "bbPress is not active"
6262
msgstr "bbPress 未处于活动状态"
6363

64-
#: includes/admin.php:28
64+
#: includes/admin.php:31
6565
msgid "bbPress Version:"
6666
msgstr "bbPress 版本:"
6767

@@ -73,85 +73,89 @@ msgstr "无法在类别中创建话题"
7373
msgid "Connection successful"
7474
msgstr "连接成功"
7575

76-
#: includes/admin.php:95
76+
#: includes/admin.php:98
7777
msgid "Create a new topic in a forum"
7878
msgstr "在论坛中创建新话题"
7979

80-
#: includes/admin.php:125
80+
#: includes/admin.php:128
8181
msgid "Create a reply to a topic"
8282
msgstr "创建话题回复"
8383

84-
#: includes/admin.php:155
84+
#: includes/admin.php:158
8585
msgid "Create a reply to another reply"
8686
msgstr "创建对另一个回复的回复"
8787

88-
#: includes/admin.php:57
88+
#: includes/admin.php:60
8989
msgid "Description"
9090
msgstr "描述"
9191

92-
#: includes/admin.php:192
92+
#: includes/admin.php:13
93+
msgid "Document"
94+
msgstr "文档"
95+
96+
#: includes/admin.php:195
9397
msgid ""
9498
"Enable pretty permalinks in Settings > Permalinks (recommended: \"Post "
9599
"name\")."
96100
msgstr "前往设置 > 固定链接中启用漂亮的永久链接(推荐:“文章名”)。"
97101

98-
#: includes/admin.php:55
102+
#: includes/admin.php:58
99103
msgid "Endpoint"
100104
msgstr "端点"
101105

102-
#: includes/admin.php:211
106+
#: includes/admin.php:214
103107
msgid "Endpoint:"
104108
msgstr "端点:"
105109

106-
#: includes/admin.php:35
110+
#: includes/admin.php:38
107111
msgid "Error"
108112
msgstr "错误"
109113

110-
#: includes/admin.php:58
114+
#: includes/admin.php:61
111115
msgid "Example"
112116
msgstr "示例"
113117

114-
#: includes/admin.php:75
118+
#: includes/admin.php:78
115119
msgid "Get a list of forums"
116120
msgstr "获取论坛列表"
117121

118-
#: includes/admin.php:165
122+
#: includes/admin.php:168
119123
msgid "Get a list of topic tags"
120124
msgstr "获取话题标签列表"
121125

122-
#: includes/admin.php:105
126+
#: includes/admin.php:108
123127
msgid "Get a list of topics"
124128
msgstr "获取话题列表"
125129

126-
#: includes/admin.php:85
130+
#: includes/admin.php:88
127131
msgid "Get details of a specific forum"
128132
msgstr "获取特定论坛的详细信息"
129133

130-
#: includes/admin.php:145
134+
#: includes/admin.php:148
131135
msgid "Get details of a specific reply"
132136
msgstr "获取特定回复的详细信息"
133137

134-
#: includes/admin.php:115
138+
#: includes/admin.php:118
135139
msgid "Get details of a specific topic"
136140
msgstr "获取特定话题的详细信息"
137141

138-
#: includes/admin.php:175
142+
#: includes/admin.php:178
139143
msgid "Get forum statistics"
140144
msgstr "获取论坛统计信息"
141145

142-
#: includes/admin.php:135
146+
#: includes/admin.php:138
143147
msgid "Get replies for a topic"
144148
msgstr "获取话题的回复"
145149

146-
#: includes/admin.php:188
150+
#: includes/admin.php:191
147151
msgid "Getting Started"
148152
msgstr "入门"
149153

150-
#: includes/admin.php:284
154+
#: includes/admin.php:287
151155
msgid "Hide Example"
152156
msgstr "隐藏示例"
153157

154-
#: includes/admin.php:197
158+
#: includes/admin.php:200
155159
msgid "How to Using the API?"
156160
msgstr "如何使用API​​?"
157161

@@ -163,15 +167,15 @@ msgstr "https://wptopic.com"
163167
msgid "https://wptopic.com/document/bbpress-api-server"
164168
msgstr "https://wptopic.com/document/bbpress-api-server"
165169

166-
#: includes/admin.php:42
170+
#: includes/admin.php:45
167171
msgid "Inactive"
168172
msgstr "停用"
169173

170-
#: includes/admin.php:190
174+
#: includes/admin.php:193
171175
msgid "Install and activate bbPress on your WordPress site."
172176
msgstr "在您的 WordPress 网站上安装并激活 bbPress。"
173177

174-
#: includes/admin.php:21
178+
#: includes/admin.php:24
175179
msgid "Instructions"
176180
msgstr "说明"
177181

@@ -197,35 +201,35 @@ msgstr "回复 ID 无效"
197201
msgid "Invalid topic ID"
198202
msgstr "话题 ID 无效"
199203

200-
#: includes/admin.php:47
204+
#: includes/admin.php:50
201205
msgid "Last Check:"
202206
msgstr "最后检查:"
203207

204-
#: includes/admin.php:44
208+
#: includes/admin.php:47
205209
msgid "Message:"
206210
msgstr "信息:"
207211

208-
#: includes/admin.php:56
212+
#: includes/admin.php:59
209213
msgid "Method"
210214
msgstr "方法"
211215

212-
#: includes/admin.php:215
216+
#: includes/admin.php:218
213217
msgid "Method:"
214218
msgstr "方法:"
215219

216-
#: includes/admin.php:195
220+
#: includes/admin.php:198
217221
msgid "More Help"
218222
msgstr "更多帮助"
219223

220-
#: includes/admin.php:222
224+
#: includes/admin.php:225
221225
msgid "Parameters (JSON):"
222226
msgstr "参数(JSON):"
223227

224-
#: includes/admin.php:198
228+
#: includes/admin.php:201
225229
msgid "Permissions and Authentication"
226230
msgstr "权限和身份验证"
227231

228-
#: includes/admin.php:27
232+
#: includes/admin.php:30
229233
msgid "Plugin Version:"
230234
msgstr "插件版本:"
231235

@@ -239,35 +243,39 @@ msgstr "为 bbPress 论坛、话题和回复提供全面的 API 端点,并具
239243
msgid "Reply created successfully"
240244
msgstr "回复创建成功"
241245

242-
#: includes/admin.php:66 includes/admin.php:76 includes/admin.php:86
243-
#: includes/admin.php:96 includes/admin.php:106 includes/admin.php:116
244-
#: includes/admin.php:126 includes/admin.php:136 includes/admin.php:146
245-
#: includes/admin.php:156 includes/admin.php:166 includes/admin.php:176
246-
#: includes/admin.php:284
246+
#: includes/admin.php:69 includes/admin.php:79 includes/admin.php:89
247+
#: includes/admin.php:99 includes/admin.php:109 includes/admin.php:119
248+
#: includes/admin.php:129 includes/admin.php:139 includes/admin.php:149
249+
#: includes/admin.php:159 includes/admin.php:169 includes/admin.php:179
250+
#: includes/admin.php:287
247251
msgid "Show Example"
248252
msgstr "显示示例"
249253

250-
#: includes/admin.php:35 includes/admin.php:40 includes/admin.php:42
254+
#: includes/admin.php:38 includes/admin.php:43 includes/admin.php:45
251255
msgid "Status:"
252256
msgstr "状态:"
253257

254-
#: includes/admin.php:208
258+
#: includes/admin.php:14
259+
msgid "Support"
260+
msgstr "支持"
261+
262+
#: includes/admin.php:211
255263
msgid "Test API"
256264
msgstr "测试 API"
257265

258-
#: includes/admin.php:65
266+
#: includes/admin.php:68
259267
msgid "Test if the API is working"
260268
msgstr "测试 API 是否正常工作"
261269

262-
#: includes/admin.php:226
270+
#: includes/admin.php:229
263271
msgid "Test Now"
264272
msgstr "立即测试"
265273

266-
#: includes/admin.php:240
274+
#: includes/admin.php:243
267275
msgid "Test Result"
268276
msgstr "测试结果"
269277

270-
#: includes/admin.php:193
278+
#: includes/admin.php:196
271279
msgid ""
272280
"Test the API using the \"Test API\" tool above or an external tool like "
273281
"Postman."
@@ -277,7 +285,7 @@ msgstr "使用上面的“测试 API”工具或 Postman 等外部工具测试 A
277285
msgid "This forum is not public"
278286
msgstr "该论坛不公开"
279287

280-
#: includes/admin.php:16
288+
#: includes/admin.php:19
281289
msgid ""
282290
"This plugin provides REST API endpoints for bbPress forums, topics, and "
283291
"replies."
@@ -287,6 +295,11 @@ msgstr "该插件为 bbPress 论坛、话题和回复提供 REST API 端点。"
287295
msgid "Topic created successfully"
288296
msgstr "话题创建成功"
289297

298+
#: includes/admin.php:12
299+
#, php-format
300+
msgid "Version: %s"
301+
msgstr "版本: %s"
302+
290303
#. Author of the plugin
291304
msgid "WPTopic.com"
292-
msgstr "WPTopic.com"
305+
msgstr "文派话题"

0 commit comments

Comments
 (0)