diff --git a/app/Models/Torrent.php b/app/Models/Torrent.php index 8b0788f9..7fbdbb8f 100644 --- a/app/Models/Torrent.php +++ b/app/Models/Torrent.php @@ -28,7 +28,7 @@ class Torrent extends NexusModel ]; const POS_STATE_STICKY_NONE = 'normal'; - const POS_STATE_STICKY_ONE = 'sticky'; + const POS_STATE_STICKY_FIRST = 'sticky'; /** * alphabet 'r' is after 'n' and before 's', so it will fit: order by pos_state desc, * first sticky, then r_sticky, then normal @@ -37,8 +37,8 @@ class Torrent extends NexusModel public static $posStates = [ self::POS_STATE_STICKY_NONE => ['text' => 'Normal', 'icon_counts' => 0], - self::POS_STATE_STICKY_SECOND => ['text' => 'Sticky second level', 'icon_counts' => 1], - self::POS_STATE_STICKY_ONE => ['text' => 'Sticky top level', 'icon_counts' => 2], + self::POS_STATE_STICKY_SECOND => ['text' => 'Sticky second', 'icon_counts' => 1], + self::POS_STATE_STICKY_FIRST => ['text' => 'Sticky first', 'icon_counts' => 2], ]; public static function getBasicInfo(): array diff --git a/include/functions.php b/include/functions.php index c2314484..fcd9f391 100644 --- a/include/functions.php +++ b/include/functions.php @@ -3926,7 +3926,7 @@ function get_torrent_bg_color($promotion = 1, $posState = "") } if (is_null($sphighlight)) { $torrentSettings = get_setting('torrent'); - if ($posState == \App\Models\Torrent::POS_STATE_STICKY_ONE && !empty($torrentSettings['sticky_first_level_background_color'])) { + if ($posState == \App\Models\Torrent::POS_STATE_STICKY_FIRST && !empty($torrentSettings['sticky_first_level_background_color'])) { $sphighlight = sprintf(' style="background-color: %s"', $torrentSettings['sticky_first_level_background_color']); } elseif ($posState == \App\Models\Torrent::POS_STATE_STICKY_SECOND && !empty($torrentSettings['sticky_second_level_background_color'])) { $sphighlight = sprintf(' style="background-color: %s"', $torrentSettings['sticky_second_level_background_color']); diff --git a/resources/lang/en/comment.php b/resources/lang/en/comment.php new file mode 100644 index 00000000..c2aedb45 --- /dev/null +++ b/resources/lang/en/comment.php @@ -0,0 +1,7 @@ + [ + 'page_title' => 'Comments', + ], +]; diff --git a/resources/lang/en/exam-user.php b/resources/lang/en/exam-user.php new file mode 100644 index 00000000..ff9c9482 --- /dev/null +++ b/resources/lang/en/exam-user.php @@ -0,0 +1,9 @@ + [ + 'list' => [ + 'page_title' => 'Exam users' + ] + ] +]; diff --git a/resources/lang/en/torrent.php b/resources/lang/en/torrent.php index 479f7b15..b3ff11f7 100644 --- a/resources/lang/en/torrent.php +++ b/resources/lang/en/torrent.php @@ -2,8 +2,8 @@ return [ 'pos_state_normal' => 'Normal', - 'pos_state_sticky' => 'Sticky top level', - 'pos_state_r_sticky' => 'Sticky second level', + 'pos_state_sticky' => 'Sticky first', + 'pos_state_r_sticky' => 'Sticky second', 'index' => [ 'page_title' => 'Torrent list', diff --git a/resources/lang/zh_TW/comment.php b/resources/lang/zh_TW/comment.php new file mode 100644 index 00000000..eec8e414 --- /dev/null +++ b/resources/lang/zh_TW/comment.php @@ -0,0 +1,7 @@ + [ + 'page_title' => '評論列表', + ], +]; diff --git a/resources/lang/zh_TW/exam-user.php b/resources/lang/zh_TW/exam-user.php new file mode 100644 index 00000000..5982cba6 --- /dev/null +++ b/resources/lang/zh_TW/exam-user.php @@ -0,0 +1,9 @@ + [ + 'list' => [ + 'page_title' => '考核用戶列表' + ] + ] +];