mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-20 09:30:49 +08:00
sync translations
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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']);
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'index' => [
|
||||
'page_title' => 'Comments',
|
||||
],
|
||||
];
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'admin' => [
|
||||
'list' => [
|
||||
'page_title' => 'Exam users'
|
||||
]
|
||||
]
|
||||
];
|
||||
@@ -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',
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'index' => [
|
||||
'page_title' => '評論列表',
|
||||
],
|
||||
];
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'admin' => [
|
||||
'list' => [
|
||||
'page_title' => '考核用戶列表'
|
||||
]
|
||||
]
|
||||
];
|
||||
Reference in New Issue
Block a user