sync translations

This commit is contained in:
xiaomlove
2021-06-05 16:02:01 +08:00
parent 2ce9f5105f
commit b8e82e4bae
7 changed files with 38 additions and 6 deletions
+3 -3
View File
@@ -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
+1 -1
View File
@@ -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']);
+7
View File
@@ -0,0 +1,7 @@
<?php
return [
'index' => [
'page_title' => 'Comments',
],
];
+9
View File
@@ -0,0 +1,9 @@
<?php
return [
'admin' => [
'list' => [
'page_title' => 'Exam users'
]
]
];
+2 -2
View File
@@ -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',
+7
View File
@@ -0,0 +1,7 @@
<?php
return [
'index' => [
'page_title' => '評論列表',
],
];
+9
View File
@@ -0,0 +1,9 @@
<?php
return [
'admin' => [
'list' => [
'page_title' => '考核用戶列表'
]
]
];