diff --git a/inc/api.php b/inc/api.php index cffb9c5b..8de1bdbc 100644 --- a/inc/api.php +++ b/inc/api.php @@ -2,8 +2,8 @@ /** * @Author: fuukei * @Date: 2022-03-13 18:16:15 - * @Last Modified by: bymoye - * @Last Modified time: 2022-03-27 00:47:46 + * @Last Modified by: cocdeshijie + * @Last Modified time: 2022-04-16 13:27:30 */ @@ -16,7 +16,8 @@ include_once('classes/Images.php'); include_once('classes/QQ.php'); include_once('classes/Captcha.php'); -include_once ('classes/MyAnimeList.php'); +include_once('classes/MyAnimeList.php'); +include_once('classes/BilibiliFavList.php'); use Sakura\API\Images; use Sakura\API\QQ; use Sakura\API\Cache; @@ -57,6 +58,10 @@ 'methods' => 'POST', 'callback' => 'bgm_bilibili', )); + register_rest_route('sakura/v1', '/favlist/bilibili', array( + 'methods' => 'POST', + 'callback' => 'favlist_bilibili', + )); register_rest_route('sakura/v1', '/meting/aplayer', array( 'methods' => 'GET', 'callback' => 'meting_aplayer', @@ -275,9 +280,31 @@ function bgm_bilibili() { $html = preg_replace("/\s+|\n+|\r/", ' ', $bgm->get_bgm_items($page)); $response = new WP_REST_Response($html, 200); } + $page = $_GET["page"] ?: 2; + $bgm = new \Sakura\API\Bilibili(); + $html = preg_replace("/\s+|\n+|\r/", ' ', $bgm->get_bgm_items($page)); + $response = new WP_REST_Response($html, 200); return $response; } +function favlist_bilibili() { + if (!check_ajax_referer('wp_rest', '_wpnonce', false)) { + $output = array( + 'status' => 403, + 'success' => false, + 'message' => 'Unauthorized client.' + ); + $response = new WP_REST_Response($output, 403); + } else { + $page = $_GET["page"] ?: 2; + $folder_id = $_GET["folder_id"]; + $bgm = new \Sakura\API\BilibiliFavList(); + $html = preg_replace("/\s+|\n+|\r/", ' ', $bgm->load_folder_items($folder_id, $page)); + $response = new WP_REST_Response($html, 200); + } + return $response; +} + function meting_aplayer() { $type = $_GET['type']; $id = $_GET['id']; diff --git a/inc/classes/BilibiliFavList.php b/inc/classes/BilibiliFavList.php new file mode 100644 index 00000000..fecb36b9 --- /dev/null +++ b/inc/classes/BilibiliFavList.php @@ -0,0 +1,114 @@ +uid = iro_opt('bilibili_id'); + } + + function fetch_folder_api() + { + $uid = $this->uid; + $url = "https://api.bilibili.com/x/v3/fav/folder/created/list-all?up_mid=$uid&jsonp=jsonp"; + $args = array( + 'headers' => array( + 'Host' => 'api.bilibili.com', + 'User-Agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97' + ) + ); + $response = wp_remote_get($url, $args); + if(is_array($response)){ + return json_decode($response["body"], true); + }else{ + return false; + } + } + + function fetch_folder_item_api(int $folder_id, int $page) + { + $url = "https://api.bilibili.com/x/v3/fav/resource/list?media_id=$folder_id&pn=$page&ps=9&platform=web&jsonp=jsonp"; + $args = array( + 'headers' => array( + 'Host' => 'api.bilibili.com', + 'User-Agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97' + ) + ); + $response = wp_remote_get($url, $args); + if(is_array($response)){ + return json_decode($response["body"], true); + }else{ + return false; + } + } + + public function get_folders() + { + $resp = $this->fetch_folder_api(); + if ($resp === false) + { + return "
" . __('Backend error', 'sakurairo') . "
"; + } + $folders_data = $resp['data']; + $folders = $folders_data['list']; + $html = ''; + foreach ((array)$folders as $folder){ + $html .= BilibiliFavList::folder_display($folder['id']); + } + return $html; + } + + public function folder_display(int $folder_id) + { + $folder_resp = $this->fetch_folder_item_api($folder_id, 1); + $folder_content_info = $folder_resp['data']['info']; + $html = '
'. + lazyload_img(str_replace('http://', 'https://', $folder_content_info['cover']),'folder-img',array('alt'=>$folder_content_info['title'])). + '

' . $folder_content_info['title'] . '

'. + '

' . __('Item count: ', 'sakurairo') . $folder_content_info['media_count'] . '

'. + '
'. + '
'; + $load = BilibiliFavList::load_more(rest_url('sakura/v1/favlist/bilibili') . '?page=1' . '&folder_id=' . $folder_id); + return $html . $load . '

'; + } + + public function load_folder_items(int $folder_id, $page = 1) + { + $folder_resp = $this->fetch_folder_item_api($folder_id, $page); + $folder_content = $folder_resp['data']['medias']; + $html = ''; + foreach ((array)$folder_content as $item) { + $html .= BilibiliFavList::folder_item_display($item); + } + if ($folder_resp['data']['has_more']){ + $load = BilibiliFavList::load_more(rest_url('sakura/v1/favlist/bilibili') . '?page=' . ++$page . '&folder_id=' . $folder_id); + }else{ + $load = '' . __('All item has been loaded.', 'sakurairo') . ''; + } + return $html . $load; + } + + private static function folder_item_display(array $item) + { + if ($item['type'] == 24){ + $link = $item['link']; + }else{ + $link = "https://www.bilibili.com/video/" . $item['bvid']; + } + // TODO: add lazyload to item-image with typescript + return '
'. + ''. + '

' . $item['title'] . '

'. + '
' . $item['intro'] . '
'. + '
'; + } + + private static function load_more($href) + { + return '' . __('Load More', 'sakurairo') . ''; + } +} \ No newline at end of file diff --git a/inc/classes/MyAnimeList.php b/inc/classes/MyAnimeList.php index bcebccfa..029977c7 100644 --- a/inc/classes/MyAnimeList.php +++ b/inc/classes/MyAnimeList.php @@ -23,6 +23,17 @@ function get_data() { $username = $this->username; $sort = $this->sort; + switch ($sort) { + case 1: // Status and Last Updated + $sort = 'order=16&order2=5&status=7'; + break; + case 2: // Last Updated + $sort = 'order=5&status=7'; + break; + case 3: // Status + $sort = 'order=16&status=7'; + break; + } $url = "https://myanimelist.net/animelist/$username/load.json?$sort"; $args = array( 'headers' => array( diff --git a/languages/ja.po b/languages/ja.po index dba84145..b0c5562e 100644 --- a/languages/ja.po +++ b/languages/ja.po @@ -1,8 +1,8 @@ msgid "" msgstr "" "Project-Id-Version: Sakurairo\n" -"POT-Creation-Date: 2022-04-10 10:23-0700\n" -"PO-Revision-Date: 2022-04-10 10:23-0700\n" +"POT-Creation-Date: 2022-04-29 18:06-0700\n" +"PO-Revision-Date: 2022-04-29 18:06-0700\n" "Last-Translator: \n" "Language-Team: \n" "Language: ja_JP\n" @@ -34,11 +34,11 @@ msgid "Don't worry, search in site?" msgstr "心配しないで、サイト内検索はどうでしょうか?" #: 404.php:61 footer.php:57 opt/classes/admin-options.class.php:574 -#: opt/fields/icon/icon.php:57 opt/fields/map/map.php:23 search.php:42 +#: opt/fields/icon/icon.php:57 opt/fields/map/map.php:23 search.php:40 msgid "Search..." msgstr "検索…" -#: archive.php:55 author.php:76 index.php:73 +#: archive.php:58 author.php:80 index.php:74 msgid " Previous" msgstr " 前へ" @@ -144,55 +144,55 @@ msgstr "検索" msgid "Widgets" msgstr "ウィジェット" -#: functions.php:73 +#: functions.php:74 msgid "Nav Menus" msgstr "メニュー" -#: functions.php:188 functions.php:199 +#: functions.php:190 functions.php:201 msgid "Ideas" msgstr "アイデア" -#: functions.php:189 +#: functions.php:191 msgid "Idea" msgstr "アイデア" -#: functions.php:190 functions.php:191 +#: functions.php:192 functions.php:193 msgid "Publish New Idea" msgstr "新規追加" -#: functions.php:192 +#: functions.php:194 msgid "Edit Idea" msgstr "%sを編集" -#: functions.php:193 +#: functions.php:195 msgid "New Idea" msgstr "新しいアイデア" -#: functions.php:194 +#: functions.php:196 msgid "View Idea" msgstr "表示" -#: functions.php:195 +#: functions.php:197 msgid "Search Idea" msgstr "検索" -#: functions.php:196 +#: functions.php:198 msgid "Not Found Idea" msgstr "アイデアが見つかりません" -#: functions.php:197 +#: functions.php:199 msgid "No Idea in the Trash" msgstr "ゴミ箱の中には何もない" -#: functions.php:270 +#: functions.php:272 msgid "Copied!" msgstr "コピーしました!" -#: functions.php:271 +#: functions.php:273 msgid "Copy Code" msgstr "コードをコピー" -#: functions.php:272 +#: functions.php:274 msgid "" "Your cover API seems to not support Cross Origin Access. In this case, Cover " "Cache won't take effect." @@ -200,19 +200,19 @@ msgstr "" "あなたのカバー API はクロスオリジンアクセスをサポートしていないようです。この" "場合、Cover Cacheは有効になりません。" -#: functions.php:273 +#: functions.php:275 msgid "Commiting...." msgstr "提出中…." -#: functions.php:274 +#: functions.php:276 msgid "Succeed" msgstr "継ぐ" -#: functions.php:275 +#: functions.php:277 msgid "10 files max per request" msgstr "1回のリクエストで送信できるファイル数の上限は10個です" -#: functions.php:276 +#: functions.php:278 msgid "" "5 MB max per file.\n" "\n" @@ -226,15 +226,15 @@ msgstr "" "\n" "この画像が大きすぎる~再アップロードしてください!" -#: functions.php:277 +#: functions.php:279 msgid "Uploading..." msgstr "アップロード中..." -#: functions.php:278 +#: functions.php:280 msgid "Uploaded successfully~" msgstr "アップロードに成功しました~" -#: functions.php:279 +#: functions.php:281 msgid "" "Upload failed!\n" "File Name=> {0}\n" @@ -246,95 +246,95 @@ msgstr "" "コード=> {1}\n" "{2}" -#: functions.php:280 +#: functions.php:282 msgid "Upload failed, please retry." msgstr "アップロードに失敗しました、もう一度やり直してください。" -#: functions.php:281 +#: functions.php:283 msgid "Page Load failed. HTTP {0}" msgstr "ページの読み込みに失敗しました。HTTP {0}" -#: functions.php:282 +#: functions.php:284 msgid "Glad you come, but we've got nothing left." msgstr "あなたが来てうれしいですが、私たちは何も残っていません。" -#: functions.php:283 +#: functions.php:285 #, fuzzy #| msgid "Next Post" msgid "Post" msgstr "次の投稿" -#: functions.php:284 +#: functions.php:286 msgid "Tag" msgstr "" -#: functions.php:285 +#: functions.php:287 msgid "Category" msgstr "" -#: functions.php:286 +#: functions.php:288 #, fuzzy #| msgid "Pages:" msgid "Page" msgstr "ページ:" -#: functions.php:287 +#: functions.php:289 #, fuzzy #| msgid "Comments" msgid "Comment" msgstr "コメント" -#: functions.php:288 +#: functions.php:290 msgid "Paused..." msgstr "" -#: functions.php:289 +#: functions.php:291 #, fuzzy #| msgid "Uploading..." msgid "Loading Video..." msgstr "アップロード中..." -#: functions.php:290 +#: functions.php:292 msgid "Downloading fonts, be aware of your data usage." msgstr "" -#: functions.php:291 +#: functions.php:293 msgid "Are you sure you want set it private?" msgstr "" -#: functions.php:292 +#: functions.php:294 msgid "You had set private comment before" msgstr "" -#: functions.php:380 inc/theme_plus.php:194 layouts/authorprofile.php:12 +#: functions.php:382 inc/theme_plus.php:194 layouts/authorprofile.php:12 msgid "Author" msgstr "投稿者" -#: functions.php:380 +#: functions.php:382 msgid "Blogger" msgstr "Blogger" -#: functions.php:386 +#: functions.php:388 msgid "Location" msgstr "場所" -#: functions.php:392 +#: functions.php:394 msgid "Private" msgstr "プライベート" -#: functions.php:394 +#: functions.php:396 msgid "Yes" msgstr "はい" -#: functions.php:396 +#: functions.php:398 msgid "No" msgstr "いいえ" -#: functions.php:399 +#: functions.php:401 msgid "Edit" msgstr "編集" -#: functions.php:471 +#: functions.php:473 msgid "" "Please install pulgin WP-Statistics" @@ -342,50 +342,50 @@ msgstr "" "パルギンWP-統計をインストールしてください" -#: functions.php:501 +#: functions.php:503 msgid "This guy is so lazy ╮(╯▽╰)╭" msgstr "こやつはとても怠惰な╮(╯▽╰)╭" -#: functions.php:701 +#: functions.php:703 msgid "Download Link" msgstr "ダウンロードリンク" -#: functions.php:771 +#: functions.php:773 #, fuzzy #| msgid "Remember_Me" msgid "Remember me" msgstr "Remember_Me" -#: functions.php:1170 +#: functions.php:1172 msgid "All expand/collapse" msgstr "すべての展開/折りたたみ" -#: functions.php:1191 +#: functions.php:1193 msgid " " msgstr " " -#: functions.php:1195 +#: functions.php:1197 msgid " post(s)" msgstr "記事" -#: functions.php:1218 functions.php:1221 inc/theme_plus.php:424 +#: functions.php:1220 functions.php:1223 inc/theme_plus.php:424 #: opt/options/theme-options.php:3043 msgid "Dashboard" msgstr "ダッシュボード" -#: functions.php:1458 +#: functions.php:1460 msgid "ERROR: This email domain (@" msgstr "エラー: このメールドメイン (@" -#: functions.php:1583 opt/options/theme-options.php:1835 +#: functions.php:1585 opt/options/theme-options.php:1835 msgid "QQ" msgstr "QQ" -#: functions.php:1649 +#: functions.php:1651 msgid "Sidebar" msgstr "サイドバー" -#: functions.php:1779 +#: functions.php:1781 msgid "" " For a better experience, please do not set permalink as plain. To do this, you may need to " @@ -419,15 +419,16 @@ msgstr "画像" msgid "no image" msgstr "画像なし" -#: inc/classes/Bilibili.php:48 inc/classes/MyAnimeList.php:46 +#: inc/classes/Bilibili.php:48 inc/classes/BilibiliFavList.php:54 +#: inc/classes/MyAnimeList.php:57 msgid "Backend error" msgstr "" -#: inc/classes/Bilibili.php:53 inc/classes/MyAnimeList.php:58 +#: inc/classes/Bilibili.php:53 inc/classes/MyAnimeList.php:69 msgid "Following " msgstr "" -#: inc/classes/Bilibili.php:53 inc/classes/MyAnimeList.php:58 +#: inc/classes/Bilibili.php:53 inc/classes/MyAnimeList.php:69 msgid " anime." msgstr "" @@ -435,6 +436,22 @@ msgstr "" msgid "The author seems to have hidden their bangumi list." msgstr "" +#: inc/classes/BilibiliFavList.php:72 +msgid "Item count: " +msgstr "" + +#: inc/classes/BilibiliFavList.php:73 opt/options/theme-options.php:2796 +msgid "Expand" +msgstr "" + +#: inc/classes/BilibiliFavList.php:90 +msgid "All item has been loaded." +msgstr "" + +#: inc/classes/BilibiliFavList.php:112 +msgid "Load More" +msgstr "" + #: inc/classes/Cache.php:70 inc/theme_plus.php:668 msgid "The comment is private" msgstr "このコメントは非公開です" @@ -463,31 +480,31 @@ msgstr "" msgid "An error has occurred." msgstr "" -#: inc/classes/MyAnimeList.php:59 +#: inc/classes/MyAnimeList.php:70 msgid " Watched " msgstr "" -#: inc/classes/MyAnimeList.php:59 +#: inc/classes/MyAnimeList.php:70 msgid " episodes." msgstr "" -#: inc/classes/MyAnimeList.php:97 +#: inc/classes/MyAnimeList.php:108 msgid "Finished " msgstr "" -#: inc/classes/MyAnimeList.php:106 +#: inc/classes/MyAnimeList.php:117 msgid "Watching " msgstr "" -#: inc/classes/MyAnimeList.php:113 +#: inc/classes/MyAnimeList.php:124 msgid "Planning to Watch " msgstr "" -#: inc/classes/MyAnimeList.php:122 +#: inc/classes/MyAnimeList.php:133 msgid "Dropped " msgstr "" -#: inc/classes/MyAnimeList.php:131 +#: inc/classes/MyAnimeList.php:142 msgid "Paused " msgstr "" @@ -2915,7 +2932,7 @@ msgid "" "uin=123456" msgstr "" -#: opt/options/theme-options.php:1843 opt/options/theme-options.php:2716 +#: opt/options/theme-options.php:1843 msgid "Bilibili" msgstr "" @@ -3510,55 +3527,55 @@ msgstr "" msgid "Ideas Template Font" msgstr "" -#: opt/options/theme-options.php:2714 +#: opt/options/theme-options.php:2715 msgid "Bangumi Template Source" msgstr "" -#: opt/options/theme-options.php:2717 -msgid "My Anime List (Not recommended for China mainland)" -msgstr "" +#: opt/options/theme-options.php:2726 +#, fuzzy +#| msgid "User Name" +msgid "My Anime List Username" +msgstr "ユーザー名" -#: opt/options/theme-options.php:2725 -msgid "Bilibili Bangumi Catch-up Template Account ID" +#: opt/options/theme-options.php:2728 +msgid "Username on https://myanimelist.net/" msgstr "" -#: opt/options/theme-options.php:2727 -msgid "" -"Fill in your account ID, e.g. https://space.bilibili.com/13972644/, just the " -"number part \"13972644\"" +#: opt/options/theme-options.php:2735 +msgid "My Anime List Sort" msgstr "" -#: opt/options/theme-options.php:2734 -msgid "Bilibili Bangumi Catch-up Template Account Cookies" +#: opt/options/theme-options.php:2738 +msgid "Status and Last Updated" msgstr "" -#: opt/options/theme-options.php:2736 -msgid "" -"Fill in your account cookies, F12 to open your browser web panel, go to your " -"bilibili homepage to get cookies. If left empty, it will not show the " -"progress of catching up bangumis" +#: opt/options/theme-options.php:2739 +msgid "Last Updated" msgstr "" -#: opt/options/theme-options.php:2743 -#, fuzzy -#| msgid "User Name" -msgid "My Anime List Username" -msgstr "ユーザー名" - -#: opt/options/theme-options.php:2745 -msgid "Username on https://myanimelist.net/" +#: opt/options/theme-options.php:2740 +msgid "Status" msgstr "" -#: opt/options/theme-options.php:2752 -msgid "My Anime List Sort" +#: opt/options/theme-options.php:2748 +msgid "Bilibili Account UID" msgstr "" -#: opt/options/theme-options.php:2755 -msgid "Last Updated" +#: opt/options/theme-options.php:2749 +msgid "" +"Fill in your account ID, e.g. https://space.bilibili.com/13972644/, just the " +"number part \"13972644\"" msgstr "" #: opt/options/theme-options.php:2756 -msgid "Status" +msgid "Bilibili Account Cookies" +msgstr "" + +#: opt/options/theme-options.php:2757 +msgid "" +"Fill in your account cookies, F12 to open your browser web panel, go to your " +"bilibili homepage to get cookies. If left empty, it will not show the " +"progress of catching up bangumis" msgstr "" #: opt/options/theme-options.php:2764 @@ -3587,10 +3604,6 @@ msgstr "" msgid "You can choose to expand or shirink the content of the comment area" msgstr "" -#: opt/options/theme-options.php:2796 -msgid "Expand" -msgstr "" - #: opt/options/theme-options.php:2797 msgid "Shrink" msgstr "" @@ -4381,7 +4394,7 @@ msgid "" "\" style=\"border-radius: 3px;\" />" msgstr "" -#: search.php:19 +#: search.php:20 #, php-format msgid "search result: %s" msgstr "検索結果: %s" @@ -4480,7 +4493,8 @@ msgstr "" msgid "There is no changelog available." msgstr "" -#: user/page-bangumi.php:31 user/page-followVideos.php:29 +#: user/page-bangumi.php:31 user/page-bilibiliFavList.php:32 +#: user/page-followVideos.php:29 msgid "Please fill in the Bilibili UID in Sakura Options." msgstr "さくらオプションでビリビリのUIDを記入してください。" diff --git a/languages/sakurairo.pot b/languages/sakurairo.pot index 46e2c00f..59f486ce 100644 --- a/languages/sakurairo.pot +++ b/languages/sakurairo.pot @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: Sakurairo\n" -"POT-Creation-Date: 2022-04-10 10:21-0700\n" +"POT-Creation-Date: 2022-04-29 18:06-0700\n" "PO-Revision-Date: 2021-06-26 15:15+0800\n" "Last-Translator: \n" "Language-Team: \n" @@ -34,11 +34,11 @@ msgid "Don't worry, search in site?" msgstr "" #: 404.php:61 footer.php:57 opt/classes/admin-options.class.php:574 -#: opt/fields/icon/icon.php:57 opt/fields/map/map.php:23 search.php:42 +#: opt/fields/icon/icon.php:57 opt/fields/map/map.php:23 search.php:40 msgid "Search..." msgstr "" -#: archive.php:55 author.php:76 index.php:73 +#: archive.php:58 author.php:80 index.php:74 msgid " Previous" msgstr "" @@ -142,73 +142,73 @@ msgstr "" msgid "Widgets" msgstr "" -#: functions.php:73 +#: functions.php:74 msgid "Nav Menus" msgstr "" -#: functions.php:188 functions.php:199 +#: functions.php:190 functions.php:201 msgid "Ideas" msgstr "" -#: functions.php:189 +#: functions.php:191 msgid "Idea" msgstr "" -#: functions.php:190 functions.php:191 +#: functions.php:192 functions.php:193 msgid "Publish New Idea" msgstr "" -#: functions.php:192 +#: functions.php:194 msgid "Edit Idea" msgstr "" -#: functions.php:193 +#: functions.php:195 msgid "New Idea" msgstr "" -#: functions.php:194 +#: functions.php:196 msgid "View Idea" msgstr "" -#: functions.php:195 +#: functions.php:197 msgid "Search Idea" msgstr "" -#: functions.php:196 +#: functions.php:198 msgid "Not Found Idea" msgstr "" -#: functions.php:197 +#: functions.php:199 msgid "No Idea in the Trash" msgstr "" -#: functions.php:270 +#: functions.php:272 msgid "Copied!" msgstr "" -#: functions.php:271 +#: functions.php:273 msgid "Copy Code" msgstr "" -#: functions.php:272 +#: functions.php:274 msgid "" "Your cover API seems to not support Cross Origin Access. In this case, " "Cover Cache won't take effect." msgstr "" -#: functions.php:273 +#: functions.php:275 msgid "Commiting...." msgstr "" -#: functions.php:274 +#: functions.php:276 msgid "Succeed" msgstr "" -#: functions.php:275 +#: functions.php:277 msgid "10 files max per request" msgstr "" -#: functions.php:276 +#: functions.php:278 msgid "" "5 MB max per file.\n" "\n" @@ -217,15 +217,15 @@ msgid "" "This image is too large~Please reupload!" msgstr "" -#: functions.php:277 +#: functions.php:279 msgid "Uploading..." msgstr "" -#: functions.php:278 +#: functions.php:280 msgid "Uploaded successfully~" msgstr "" -#: functions.php:279 +#: functions.php:281 msgid "" "Upload failed!\n" "File Name=> {0}\n" @@ -233,134 +233,134 @@ msgid "" "{2}" msgstr "" -#: functions.php:280 +#: functions.php:282 msgid "Upload failed, please retry." msgstr "" -#: functions.php:281 +#: functions.php:283 msgid "Page Load failed. HTTP {0}" msgstr "" -#: functions.php:282 +#: functions.php:284 msgid "Glad you come, but we've got nothing left." msgstr "" -#: functions.php:283 +#: functions.php:285 msgid "Post" msgstr "" -#: functions.php:284 +#: functions.php:286 msgid "Tag" msgstr "" -#: functions.php:285 +#: functions.php:287 msgid "Category" msgstr "" -#: functions.php:286 +#: functions.php:288 msgid "Page" msgstr "" -#: functions.php:287 +#: functions.php:289 msgid "Comment" msgstr "" -#: functions.php:288 +#: functions.php:290 msgid "Paused..." msgstr "" -#: functions.php:289 +#: functions.php:291 msgid "Loading Video..." msgstr "" -#: functions.php:290 +#: functions.php:292 msgid "Downloading fonts, be aware of your data usage." msgstr "" -#: functions.php:291 +#: functions.php:293 msgid "Are you sure you want set it private?" msgstr "" -#: functions.php:292 +#: functions.php:294 msgid "You had set private comment before" msgstr "" -#: functions.php:380 inc/theme_plus.php:194 layouts/authorprofile.php:12 +#: functions.php:382 inc/theme_plus.php:194 layouts/authorprofile.php:12 msgid "Author" msgstr "" -#: functions.php:380 +#: functions.php:382 msgid "Blogger" msgstr "" -#: functions.php:386 +#: functions.php:388 msgid "Location" msgstr "" -#: functions.php:392 +#: functions.php:394 msgid "Private" msgstr "" -#: functions.php:394 +#: functions.php:396 msgid "Yes" msgstr "" -#: functions.php:396 +#: functions.php:398 msgid "No" msgstr "" -#: functions.php:399 +#: functions.php:401 msgid "Edit" msgstr "" -#: functions.php:471 +#: functions.php:473 msgid "" "Please install pulgin WP-Statistics" msgstr "" -#: functions.php:501 +#: functions.php:503 msgid "This guy is so lazy ╮(╯▽╰)╭" msgstr "" -#: functions.php:701 +#: functions.php:703 msgid "Download Link" msgstr "" -#: functions.php:771 +#: functions.php:773 msgid "Remember me" msgstr "" -#: functions.php:1170 +#: functions.php:1172 msgid "All expand/collapse" msgstr "" -#: functions.php:1191 +#: functions.php:1193 msgid " " msgstr "" -#: functions.php:1195 +#: functions.php:1197 msgid " post(s)" msgstr "" -#: functions.php:1218 functions.php:1221 inc/theme_plus.php:424 +#: functions.php:1220 functions.php:1223 inc/theme_plus.php:424 #: opt/options/theme-options.php:3043 msgid "Dashboard" msgstr "" -#: functions.php:1458 +#: functions.php:1460 msgid "ERROR: This email domain (@" msgstr "" -#: functions.php:1583 opt/options/theme-options.php:1835 +#: functions.php:1585 opt/options/theme-options.php:1835 msgid "QQ" msgstr "" -#: functions.php:1649 +#: functions.php:1651 msgid "Sidebar" msgstr "" -#: functions.php:1779 +#: functions.php:1781 msgid "" " For a better experience, please do not set permalink as plain. To do this, you may need to " @@ -390,15 +390,16 @@ msgstr "" msgid "no image" msgstr "" -#: inc/classes/Bilibili.php:48 inc/classes/MyAnimeList.php:46 +#: inc/classes/Bilibili.php:48 inc/classes/BilibiliFavList.php:54 +#: inc/classes/MyAnimeList.php:57 msgid "Backend error" msgstr "" -#: inc/classes/Bilibili.php:53 inc/classes/MyAnimeList.php:58 +#: inc/classes/Bilibili.php:53 inc/classes/MyAnimeList.php:69 msgid "Following " msgstr "" -#: inc/classes/Bilibili.php:53 inc/classes/MyAnimeList.php:58 +#: inc/classes/Bilibili.php:53 inc/classes/MyAnimeList.php:69 msgid " anime." msgstr "" @@ -406,6 +407,22 @@ msgstr "" msgid "The author seems to have hidden their bangumi list." msgstr "" +#: inc/classes/BilibiliFavList.php:72 +msgid "Item count: " +msgstr "" + +#: inc/classes/BilibiliFavList.php:73 opt/options/theme-options.php:2796 +msgid "Expand" +msgstr "" + +#: inc/classes/BilibiliFavList.php:90 +msgid "All item has been loaded." +msgstr "" + +#: inc/classes/BilibiliFavList.php:112 +msgid "Load More" +msgstr "" + #: inc/classes/Cache.php:70 inc/theme_plus.php:668 msgid "The comment is private" msgstr "" @@ -434,31 +451,31 @@ msgstr "" msgid "An error has occurred." msgstr "" -#: inc/classes/MyAnimeList.php:59 +#: inc/classes/MyAnimeList.php:70 msgid " Watched " msgstr "" -#: inc/classes/MyAnimeList.php:59 +#: inc/classes/MyAnimeList.php:70 msgid " episodes." msgstr "" -#: inc/classes/MyAnimeList.php:97 +#: inc/classes/MyAnimeList.php:108 msgid "Finished " msgstr "" -#: inc/classes/MyAnimeList.php:106 +#: inc/classes/MyAnimeList.php:117 msgid "Watching " msgstr "" -#: inc/classes/MyAnimeList.php:113 +#: inc/classes/MyAnimeList.php:124 msgid "Planning to Watch " msgstr "" -#: inc/classes/MyAnimeList.php:122 +#: inc/classes/MyAnimeList.php:133 msgid "Dropped " msgstr "" -#: inc/classes/MyAnimeList.php:131 +#: inc/classes/MyAnimeList.php:142 msgid "Paused " msgstr "" @@ -2832,7 +2849,7 @@ msgid "" "uin=123456" msgstr "" -#: opt/options/theme-options.php:1843 opt/options/theme-options.php:2716 +#: opt/options/theme-options.php:1843 msgid "Bilibili" msgstr "" @@ -3425,53 +3442,53 @@ msgstr "" msgid "Ideas Template Font" msgstr "" -#: opt/options/theme-options.php:2714 +#: opt/options/theme-options.php:2715 msgid "Bangumi Template Source" msgstr "" -#: opt/options/theme-options.php:2717 -msgid "My Anime List (Not recommended for China mainland)" +#: opt/options/theme-options.php:2726 +msgid "My Anime List Username" msgstr "" -#: opt/options/theme-options.php:2725 -msgid "Bilibili Bangumi Catch-up Template Account ID" +#: opt/options/theme-options.php:2728 +msgid "Username on https://myanimelist.net/" msgstr "" -#: opt/options/theme-options.php:2727 -msgid "" -"Fill in your account ID, e.g. https://space.bilibili.com/13972644/, just " -"the number part \"13972644\"" +#: opt/options/theme-options.php:2735 +msgid "My Anime List Sort" msgstr "" -#: opt/options/theme-options.php:2734 -msgid "Bilibili Bangumi Catch-up Template Account Cookies" +#: opt/options/theme-options.php:2738 +msgid "Status and Last Updated" msgstr "" -#: opt/options/theme-options.php:2736 -msgid "" -"Fill in your account cookies, F12 to open your browser web panel, go to " -"your bilibili homepage to get cookies. If left empty, it will not show the " -"progress of catching up bangumis" +#: opt/options/theme-options.php:2739 +msgid "Last Updated" msgstr "" -#: opt/options/theme-options.php:2743 -msgid "My Anime List Username" +#: opt/options/theme-options.php:2740 +msgid "Status" msgstr "" -#: opt/options/theme-options.php:2745 -msgid "Username on https://myanimelist.net/" +#: opt/options/theme-options.php:2748 +msgid "Bilibili Account UID" msgstr "" -#: opt/options/theme-options.php:2752 -msgid "My Anime List Sort" +#: opt/options/theme-options.php:2749 +msgid "" +"Fill in your account ID, e.g. https://space.bilibili.com/13972644/, just " +"the number part \"13972644\"" msgstr "" -#: opt/options/theme-options.php:2755 -msgid "Last Updated" +#: opt/options/theme-options.php:2756 +msgid "Bilibili Account Cookies" msgstr "" -#: opt/options/theme-options.php:2756 -msgid "Status" +#: opt/options/theme-options.php:2757 +msgid "" +"Fill in your account cookies, F12 to open your browser web panel, go to " +"your bilibili homepage to get cookies. If left empty, it will not show the " +"progress of catching up bangumis" msgstr "" #: opt/options/theme-options.php:2764 @@ -3498,10 +3515,6 @@ msgstr "" msgid "You can choose to expand or shirink the content of the comment area" msgstr "" -#: opt/options/theme-options.php:2796 -msgid "Expand" -msgstr "" - #: opt/options/theme-options.php:2797 msgid "Shrink" msgstr "" @@ -4286,7 +4299,7 @@ msgid "" "CDN resource access\" style=\"border-radius: 3px;\" />" msgstr "" -#: search.php:19 +#: search.php:20 #, php-format msgid "search result: %s" msgstr "" @@ -4380,7 +4393,8 @@ msgstr "" msgid "There is no changelog available." msgstr "" -#: user/page-bangumi.php:31 user/page-followVideos.php:29 +#: user/page-bangumi.php:31 user/page-bilibiliFavList.php:32 +#: user/page-followVideos.php:29 msgid "Please fill in the Bilibili UID in Sakura Options." msgstr "" diff --git a/languages/zh_CN.po b/languages/zh_CN.po index e14927b7..76921161 100644 --- a/languages/zh_CN.po +++ b/languages/zh_CN.po @@ -1,8 +1,8 @@ msgid "" msgstr "" "Project-Id-Version: Sakurairo\n" -"POT-Creation-Date: 2022-04-10 10:23-0700\n" -"PO-Revision-Date: 2022-04-10 10:23-0700\n" +"POT-Creation-Date: 2022-04-29 18:06-0700\n" +"PO-Revision-Date: 2022-04-29 18:06-0700\n" "Last-Translator: \n" "Language-Team: \n" "Language: zh_CN\n" @@ -34,11 +34,11 @@ msgid "Don't worry, search in site?" msgstr "别着急,试试站内检索?" #: 404.php:61 footer.php:57 opt/classes/admin-options.class.php:574 -#: opt/fields/icon/icon.php:57 opt/fields/map/map.php:23 search.php:42 +#: opt/fields/icon/icon.php:57 opt/fields/map/map.php:23 search.php:40 msgid "Search..." msgstr "搜索..." -#: archive.php:55 author.php:76 index.php:73 +#: archive.php:58 author.php:80 index.php:74 msgid " Previous" msgstr " 更早的文章" @@ -144,73 +144,73 @@ msgstr "搜索" msgid "Widgets" msgstr "小工具" -#: functions.php:73 +#: functions.php:74 msgid "Nav Menus" msgstr "导航菜单" -#: functions.php:188 functions.php:199 +#: functions.php:190 functions.php:201 msgid "Ideas" msgstr "说说" -#: functions.php:189 +#: functions.php:191 msgid "Idea" msgstr "说说" -#: functions.php:190 functions.php:191 +#: functions.php:192 functions.php:193 msgid "Publish New Idea" msgstr "发布新说说" -#: functions.php:192 +#: functions.php:194 msgid "Edit Idea" msgstr "编辑说说" -#: functions.php:193 +#: functions.php:195 msgid "New Idea" msgstr "新说说" -#: functions.php:194 +#: functions.php:196 msgid "View Idea" msgstr "查看说说" -#: functions.php:195 +#: functions.php:197 msgid "Search Idea" msgstr "搜索说说" -#: functions.php:196 +#: functions.php:198 msgid "Not Found Idea" msgstr "没有找到说说" -#: functions.php:197 +#: functions.php:199 msgid "No Idea in the Trash" msgstr "没有在垃圾桶的说说" -#: functions.php:270 +#: functions.php:272 msgid "Copied!" msgstr "复制成功!" -#: functions.php:271 +#: functions.php:273 msgid "Copy Code" msgstr "拷贝代码" -#: functions.php:272 +#: functions.php:274 msgid "" "Your cover API seems to not support Cross Origin Access. In this case, Cover " "Cache won't take effect." msgstr "你的封面API好像不支持跨域调用,这种情况下缓存是不会生效的哦。" -#: functions.php:273 +#: functions.php:275 msgid "Commiting...." msgstr "提交中...." -#: functions.php:274 +#: functions.php:276 msgid "Succeed" msgstr "成功" -#: functions.php:275 +#: functions.php:277 msgid "10 files max per request" msgstr "每次上传上限为10张" -#: functions.php:276 +#: functions.php:278 msgid "" "5 MB max per file.\n" "\n" @@ -219,15 +219,15 @@ msgid "" "This image is too large~Please reupload!" msgstr "图片上传大小限制为5 MB\\n\\n「{0}」\\n\\n这张图太大啦~请重新上传噢!" -#: functions.php:277 +#: functions.php:279 msgid "Uploading..." msgstr "上传中..." -#: functions.php:278 +#: functions.php:280 msgid "Uploaded successfully~" msgstr "上传成功~" -#: functions.php:279 +#: functions.php:281 msgid "" "Upload failed!\n" "File Name=> {0}\n" @@ -235,95 +235,95 @@ msgid "" "{2}" msgstr "上传失败!\\n文件名=> {0}\\ncode=> {1}\\n{2}" -#: functions.php:280 +#: functions.php:282 msgid "Upload failed, please retry." msgstr "上传失败,请重试." -#: functions.php:281 +#: functions.php:283 msgid "Page Load failed. HTTP {0}" msgstr "页面加载出错了 HTTP {0}" -#: functions.php:282 +#: functions.php:284 msgid "Glad you come, but we've got nothing left." msgstr "很高兴你翻到这里,但是真的没有了..." -#: functions.php:283 +#: functions.php:285 #, fuzzy #| msgid "Next Post" msgid "Post" msgstr "下一篇文章" -#: functions.php:284 +#: functions.php:286 msgid "Tag" msgstr "" -#: functions.php:285 +#: functions.php:287 msgid "Category" msgstr "" -#: functions.php:286 +#: functions.php:288 #, fuzzy #| msgid "Pages:" msgid "Page" msgstr "页面:" -#: functions.php:287 +#: functions.php:289 #, fuzzy #| msgid "Comments" msgid "Comment" msgstr "条评论" -#: functions.php:288 +#: functions.php:290 msgid "Paused..." msgstr "" -#: functions.php:289 +#: functions.php:291 #, fuzzy #| msgid "Uploading..." msgid "Loading Video..." msgstr "上传中..." -#: functions.php:290 +#: functions.php:292 msgid "Downloading fonts, be aware of your data usage." msgstr "" -#: functions.php:291 +#: functions.php:293 msgid "Are you sure you want set it private?" msgstr "" -#: functions.php:292 +#: functions.php:294 msgid "You had set private comment before" msgstr "" -#: functions.php:380 inc/theme_plus.php:194 layouts/authorprofile.php:12 +#: functions.php:382 inc/theme_plus.php:194 layouts/authorprofile.php:12 msgid "Author" msgstr "作者" -#: functions.php:380 +#: functions.php:382 msgid "Blogger" msgstr "博客作者" -#: functions.php:386 +#: functions.php:388 msgid "Location" msgstr "来自" -#: functions.php:392 +#: functions.php:394 msgid "Private" msgstr "私密" -#: functions.php:394 +#: functions.php:396 msgid "Yes" msgstr "是" -#: functions.php:396 +#: functions.php:398 msgid "No" msgstr "否" -#: functions.php:399 +#: functions.php:401 msgid "Edit" msgstr "编辑" -#: functions.php:471 +#: functions.php:473 msgid "" "Please install pulgin WP-Statistics" @@ -331,50 +331,50 @@ msgstr "" "请安装插件 WP-Statistics" -#: functions.php:501 +#: functions.php:503 msgid "This guy is so lazy ╮(╯▽╰)╭" msgstr "这家伙好懒╮(╯▽╰)╭" -#: functions.php:701 +#: functions.php:703 msgid "Download Link" msgstr "下载地址" -#: functions.php:771 +#: functions.php:773 #, fuzzy #| msgid "Remember_Me" msgid "Remember me" msgstr "记住我" -#: functions.php:1170 +#: functions.php:1172 msgid "All expand/collapse" msgstr "全部展开/收缩" -#: functions.php:1191 +#: functions.php:1193 msgid " " msgstr " " -#: functions.php:1195 +#: functions.php:1197 msgid " post(s)" msgstr " 篇文章" -#: functions.php:1218 functions.php:1221 inc/theme_plus.php:424 +#: functions.php:1220 functions.php:1223 inc/theme_plus.php:424 #: opt/options/theme-options.php:3043 msgid "Dashboard" msgstr "管理后台" -#: functions.php:1458 +#: functions.php:1460 msgid "ERROR: This email domain (@" msgstr "错误: 邮箱格式出错 (@" -#: functions.php:1583 opt/options/theme-options.php:1835 +#: functions.php:1585 opt/options/theme-options.php:1835 msgid "QQ" msgstr "" -#: functions.php:1649 +#: functions.php:1651 msgid "Sidebar" msgstr "侧栏" -#: functions.php:1779 +#: functions.php:1781 msgid "" " For a better experience, please do not set permalink as plain. To do this, you may need to " @@ -407,15 +407,16 @@ msgstr "图像" msgid "no image" msgstr "暂无" -#: inc/classes/Bilibili.php:48 inc/classes/MyAnimeList.php:46 +#: inc/classes/Bilibili.php:48 inc/classes/BilibiliFavList.php:54 +#: inc/classes/MyAnimeList.php:57 msgid "Backend error" msgstr "后端发生了错误 QwQ" -#: inc/classes/Bilibili.php:53 inc/classes/MyAnimeList.php:58 +#: inc/classes/Bilibili.php:53 inc/classes/MyAnimeList.php:69 msgid "Following " msgstr "已追番" -#: inc/classes/Bilibili.php:53 inc/classes/MyAnimeList.php:58 +#: inc/classes/Bilibili.php:53 inc/classes/MyAnimeList.php:69 #, fuzzy #| msgid "anime." msgid " anime." @@ -425,6 +426,22 @@ msgstr "部。" msgid "The author seems to have hidden their bangumi list." msgstr "博主似乎隐藏了追番列表。" +#: inc/classes/BilibiliFavList.php:72 +msgid "Item count: " +msgstr "内容数量: " + +#: inc/classes/BilibiliFavList.php:73 opt/options/theme-options.php:2796 +msgid "Expand" +msgstr "展开" + +#: inc/classes/BilibiliFavList.php:90 +msgid "All item has been loaded." +msgstr "已加载所有内容。" + +#: inc/classes/BilibiliFavList.php:112 +msgid "Load More" +msgstr "加载更多" + #: inc/classes/Cache.php:70 inc/theme_plus.php:668 msgid "The comment is private" msgstr "这是一条私密评论" @@ -453,33 +470,33 @@ msgstr "" msgid "An error has occurred." msgstr "" -#: inc/classes/MyAnimeList.php:59 +#: inc/classes/MyAnimeList.php:70 #, fuzzy #| msgid "Watched " msgid " Watched " msgstr "已观看" -#: inc/classes/MyAnimeList.php:59 +#: inc/classes/MyAnimeList.php:70 msgid " episodes." msgstr "集。" -#: inc/classes/MyAnimeList.php:97 +#: inc/classes/MyAnimeList.php:108 msgid "Finished " msgstr "已看完" -#: inc/classes/MyAnimeList.php:106 +#: inc/classes/MyAnimeList.php:117 msgid "Watching " msgstr "追番中" -#: inc/classes/MyAnimeList.php:113 +#: inc/classes/MyAnimeList.php:124 msgid "Planning to Watch " msgstr "打算看" -#: inc/classes/MyAnimeList.php:122 +#: inc/classes/MyAnimeList.php:133 msgid "Dropped " msgstr "弃坑" -#: inc/classes/MyAnimeList.php:131 +#: inc/classes/MyAnimeList.php:142 msgid "Paused " msgstr "暂停" @@ -2903,7 +2920,7 @@ msgid "" "uin=123456" msgstr "" -#: opt/options/theme-options.php:1843 opt/options/theme-options.php:2716 +#: opt/options/theme-options.php:1843 msgid "Bilibili" msgstr "" @@ -3498,57 +3515,57 @@ msgstr "" msgid "Ideas Template Font" msgstr "" -#: opt/options/theme-options.php:2714 +#: opt/options/theme-options.php:2715 msgid "Bangumi Template Source" msgstr "" -#: opt/options/theme-options.php:2717 -msgid "My Anime List (Not recommended for China mainland)" -msgstr "" - -#: opt/options/theme-options.php:2725 -msgid "Bilibili Bangumi Catch-up Template Account ID" -msgstr "" - -#: opt/options/theme-options.php:2727 -msgid "" -"Fill in your account ID, e.g. https://space.bilibili.com/13972644/, just the " -"number part \"13972644\"" -msgstr "" - -#: opt/options/theme-options.php:2734 -msgid "Bilibili Bangumi Catch-up Template Account Cookies" -msgstr "" - -#: opt/options/theme-options.php:2736 -msgid "" -"Fill in your account cookies, F12 to open your browser web panel, go to your " -"bilibili homepage to get cookies. If left empty, it will not show the " -"progress of catching up bangumis" -msgstr "" - -#: opt/options/theme-options.php:2743 +#: opt/options/theme-options.php:2726 #, fuzzy #| msgid "User Name" msgid "My Anime List Username" msgstr "用户名" -#: opt/options/theme-options.php:2745 +#: opt/options/theme-options.php:2728 msgid "Username on https://myanimelist.net/" msgstr "" -#: opt/options/theme-options.php:2752 +#: opt/options/theme-options.php:2735 msgid "My Anime List Sort" msgstr "" -#: opt/options/theme-options.php:2755 +#: opt/options/theme-options.php:2738 +msgid "Status and Last Updated" +msgstr "" + +#: opt/options/theme-options.php:2739 msgid "Last Updated" msgstr "" -#: opt/options/theme-options.php:2756 +#: opt/options/theme-options.php:2740 msgid "Status" msgstr "" +#: opt/options/theme-options.php:2748 +msgid "Bilibili Account UID" +msgstr "哔哩哔哩UID" + +#: opt/options/theme-options.php:2749 +msgid "" +"Fill in your account ID, e.g. https://space.bilibili.com/13972644/, just the " +"number part \"13972644\"" +msgstr "" + +#: opt/options/theme-options.php:2756 +msgid "Bilibili Account Cookies" +msgstr "哔哩哔哩 Cookies" + +#: opt/options/theme-options.php:2757 +msgid "" +"Fill in your account cookies, F12 to open your browser web panel, go to your " +"bilibili homepage to get cookies. If left empty, it will not show the " +"progress of catching up bangumis" +msgstr "" + #: opt/options/theme-options.php:2764 msgid "Friend Link Template Unit Alignment" msgstr "" @@ -3575,10 +3592,6 @@ msgstr "" msgid "You can choose to expand or shirink the content of the comment area" msgstr "" -#: opt/options/theme-options.php:2796 -msgid "Expand" -msgstr "" - #: opt/options/theme-options.php:2797 msgid "Shrink" msgstr "" @@ -4366,7 +4379,7 @@ msgid "" "\" style=\"border-radius: 3px;\" />" msgstr "" -#: search.php:19 +#: search.php:20 #, php-format msgid "search result: %s" msgstr "搜索结果:%s" @@ -4461,7 +4474,8 @@ msgstr "" msgid "There is no changelog available." msgstr "" -#: user/page-bangumi.php:31 user/page-followVideos.php:29 +#: user/page-bangumi.php:31 user/page-bilibiliFavList.php:32 +#: user/page-followVideos.php:29 msgid "Please fill in the Bilibili UID in Sakura Options." msgstr "请在后台设置填写 Bilibili UID 后继续。" diff --git a/languages/zh_TW.po b/languages/zh_TW.po index 0adf391a..146d9c16 100644 --- a/languages/zh_TW.po +++ b/languages/zh_TW.po @@ -1,8 +1,8 @@ msgid "" msgstr "" "Project-Id-Version: Sakurairo\n" -"POT-Creation-Date: 2022-04-15 00:51+0800\n" -"PO-Revision-Date: 2022-04-15 15:25+0800\n" +"POT-Creation-Date: 2022-04-29 18:06-0700\n" +"PO-Revision-Date: 2022-04-29 18:06-0700\n" "Last-Translator: \n" "Language-Team: \n" "Language: zh_TW\n" @@ -10,7 +10,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: Poedit 2.4.2\n" +"X-Generator: Poedit 3.0.1\n" "X-Poedit-Basepath: ..\n" "X-Poedit-Flags-xgettext: --add-comments=translators:\n" "X-Poedit-WPHeader: style.css\n" @@ -121,7 +121,7 @@ msgstr "必須* " #: comments.php:100 #, fuzzy #| msgid "Advertisement is forbidden \\uD83D\\uDE00" -msgid "Advertisement is forbidden 😀" +msgid "Advertisement is forbidden \uD83D\uDE00" msgstr "禁止小廣告\\uD83D\\uDE00" #: comments.php:100 @@ -144,73 +144,73 @@ msgstr "搜尋" msgid "Widgets" msgstr "小工具" -#: functions.php:73 +#: functions.php:74 msgid "Nav Menus" msgstr "導航菜單" -#: functions.php:189 functions.php:200 +#: functions.php:190 functions.php:201 msgid "Ideas" msgstr "推文" -#: functions.php:190 +#: functions.php:191 msgid "Idea" msgstr "推文" -#: functions.php:191 functions.php:192 +#: functions.php:192 functions.php:193 msgid "Publish New Idea" msgstr "發佈新推文" -#: functions.php:193 +#: functions.php:194 msgid "Edit Idea" msgstr "編輯推文" -#: functions.php:194 +#: functions.php:195 msgid "New Idea" msgstr "新推文" -#: functions.php:195 +#: functions.php:196 msgid "View Idea" msgstr "查看推文" -#: functions.php:196 +#: functions.php:197 msgid "Search Idea" msgstr "搜尋推文" -#: functions.php:197 +#: functions.php:198 msgid "Not Found Idea" msgstr "未找到推文" -#: functions.php:198 +#: functions.php:199 msgid "No Idea in the Trash" msgstr "垃圾桶里沒有推文" -#: functions.php:271 +#: functions.php:272 msgid "Copied!" msgstr "已複製!" -#: functions.php:272 +#: functions.php:273 msgid "Copy Code" msgstr "拷貝程式碼" -#: functions.php:273 +#: functions.php:274 msgid "" "Your cover API seems to not support Cross Origin Access. In this case, Cover " "Cache won't take effect." msgstr "您的封面API似乎不支援跨來源請求。這種情況下暫存是不會生效的哦。" -#: functions.php:274 +#: functions.php:275 msgid "Commiting...." msgstr "提交中。。。" -#: functions.php:275 +#: functions.php:276 msgid "Succeed" msgstr "成功" -#: functions.php:276 +#: functions.php:277 msgid "10 files max per request" msgstr "每次上傳上限為10張" -#: functions.php:277 +#: functions.php:278 msgid "" "5 MB max per file.\n" "\n" @@ -224,15 +224,15 @@ msgstr "" "\n" "這張圖太大啦~請重新上傳噢!" -#: functions.php:278 +#: functions.php:279 msgid "Uploading..." msgstr "上傳中..." -#: functions.php:279 +#: functions.php:280 msgid "Uploaded successfully~" msgstr "上傳成功~" -#: functions.php:280 +#: functions.php:281 msgid "" "Upload failed!\n" "File Name=> {0}\n" @@ -244,95 +244,95 @@ msgstr "" "錯誤碼=> {1}\n" "{2}" -#: functions.php:281 +#: functions.php:282 msgid "Upload failed, please retry." msgstr "上傳失敗,請重試。" -#: functions.php:282 +#: functions.php:283 msgid "Page Load failed. HTTP {0}" msgstr "頁面載入出錯了。HTTP{0}" -#: functions.php:283 +#: functions.php:284 msgid "Glad you come, but we've got nothing left." msgstr "很高興你翻到這裡,但是真的沒有了..." -#: functions.php:284 +#: functions.php:285 #, fuzzy #| msgid "Next Post" msgid "Post" msgstr "下一篇文章" -#: functions.php:285 +#: functions.php:286 msgid "Tag" msgstr "" -#: functions.php:286 +#: functions.php:287 msgid "Category" msgstr "" -#: functions.php:287 +#: functions.php:288 #, fuzzy #| msgid "Pages:" msgid "Page" msgstr "頁面:" -#: functions.php:288 +#: functions.php:289 #, fuzzy #| msgid "Comments" msgid "Comment" msgstr "條留言" -#: functions.php:289 +#: functions.php:290 msgid "Paused..." msgstr "" -#: functions.php:290 +#: functions.php:291 #, fuzzy #| msgid "Uploading..." msgid "Loading Video..." msgstr "上傳中..." -#: functions.php:291 +#: functions.php:292 msgid "Downloading fonts, be aware of your data usage." msgstr "" -#: functions.php:292 +#: functions.php:293 msgid "Are you sure you want set it private?" msgstr "" -#: functions.php:293 +#: functions.php:294 msgid "You had set private comment before" msgstr "" -#: functions.php:381 inc/theme_plus.php:194 layouts/authorprofile.php:12 +#: functions.php:382 inc/theme_plus.php:194 layouts/authorprofile.php:12 msgid "Author" msgstr "作者" -#: functions.php:381 +#: functions.php:382 msgid "Blogger" msgstr "部落客" -#: functions.php:387 +#: functions.php:388 msgid "Location" msgstr "來自" -#: functions.php:393 +#: functions.php:394 msgid "Private" msgstr "私密" -#: functions.php:395 +#: functions.php:396 msgid "Yes" msgstr "是" -#: functions.php:397 +#: functions.php:398 msgid "No" msgstr "否" -#: functions.php:400 +#: functions.php:401 msgid "Edit" msgstr "編輯" -#: functions.php:472 +#: functions.php:473 msgid "" "Please install pulgin WP-Statistics" @@ -340,50 +340,50 @@ msgstr "" "請安裝外掛程式 WP-Statistics" -#: functions.php:502 +#: functions.php:503 msgid "This guy is so lazy ╮(╯▽╰)╭" msgstr "這傢伙好懶╮(╯▽╰)╭" -#: functions.php:702 +#: functions.php:703 msgid "Download Link" msgstr "下載連結" -#: functions.php:772 +#: functions.php:773 #, fuzzy #| msgid "Remember_Me" msgid "Remember me" msgstr "記住我" -#: functions.php:1171 +#: functions.php:1172 msgid "All expand/collapse" msgstr "全部展開/收縮" -#: functions.php:1192 +#: functions.php:1193 msgid " " msgstr " " -#: functions.php:1196 +#: functions.php:1197 msgid " post(s)" msgstr " 篇文章" -#: functions.php:1219 functions.php:1222 inc/theme_plus.php:424 +#: functions.php:1220 functions.php:1223 inc/theme_plus.php:424 #: opt/options/theme-options.php:3043 msgid "Dashboard" msgstr "管理後台" -#: functions.php:1459 +#: functions.php:1460 msgid "ERROR: This email domain (@" msgstr "錯誤: 電子郵箱格式出錯 (@" -#: functions.php:1584 opt/options/theme-options.php:1835 +#: functions.php:1585 opt/options/theme-options.php:1835 msgid "QQ" msgstr "QQ" -#: functions.php:1650 +#: functions.php:1651 msgid "Sidebar" msgstr "側欄" -#: functions.php:1780 +#: functions.php:1781 msgid "" " For a better experience, please do not set permalink as plain. To do this, you may need to " @@ -416,15 +416,16 @@ msgstr "圖像" msgid "no image" msgstr "暫無" -#: inc/classes/Bilibili.php:48 inc/classes/MyAnimeList.php:46 +#: inc/classes/Bilibili.php:48 inc/classes/BilibiliFavList.php:54 +#: inc/classes/MyAnimeList.php:57 msgid "Backend error" msgstr "後端發生了錯誤 QwQ" -#: inc/classes/Bilibili.php:53 inc/classes/MyAnimeList.php:58 +#: inc/classes/Bilibili.php:53 inc/classes/MyAnimeList.php:69 msgid "Following " msgstr "已追蹤的新番" -#: inc/classes/Bilibili.php:53 inc/classes/MyAnimeList.php:58 +#: inc/classes/Bilibili.php:53 inc/classes/MyAnimeList.php:69 msgid " anime." msgstr "部。" @@ -432,6 +433,22 @@ msgstr "部。" msgid "The author seems to have hidden their bangumi list." msgstr "部落客似乎隱藏了新番追蹤列表。" +#: inc/classes/BilibiliFavList.php:72 +msgid "Item count: " +msgstr "" + +#: inc/classes/BilibiliFavList.php:73 opt/options/theme-options.php:2796 +msgid "Expand" +msgstr "" + +#: inc/classes/BilibiliFavList.php:90 +msgid "All item has been loaded." +msgstr "" + +#: inc/classes/BilibiliFavList.php:112 +msgid "Load More" +msgstr "" + #: inc/classes/Cache.php:70 inc/theme_plus.php:668 msgid "The comment is private" msgstr "這是一條私密留言" @@ -460,31 +477,31 @@ msgstr "" msgid "An error has occurred." msgstr "" -#: inc/classes/MyAnimeList.php:59 +#: inc/classes/MyAnimeList.php:70 msgid " Watched " msgstr "已觀看" -#: inc/classes/MyAnimeList.php:59 +#: inc/classes/MyAnimeList.php:70 msgid " episodes." msgstr "話。" -#: inc/classes/MyAnimeList.php:97 +#: inc/classes/MyAnimeList.php:108 msgid "Finished " msgstr "已看完" -#: inc/classes/MyAnimeList.php:106 +#: inc/classes/MyAnimeList.php:117 msgid "Watching " msgstr "追番中" -#: inc/classes/MyAnimeList.php:113 +#: inc/classes/MyAnimeList.php:124 msgid "Planning to Watch " msgstr "打算看" -#: inc/classes/MyAnimeList.php:122 +#: inc/classes/MyAnimeList.php:133 msgid "Dropped " msgstr "棄坑" -#: inc/classes/MyAnimeList.php:131 +#: inc/classes/MyAnimeList.php:142 msgid "Paused " msgstr "暫停" @@ -2908,7 +2925,7 @@ msgid "" "uin=123456" msgstr "" -#: opt/options/theme-options.php:1843 opt/options/theme-options.php:2716 +#: opt/options/theme-options.php:1843 msgid "Bilibili" msgstr "" @@ -3503,55 +3520,55 @@ msgstr "" msgid "Ideas Template Font" msgstr "" -#: opt/options/theme-options.php:2714 +#: opt/options/theme-options.php:2715 msgid "Bangumi Template Source" msgstr "" -#: opt/options/theme-options.php:2717 -msgid "My Anime List (Not recommended for China mainland)" -msgstr "" +#: opt/options/theme-options.php:2726 +#, fuzzy +#| msgid "User Name" +msgid "My Anime List Username" +msgstr "用戶名" -#: opt/options/theme-options.php:2725 -msgid "Bilibili Bangumi Catch-up Template Account ID" +#: opt/options/theme-options.php:2728 +msgid "Username on https://myanimelist.net/" msgstr "" -#: opt/options/theme-options.php:2727 -msgid "" -"Fill in your account ID, e.g. https://space.bilibili.com/13972644/, just the " -"number part \"13972644\"" +#: opt/options/theme-options.php:2735 +msgid "My Anime List Sort" msgstr "" -#: opt/options/theme-options.php:2734 -msgid "Bilibili Bangumi Catch-up Template Account Cookies" +#: opt/options/theme-options.php:2738 +msgid "Status and Last Updated" msgstr "" -#: opt/options/theme-options.php:2736 -msgid "" -"Fill in your account cookies, F12 to open your browser web panel, go to your " -"bilibili homepage to get cookies. If left empty, it will not show the " -"progress of catching up bangumis" +#: opt/options/theme-options.php:2739 +msgid "Last Updated" msgstr "" -#: opt/options/theme-options.php:2743 -#, fuzzy -#| msgid "User Name" -msgid "My Anime List Username" -msgstr "用戶名" - -#: opt/options/theme-options.php:2745 -msgid "Username on https://myanimelist.net/" +#: opt/options/theme-options.php:2740 +msgid "Status" msgstr "" -#: opt/options/theme-options.php:2752 -msgid "My Anime List Sort" +#: opt/options/theme-options.php:2748 +msgid "Bilibili Account UID" msgstr "" -#: opt/options/theme-options.php:2755 -msgid "Last Updated" +#: opt/options/theme-options.php:2749 +msgid "" +"Fill in your account ID, e.g. https://space.bilibili.com/13972644/, just the " +"number part \"13972644\"" msgstr "" #: opt/options/theme-options.php:2756 -msgid "Status" +msgid "Bilibili Account Cookies" +msgstr "" + +#: opt/options/theme-options.php:2757 +msgid "" +"Fill in your account cookies, F12 to open your browser web panel, go to your " +"bilibili homepage to get cookies. If left empty, it will not show the " +"progress of catching up bangumis" msgstr "" #: opt/options/theme-options.php:2764 @@ -3580,10 +3597,6 @@ msgstr "" msgid "You can choose to expand or shirink the content of the comment area" msgstr "" -#: opt/options/theme-options.php:2796 -msgid "Expand" -msgstr "" - #: opt/options/theme-options.php:2797 msgid "Shrink" msgstr "" @@ -4466,7 +4479,8 @@ msgstr "" msgid "There is no changelog available." msgstr "" -#: user/page-bangumi.php:31 user/page-followVideos.php:29 +#: user/page-bangumi.php:31 user/page-bilibiliFavList.php:32 +#: user/page-followVideos.php:29 msgid "Please fill in the Bilibili UID in Sakura Options." msgstr "請在後台設置填寫 Bilibili UID 後繼續" diff --git a/opt/languages/ja.po b/opt/languages/ja.po index d54d83b7..4d80848b 100644 --- a/opt/languages/ja.po +++ b/opt/languages/ja.po @@ -1,8 +1,8 @@ msgid "" msgstr "" "Project-Id-Version: Codestar Framework Modified by Fuukei\n" -"POT-Creation-Date: 2022-04-10 10:23-0700\n" -"PO-Revision-Date: 2022-04-10 10:23-0700\n" +"POT-Creation-Date: 2022-04-29 18:06-0700\n" +"PO-Revision-Date: 2022-04-29 18:06-0700\n" "Last-Translator: \n" "Language-Team: \n" "Language: ja\n" @@ -2304,7 +2304,7 @@ msgstr "" "フォームへの記入の形式に注意してください(例えば、tencent://message/?" "uin=123456)" -#: options/theme-options.php:1843 options/theme-options.php:2716 +#: options/theme-options.php:1843 msgid "Bilibili" msgstr "ビリビリ" @@ -2933,21 +2933,43 @@ msgstr "警告矢印をオンにすると、コメントの左側に表示され msgid "Ideas Template Font" msgstr "アイデアテンプレートフォント" -#: options/theme-options.php:2714 +#: options/theme-options.php:2715 #, fuzzy #| msgid "Theme Update Source" msgid "Bangumi Template Source" msgstr "テーマの更新元" -#: options/theme-options.php:2717 -msgid "My Anime List (Not recommended for China mainland)" +#: options/theme-options.php:2726 +#, fuzzy +#| msgid "Email Username" +msgid "My Anime List Username" +msgstr "電子メールユーザー名" + +#: options/theme-options.php:2728 +msgid "Username on https://myanimelist.net/" +msgstr "" + +#: options/theme-options.php:2735 +msgid "My Anime List Sort" +msgstr "" + +#: options/theme-options.php:2738 +msgid "Status and Last Updated" +msgstr "" + +#: options/theme-options.php:2739 +msgid "Last Updated" +msgstr "" + +#: options/theme-options.php:2740 +msgid "Status" msgstr "" -#: options/theme-options.php:2725 -msgid "Bilibili Bangumi Catch-up Template Account ID" -msgstr "ビリビリバングミキャッチアップテンプレートアカウントID" +#: options/theme-options.php:2748 +msgid "Bilibili Account UID" +msgstr "" -#: options/theme-options.php:2727 +#: options/theme-options.php:2749 msgid "" "Fill in your account ID, e.g. https://space.bilibili.com/13972644/, just the " "number part \"13972644\"" @@ -2955,11 +2977,13 @@ msgstr "" "アカウント ID (例 https://space.bilibili.com/13972644/)を記入し、番号部分 " "「13972644」" -#: options/theme-options.php:2734 -msgid "Bilibili Bangumi Catch-up Template Account Cookies" +#: options/theme-options.php:2756 +#, fuzzy +#| msgid "Bilibili Bangumi Catch-up Template Account Cookies" +msgid "Bilibili Account Cookies" msgstr "ビリビリバングミキャッチアップテンプレートアカウントクッキー" -#: options/theme-options.php:2736 +#: options/theme-options.php:2757 msgid "" "Fill in your account cookies, F12 to open your browser web panel, go to your " "bilibili homepage to get cookies. If left empty, it will not show the " @@ -2969,28 +2993,6 @@ msgstr "" "ムページにアクセスしてクッキーを取得します。空のままにした場合、バングミを追" "いつぶの進行状況は表示されません" -#: options/theme-options.php:2743 -#, fuzzy -#| msgid "Email Username" -msgid "My Anime List Username" -msgstr "電子メールユーザー名" - -#: options/theme-options.php:2745 -msgid "Username on https://myanimelist.net/" -msgstr "" - -#: options/theme-options.php:2752 -msgid "My Anime List Sort" -msgstr "" - -#: options/theme-options.php:2755 -msgid "Last Updated" -msgstr "" - -#: options/theme-options.php:2756 -msgid "Status" -msgstr "" - #: options/theme-options.php:2764 msgid "Friend Link Template Unit Alignment" msgstr "フレンド リンク テンプレート ユニットの配置" @@ -3938,3 +3940,6 @@ msgstr "" #. Author URI of the plugin/theme msgid "https://github.com/Fuukei" msgstr "" + +#~ msgid "Bilibili Bangumi Catch-up Template Account ID" +#~ msgstr "ビリビリバングミキャッチアップテンプレートアカウントID" diff --git a/opt/languages/sakurairo_csf.pot b/opt/languages/sakurairo_csf.pot index a9909640..c5f8d670 100644 --- a/opt/languages/sakurairo_csf.pot +++ b/opt/languages/sakurairo_csf.pot @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: Codestar Framework Modified by Fuukei\n" -"POT-Creation-Date: 2022-04-10 10:21-0700\n" +"POT-Creation-Date: 2022-04-29 18:06-0700\n" "PO-Revision-Date: 2021-06-26 16:15+0800\n" "Last-Translator: \n" "Language-Team: \n" @@ -2188,7 +2188,7 @@ msgid "" "uin=123456" msgstr "" -#: options/theme-options.php:1843 options/theme-options.php:2716 +#: options/theme-options.php:1843 msgid "Bilibili" msgstr "" @@ -2786,53 +2786,53 @@ msgstr "" msgid "Ideas Template Font" msgstr "" -#: options/theme-options.php:2714 +#: options/theme-options.php:2715 msgid "Bangumi Template Source" msgstr "" -#: options/theme-options.php:2717 -msgid "My Anime List (Not recommended for China mainland)" +#: options/theme-options.php:2726 +msgid "My Anime List Username" msgstr "" -#: options/theme-options.php:2725 -msgid "Bilibili Bangumi Catch-up Template Account ID" +#: options/theme-options.php:2728 +msgid "Username on https://myanimelist.net/" msgstr "" -#: options/theme-options.php:2727 -msgid "" -"Fill in your account ID, e.g. https://space.bilibili.com/13972644/, just " -"the number part \"13972644\"" +#: options/theme-options.php:2735 +msgid "My Anime List Sort" msgstr "" -#: options/theme-options.php:2734 -msgid "Bilibili Bangumi Catch-up Template Account Cookies" +#: options/theme-options.php:2738 +msgid "Status and Last Updated" msgstr "" -#: options/theme-options.php:2736 -msgid "" -"Fill in your account cookies, F12 to open your browser web panel, go to " -"your bilibili homepage to get cookies. If left empty, it will not show the " -"progress of catching up bangumis" +#: options/theme-options.php:2739 +msgid "Last Updated" msgstr "" -#: options/theme-options.php:2743 -msgid "My Anime List Username" +#: options/theme-options.php:2740 +msgid "Status" msgstr "" -#: options/theme-options.php:2745 -msgid "Username on https://myanimelist.net/" +#: options/theme-options.php:2748 +msgid "Bilibili Account UID" msgstr "" -#: options/theme-options.php:2752 -msgid "My Anime List Sort" +#: options/theme-options.php:2749 +msgid "" +"Fill in your account ID, e.g. https://space.bilibili.com/13972644/, just " +"the number part \"13972644\"" msgstr "" -#: options/theme-options.php:2755 -msgid "Last Updated" +#: options/theme-options.php:2756 +msgid "Bilibili Account Cookies" msgstr "" -#: options/theme-options.php:2756 -msgid "Status" +#: options/theme-options.php:2757 +msgid "" +"Fill in your account cookies, F12 to open your browser web panel, go to " +"your bilibili homepage to get cookies. If left empty, it will not show the " +"progress of catching up bangumis" msgstr "" #: options/theme-options.php:2764 diff --git a/opt/languages/zh_CN.po b/opt/languages/zh_CN.po index d90b44d4..32baaa0d 100644 --- a/opt/languages/zh_CN.po +++ b/opt/languages/zh_CN.po @@ -1,8 +1,8 @@ msgid "" msgstr "" "Project-Id-Version: Codestar Framework Modified by Fuukei\n" -"POT-Creation-Date: 2022-04-10 10:23-0700\n" -"PO-Revision-Date: 2022-04-10 10:23-0700\n" +"POT-Creation-Date: 2022-04-29 18:06-0700\n" +"PO-Revision-Date: 2022-04-29 18:06-0700\n" "Last-Translator: \n" "Language-Team: \n" "Language: zh_CN\n" @@ -2224,7 +2224,7 @@ msgid "" "uin=123456" msgstr "请注意填写格式,例如:tencent://message/?uin=123456" -#: options/theme-options.php:1843 options/theme-options.php:2716 +#: options/theme-options.php:1843 msgid "Bilibili" msgstr "哔哩哔哩" @@ -2826,21 +2826,41 @@ msgstr "开启之后提示箭头将出现在说说左侧上方" msgid "Ideas Template Font" msgstr "说说模板说说字体" -#: options/theme-options.php:2714 +#: options/theme-options.php:2715 #, fuzzy #| msgid "Theme Update Source" msgid "Bangumi Template Source" msgstr "追番源" -#: options/theme-options.php:2717 -msgid "My Anime List (Not recommended for China mainland)" -msgstr "My Anime List (中国大陆不建议使用)" +#: options/theme-options.php:2726 +msgid "My Anime List Username" +msgstr "My Anime List用户名" -#: options/theme-options.php:2725 -msgid "Bilibili Bangumi Catch-up Template Account ID" -msgstr "哔哩哔哩追番模板帐号ID" +#: options/theme-options.php:2728 +msgid "Username on https://myanimelist.net/" +msgstr "" + +#: options/theme-options.php:2735 +msgid "My Anime List Sort" +msgstr "" + +#: options/theme-options.php:2738 +msgid "Status and Last Updated" +msgstr "状态和上次更新" + +#: options/theme-options.php:2739 +msgid "Last Updated" +msgstr "上次更新" -#: options/theme-options.php:2727 +#: options/theme-options.php:2740 +msgid "Status" +msgstr "状态" + +#: options/theme-options.php:2748 +msgid "Bilibili Account UID" +msgstr "哔哩哔哩UID" + +#: options/theme-options.php:2749 msgid "" "Fill in your account ID, e.g. https://space.bilibili.com/13972644/, just the " "number part \"13972644\"" @@ -2848,11 +2868,13 @@ msgstr "" "填写你的帐号ID,例如:https://space.bilibili.com/13972644/,只需填写数" "字“13972644”部分" -#: options/theme-options.php:2734 -msgid "Bilibili Bangumi Catch-up Template Account Cookies" +#: options/theme-options.php:2756 +#, fuzzy +#| msgid "Bilibili Bangumi Catch-up Template Account Cookies" +msgid "Bilibili Account Cookies" msgstr "哔哩哔哩追番模板帐号Cookies" -#: options/theme-options.php:2736 +#: options/theme-options.php:2757 msgid "" "Fill in your account cookies, F12 to open your browser web panel, go to your " "bilibili homepage to get cookies. If left empty, it will not show the " @@ -2861,28 +2883,6 @@ msgstr "" "填写你的帐号Cookies,F12打开浏览器网络面板,前往你的B站主页获取Cookies。如果" "留空,将不会显示追番进度" -#: options/theme-options.php:2743 -#, fuzzy -#| msgid "Email Username" -msgid "My Anime List Username" -msgstr "电子邮件用户名" - -#: options/theme-options.php:2745 -msgid "Username on https://myanimelist.net/" -msgstr "" - -#: options/theme-options.php:2752 -msgid "My Anime List Sort" -msgstr "" - -#: options/theme-options.php:2755 -msgid "Last Updated" -msgstr "" - -#: options/theme-options.php:2756 -msgid "Status" -msgstr "" - #: options/theme-options.php:2764 msgid "Friend Link Template Unit Alignment" msgstr "友情链接模板单元对齐方向" @@ -3780,3 +3780,9 @@ msgstr "" #. Author URI of the plugin/theme msgid "https://github.com/Fuukei" msgstr "" + +#~ msgid "My Anime List (Not recommended for China mainland)" +#~ msgstr "My Anime List (中国大陆不建议使用)" + +#~ msgid "Bilibili Bangumi Catch-up Template Account ID" +#~ msgstr "哔哩哔哩追番模板帐号ID" diff --git a/opt/languages/zh_TW.po b/opt/languages/zh_TW.po index 2a6a6acc..feb25aed 100644 --- a/opt/languages/zh_TW.po +++ b/opt/languages/zh_TW.po @@ -1,8 +1,8 @@ msgid "" msgstr "" "Project-Id-Version: Codestar Framework Modified by Fuukei\n" -"POT-Creation-Date: 2022-04-10 10:23-0700\n" -"PO-Revision-Date: 2022-04-10 10:23-0700\n" +"POT-Creation-Date: 2022-04-29 18:06-0700\n" +"PO-Revision-Date: 2022-04-29 18:06-0700\n" "Last-Translator: \n" "Language-Team: \n" "Language: zh_TW\n" @@ -2225,7 +2225,7 @@ msgid "" "uin=123456" msgstr "請注意填寫格式,例如:tencent://message/?uin=123456" -#: options/theme-options.php:1843 options/theme-options.php:2716 +#: options/theme-options.php:1843 msgid "Bilibili" msgstr "嗶哩嗶哩" @@ -2827,21 +2827,43 @@ msgstr "開啟之後提示箭頭將出現在推文左側上方" msgid "Ideas Template Font" msgstr "推文模板推文字體" -#: options/theme-options.php:2714 +#: options/theme-options.php:2715 #, fuzzy #| msgid "Theme Update Source" msgid "Bangumi Template Source" msgstr "主題更新源" -#: options/theme-options.php:2717 -msgid "My Anime List (Not recommended for China mainland)" +#: options/theme-options.php:2726 +#, fuzzy +#| msgid "Email Username" +msgid "My Anime List Username" +msgstr "電子郵箱用戶名" + +#: options/theme-options.php:2728 +msgid "Username on https://myanimelist.net/" +msgstr "" + +#: options/theme-options.php:2735 +msgid "My Anime List Sort" +msgstr "" + +#: options/theme-options.php:2738 +msgid "Status and Last Updated" +msgstr "" + +#: options/theme-options.php:2739 +msgid "Last Updated" +msgstr "" + +#: options/theme-options.php:2740 +msgid "Status" msgstr "" -#: options/theme-options.php:2725 -msgid "Bilibili Bangumi Catch-up Template Account ID" -msgstr "哔嗶哩嗶哩追番模板帳號ID" +#: options/theme-options.php:2748 +msgid "Bilibili Account UID" +msgstr "" -#: options/theme-options.php:2727 +#: options/theme-options.php:2749 msgid "" "Fill in your account ID, e.g. https://space.bilibili.com/13972644/, just the " "number part \"13972644\"" @@ -2849,11 +2871,13 @@ msgstr "" "填寫你的帳號ID,例如:https://space.bilibili.com/13972644/,只需填寫數" "字“13972644”部分" -#: options/theme-options.php:2734 -msgid "Bilibili Bangumi Catch-up Template Account Cookies" +#: options/theme-options.php:2756 +#, fuzzy +#| msgid "Bilibili Bangumi Catch-up Template Account Cookies" +msgid "Bilibili Account Cookies" msgstr "嗶哩嗶哩追番模板帳號Cookies" -#: options/theme-options.php:2736 +#: options/theme-options.php:2757 msgid "" "Fill in your account cookies, F12 to open your browser web panel, go to your " "bilibili homepage to get cookies. If left empty, it will not show the " @@ -2862,28 +2886,6 @@ msgstr "" "填寫你的帳號Cookies,F12打開瀏覽器網路面板,前往你的B站主頁獲取Cookies。如果" "留空,將不會顯示追番進度" -#: options/theme-options.php:2743 -#, fuzzy -#| msgid "Email Username" -msgid "My Anime List Username" -msgstr "電子郵箱用戶名" - -#: options/theme-options.php:2745 -msgid "Username on https://myanimelist.net/" -msgstr "" - -#: options/theme-options.php:2752 -msgid "My Anime List Sort" -msgstr "" - -#: options/theme-options.php:2755 -msgid "Last Updated" -msgstr "" - -#: options/theme-options.php:2756 -msgid "Status" -msgstr "" - #: options/theme-options.php:2764 msgid "Friend Link Template Unit Alignment" msgstr "友情連結模板單元對齊方向" @@ -3780,3 +3782,6 @@ msgstr "" #. Author URI of the plugin/theme msgid "https://github.com/Fuukei" msgstr "" + +#~ msgid "Bilibili Bangumi Catch-up Template Account ID" +#~ msgstr "哔嗶哩嗶哩追番模板帳號ID" diff --git a/opt/options/theme-options.php b/opt/options/theme-options.php index fc41a486..296ce6a7 100644 --- a/opt/options/theme-options.php +++ b/opt/options/theme-options.php @@ -2708,22 +2708,44 @@ function iro_validate_optional_url( $value ) { 'default' => 'Noto Serif SC' ), + //TODO: change image source array( 'id' => 'bangumi_source', - 'type' => 'radio', + 'type' => 'image_select', 'title' => __('Bangumi Template Source', 'sakurairo_csf'), 'options' => array( - 'bilibili' => __('Bilibili', 'sakurairo_csf'), - 'myanimelist' => __('My Anime List (Not recommended for China mainland)', 'sakurairo_csf'), + 'bilibili' => 'https://raw.githubusercontent.com/cocdeshijie/Sakurairo_Vision/main/options/bangumi_source_bilibili.webp', + 'myanimelist' => 'https://raw.githubusercontent.com/cocdeshijie/Sakurairo_Vision/main/options/bangumi_source_myanimelist.webp', ), 'default' => 'bilibili' ), + array( + 'id' => 'my_anime_list_username', + 'type' => 'text', + 'title' => __('My Anime List Username','sakurairo_csf'), + 'dependency' => array( 'bangumi_source', '==', 'myanimelist' ), + 'desc' => __('Username on https://myanimelist.net/','sakurairo_csf'), + 'default' => '' + ), + + array( + 'id' => 'my_anime_list_sort', + 'type' => 'radio', + 'title' => __('My Anime List Sort','sakurairo_csf'), + 'dependency' => array( 'bangumi_source', '==', 'myanimelist' ), + 'options' => array( + '1' => __('Status and Last Updated', 'sakurairo_csf'), + '2' => __('Last Updated', 'sakurairo_csf'), + '3' => __('Status', 'sakurairo_csf'), + ), + 'default' => '1' + ), + array( 'id' => 'bilibili_id', 'type' => 'text', - 'title' => __('Bilibili Bangumi Catch-up Template Account ID','sakurairo_csf'), - 'dependency' => array( 'bangumi_source', '==', 'bilibili' ), + 'title' => __('Bilibili Account UID','sakurairo_csf'), 'desc' => __('Fill in your account ID, e.g. https://space.bilibili.com/13972644/, just the number part "13972644"','sakurairo_csf'), 'default' => '13972644' ), @@ -2731,33 +2753,11 @@ function iro_validate_optional_url( $value ) { array( 'id' => 'bilibili_cookie', 'type' => 'text', - 'title' => __('Bilibili Bangumi Catch-up Template Account Cookies','sakurairo_csf'), - 'dependency' => array( 'bangumi_source', '==', 'bilibili' ), + 'title' => __('Bilibili Account Cookies','sakurairo_csf'), 'desc' => __('Fill in your account cookies, F12 to open your browser web panel, go to your bilibili homepage to get cookies. If left empty, it will not show the progress of catching up bangumis','sakurairo_csf'), 'default' => 'LIVE_BUVID=' ), - array( - 'id' => 'my_anime_list_username', - 'type' => 'text', - 'title' => __('My Anime List Username','sakurairo_csf'), - 'dependency' => array( 'bangumi_source', '==', 'myanimelist' ), - 'desc' => __('Username on https://myanimelist.net/','sakurairo_csf'), - 'default' => '' - ), - - array( - 'id' => 'my_anime_list_sort', - 'type' => 'radio', - 'title' => __('My Anime List Sort','sakurairo_csf'), - 'dependency' => array( 'bangumi_source', '==', 'myanimelist' ), - 'options' => array( - 'order=5&status=7' => __('Last Updated', 'sakurairo_csf'), - 'order=16&status=7' => __('Status', 'sakurairo_csf'), - ), - 'default' => 'order=16&status=7' - ), - array( 'id' => 'friend_link_align', 'type' => 'image_select', diff --git a/update-checker/languages/ja_JP.po b/update-checker/languages/ja_JP.po index 8cc72961..2ce29af6 100644 --- a/update-checker/languages/ja_JP.po +++ b/update-checker/languages/ja_JP.po @@ -1,8 +1,8 @@ msgid "" msgstr "" "Project-Id-Version: plugin-update-checker\n" -"POT-Creation-Date: 2022-04-10 10:23-0700\n" -"PO-Revision-Date: 2022-04-10 10:23-0700\n" +"POT-Creation-Date: 2022-04-29 18:06-0700\n" +"PO-Revision-Date: 2022-04-29 18:06-0700\n" "Last-Translator: \n" "Language-Team: \n" "Language: ja_JP\n" diff --git a/update-checker/languages/zh_CN.po b/update-checker/languages/zh_CN.po index 1151c8db..b3eba376 100644 --- a/update-checker/languages/zh_CN.po +++ b/update-checker/languages/zh_CN.po @@ -1,8 +1,8 @@ msgid "" msgstr "" "Project-Id-Version: plugin-update-checker\n" -"POT-Creation-Date: 2022-04-10 10:23-0700\n" -"PO-Revision-Date: 2022-04-10 10:23-0700\n" +"POT-Creation-Date: 2022-04-29 18:06-0700\n" +"PO-Revision-Date: 2022-04-29 18:06-0700\n" "Last-Translator: \n" "Language-Team: \n" "Language: zh_CN\n" diff --git a/update-checker/languages/zh_TW.po b/update-checker/languages/zh_TW.po index e4c16908..0cc33b67 100644 --- a/update-checker/languages/zh_TW.po +++ b/update-checker/languages/zh_TW.po @@ -1,8 +1,8 @@ msgid "" msgstr "" "Project-Id-Version: plugin-update-checker\n" -"POT-Creation-Date: 2022-04-10 10:23-0700\n" -"PO-Revision-Date: 2022-04-10 10:23-0700\n" +"POT-Creation-Date: 2022-04-29 18:06-0700\n" +"PO-Revision-Date: 2022-04-29 18:06-0700\n" "Last-Translator: \n" "Language-Team: \n" "Language: zh_TW\n" diff --git a/user/page-bilibiliFavList.php b/user/page-bilibiliFavList.php new file mode 100644 index 00000000..3ab558a4 --- /dev/null +++ b/user/page-bilibiliFavList.php @@ -0,0 +1,266 @@ + + + + + + + + + +
> + + + +
+ get_folders(); + ?> + +
+

+
+ +
+ + + +
+ + + +