Skip to content

Commit 83c32fd

Browse files
committed
feat:add easy location support
1 parent a3ce1f8 commit 83c32fd

15 files changed

Lines changed: 121 additions & 27 deletions

File tree

build/css/app.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/js/app.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

inc/base.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,11 @@ function enqueue_scripts()
337337
'is_archive' => is_archive(),
338338
'archive_id' => get_queried_object_id(),
339339
'hide_home_cover' => !!$pumaSetting->get_setting('hide_home_cover'),
340+
'comment_submit_success_text' => __('Comment submitted successfully!', 'Puma'),
341+
'copy_success_text' => __('Copy success.', 'Puma'),
342+
'loading_text' => __('Loading...', 'Puma'),
343+
'now_text' => __('Just now', 'Puma'),
344+
'like_success_message' => __('You liked this post!', 'Puma'),
340345
]
341346
);
342347
if ($pumaSetting->get_setting('javascript')) {

inc/comment.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ function puma_comment($comment, $args, $depth)
276276
</div>
277277
<footer class="pComment--footer">
278278
<span class="pComment--time" itemprop="datePublished" datetime="<?php echo get_comment_date('c'); ?>"><?php echo human_time_diff(get_comment_time('U'), current_time('U')) . __(' ago', 'Puma'); ?></span>
279+
<?php do_action('easy_location'); ?>
279280
</footer>
280281
</div>
281282
<?php

languages/ja.mo

415 Bytes
Binary file not shown.

languages/ja.po

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ msgstr ""
55
"Project-Id-Version: Puma 6.0.0\n"
66
"Report-Msgid-Bugs-To: https://wordpress.org/support/theme/Puma\n"
77
"POT-Creation-Date: 2025-08-24T12:04:08+00:00\n"
8-
"PO-Revision-Date: 2025-08-24 20:15+0800\n"
8+
"PO-Revision-Date: 2025-08-24 21:01+0800\n"
99
"Last-Translator: \n"
1010
"Language-Team: \n"
1111
"Language: ja\n"
@@ -36,14 +36,14 @@ msgid "bigfa"
3636
msgstr ""
3737

3838
msgid "Can not find any content"
39-
msgstr ""
39+
msgstr "コンテンツが見つかりません"
4040

4141
#: functions.php:132
4242
msgid "Enter to search.."
43-
msgstr "アップロード"
43+
msgstr "検索するには入力してください.."
4444

4545
msgid "Upload"
46-
msgstr ""
46+
msgstr "アップロード"
4747

4848
#: inc/base.php:116
4949
msgid "Category cover url."
@@ -57,7 +57,7 @@ msgid "Table of content"
5757
msgstr "ホームページ下部"
5858

5959
msgid "published on"
60-
msgstr ""
60+
msgstr "投稿日"
6161

6262
#: inc/base.php:232 inc/base.php:234
6363
msgid "Homepage Top"
@@ -66,33 +66,37 @@ msgstr "カテゴリ画像を設定"
6666
msgid "Setting saved success!"
6767
msgstr ""
6868

69+
#: inc/comment.php:272
70+
msgid "Reply"
71+
msgstr "返信"
72+
6973
#: inc/base.php:296 inc/setting.php:48
7074
msgid "Upload Image"
71-
msgstr "メニューを追加"
75+
msgstr "画像をアップロード"
7276

7377
msgid "Author"
74-
msgstr ""
78+
msgstr "著者"
7579

7680
msgid "Prev"
77-
msgstr ""
81+
msgstr "前へ"
7882

7983
#: inc/pack.php:42
8084
msgid "Next"
8185
msgstr "テーマ設定"
8286

8387
msgid "No links"
84-
msgstr ""
88+
msgstr "リンクがありません"
8589

8690
#: inc/pack.php:228
8791
msgid "No views yet"
8892
msgstr "機能設定"
8993

9094
msgid "%d views"
91-
msgstr ""
95+
msgstr "%d 回視聴"
9296

9397
#: inc/pack.php:263
9498
msgid "1 min read"
95-
msgstr "説明"
99+
msgstr "1 分で読める"
96100

97101
msgid "Theme Setting"
98102
msgstr ""

languages/puma.pot

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ msgstr ""
99
"MIME-Version: 1.0\n"
1010
"Content-Type: text/plain; charset=UTF-8\n"
1111
"Content-Transfer-Encoding: 8bit\n"
12-
"POT-Creation-Date: 2025-08-24T12:04:08+00:00\n"
12+
"POT-Creation-Date: 2025-08-24T13:03:33+00:00\n"
1313
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1414
"X-Generator: WP-CLI 2.11.0\n"
1515
"X-Domain: Puma\n"
@@ -109,6 +109,26 @@ msgstr ""
109109
msgid "Set Category Image"
110110
msgstr ""
111111

112+
#: inc/base.php:340
113+
msgid "Comment submitted successfully!"
114+
msgstr ""
115+
116+
#: inc/base.php:341
117+
msgid "Copy success."
118+
msgstr ""
119+
120+
#: inc/base.php:342
121+
msgid "Loading..."
122+
msgstr ""
123+
124+
#: inc/base.php:343
125+
msgid "Just now"
126+
msgstr ""
127+
128+
#: inc/base.php:344
129+
msgid "You liked this post!"
130+
msgstr ""
131+
112132
#: inc/comment.php:85
113133
msgid "Author"
114134
msgstr ""
@@ -122,6 +142,17 @@ msgstr ""
122142
msgid "Success"
123143
msgstr ""
124144

145+
#: inc/comment.php:272
146+
msgid "Reply"
147+
msgstr ""
148+
149+
#: inc/comment.php:278
150+
#: single.php:10
151+
#: template-parts/content-status.php:5
152+
#: template-parts/content.php:7
153+
msgid " ago"
154+
msgstr ""
155+
125156
#: inc/pack.php:38
126157
msgid "Prev"
127158
msgstr ""
@@ -505,12 +536,6 @@ msgstr ""
505536
msgid "Search Results for: %s"
506537
msgstr ""
507538

508-
#: single.php:10
509-
#: template-parts/content-status.php:5
510-
#: template-parts/content.php:7
511-
msgid " ago"
512-
msgstr ""
513-
514539
#: template-parts/content.php:18
515540
#: template-parts/content.php:25
516541
#: template-parts/content.php:28

languages/zh_CN.mo

45 Bytes
Binary file not shown.

languages/zh_CN.po

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ msgstr ""
55
"Project-Id-Version: Puma 6.0.0\n"
66
"Report-Msgid-Bugs-To: https://wordpress.org/support/theme/Puma\n"
77
"POT-Creation-Date: 2025-08-24T12:04:08+00:00\n"
8-
"PO-Revision-Date: 2025-08-24 20:09+0800\n"
8+
"PO-Revision-Date: 2025-08-24 21:01+0800\n"
99
"Last-Translator: \n"
1010
"Language-Team: \n"
1111
"Language: zh_CN\n"
@@ -104,6 +104,26 @@ msgstr "上传图片"
104104
msgid "Set Category Image"
105105
msgstr "设置分类图片"
106106

107+
#: inc/base.php:340
108+
msgid "Comment submitted successfully!"
109+
msgstr "评论提交成功!"
110+
111+
#: inc/base.php:341
112+
msgid "Copy success."
113+
msgstr "复制成功。"
114+
115+
#: inc/base.php:342
116+
msgid "Loading..."
117+
msgstr "加载中..."
118+
119+
#: inc/base.php:343
120+
msgid "Just now"
121+
msgstr "刚刚"
122+
123+
#: inc/base.php:344
124+
msgid "You liked this post!"
125+
msgstr "您喜欢这篇文章!"
126+
107127
#: inc/comment.php:85
108128
msgid "Author"
109129
msgstr "作者"
@@ -113,6 +133,10 @@ msgstr "作者"
113133
msgid "Success"
114134
msgstr "成功"
115135

136+
#: inc/comment.php:272
137+
msgid "Reply"
138+
msgstr "回复"
139+
116140
#: inc/pack.php:38
117141
msgid "Prev"
118142
msgstr "上一个"

scss/app.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
@use 'modules/basic';
44
@use 'modules/header';
55
@use 'modules/block';
6+
@use 'modules/status';
67
@use 'modules/grap';
78
@use 'modules/comment';
89
@use 'modules/nav';

0 commit comments

Comments
 (0)