Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Licoy committed Jun 26, 2024
2 parents 3f962ae + caf1c75 commit 250e27c
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 8 deletions.
13 changes: 6 additions & 7 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,24 +189,23 @@ function pk_get_post_date()
$c_time = time() - $time;
$day = 86400;
switch ($c_time) {
//todo 本地化翻译
case $c_time < $day:
$res = '近一天内';
$res = __('近一天内',PUOCK);
break;
case $c_time < ($day * 2):
$res = '近两天内';
$res = __('近两天内',PUOCK);
break;
case $c_time < ($day * 3):
$res = '近三天内';
$res = __('近三天内',PUOCK);
break;
case $c_time < ($day * 4):
$res = '四天前';
$res = __('四天前',PUOCK);
break;
case $c_time < ($day * 5):
$res = '五天前';
$res = __('五天前',PUOCK);
break;
case $c_time < ($day * 6):
$res = '六天前';
$res = __('六天前',PUOCK);
break;
default:
$res = date('Y-m-d', $time);
Expand Down
Binary file modified languages/en_US.mo
Binary file not shown.
20 changes: 19 additions & 1 deletion languages/en_US.po
Original file line number Diff line number Diff line change
Expand Up @@ -1424,4 +1424,22 @@ msgid "评论数"
msgstr "Comments"

msgid "个评论"
msgstr " Comments"
msgstr " Comments"

msgid "近一天内"
msgstr "In the last day"

msgid "近两天内"
msgstr "In the last two days"

msgid "近三天内"
msgstr "In the last three days"

msgid "四天前"
msgstr "4 days ago"

msgid "五天前"
msgstr "5 days ago"

msgid "六天前"
msgstr "6 days ago"

0 comments on commit 250e27c

Please sign in to comment.