增加书源注释属性,便于标注书源作者和书源详细信息

增加书源注释属性,便于标注书源作者和书源详细信息
pull/365/head
Jason Yao 4 years ago
parent 034729a558
commit f455f3fe63
  1. 3
      app/src/main/java/io/legado/app/data/entities/BookSource.kt
  2. 2
      app/src/main/res/values-zh-rHK/strings.xml
  3. 4
      app/src/main/res/values-zh-rTW/strings.xml
  4. 2
      app/src/main/res/values-zh/strings.xml
  5. 2
      app/src/main/res/values/strings.xml

@ -32,6 +32,7 @@ data class BookSource(
var enabledExplore: Boolean = true, // 启用发现 var enabledExplore: Boolean = true, // 启用发现
var header: String? = null, // 请求头 var header: String? = null, // 请求头
var loginUrl: String? = null, // 登录地址 var loginUrl: String? = null, // 登录地址
var bookSourceComment: String? = "", // 注释
var lastUpdateTime: Long = 0, // 最后更新时间,用于排序 var lastUpdateTime: Long = 0, // 最后更新时间,用于排序
var weight: Int = 0, // 智能排序的权重 var weight: Int = 0, // 智能排序的权重
var exploreUrl: String? = null, // 发现url var exploreUrl: String? = null, // 发现url
@ -104,7 +105,7 @@ data class BookSource(
} }
fun removeGroup(group: String) { fun removeGroup(group: String) {
bookSourceGroup?.splitNotBlank("[,;]".toRegex())?.toHashSet()?.let { bookSourceGroup?.splitNotBlank("[,;,;]".toRegex())?.toHashSet()?.let {
it.remove(group) it.remove(group)
bookSourceGroup = TextUtils.join(",", it) bookSourceGroup = TextUtils.join(",", it)
} }

@ -288,6 +288,7 @@
<string name="padding_right">右邊距</string> <string name="padding_right">右邊距</string>
<string name="check_book_source">校驗書源</string> <string name="check_book_source">校驗書源</string>
<string name="check_select_source">校驗所選</string> <string name="check_select_source">校驗所選</string>
<string name="debug_select_source">debug所選</string>
<string name="progress_show">進度 %1$d/%2$d</string> <string name="progress_show">進度 %1$d/%2$d</string>
<string name="tts_fix">請安裝並選擇中文 TTS!</string> <string name="tts_fix">請安裝並選擇中文 TTS!</string>
<string name="tts_init_failed">TTS 初始化失敗!</string> <string name="tts_init_failed">TTS 初始化失敗!</string>
@ -758,4 +759,5 @@
<string name="theme_list">主题列表</string> <string name="theme_list">主题列表</string>
<string name="theme_list_summary">使用保存主题,导入,分享主题</string> <string name="theme_list_summary">使用保存主题,导入,分享主题</string>
<string name="select_theme">切換默認主題</string> <string name="select_theme">切換默認主題</string>
<string name="comment">書源注釋</string>
</resources> </resources>

@ -288,6 +288,7 @@
<string name="padding_right">右邊距</string> <string name="padding_right">右邊距</string>
<string name="check_book_source">校驗書源</string> <string name="check_book_source">校驗書源</string>
<string name="check_select_source">校驗所選</string> <string name="check_select_source">校驗所選</string>
<string name="debug_select_source">debug所選</string>
<string name="progress_show">進度 %1$d/%2$d</string> <string name="progress_show">進度 %1$d/%2$d</string>
<string name="tts_fix">請安裝並選擇中文TTS!</string> <string name="tts_fix">請安裝並選擇中文TTS!</string>
<string name="tts_init_failed">TTS初始化失敗!</string> <string name="tts_init_failed">TTS初始化失敗!</string>
@ -731,9 +732,7 @@
<string name="replace_enable_default_s">新加入書架的書是否啟用取代淨化</string> <string name="replace_enable_default_s">新加入書架的書是否啟用取代淨化</string>
<string name="select_restore_file">選擇復原文件</string> <string name="select_restore_file">選擇復原文件</string>
<string name="day_background_too_dark">白天背景不能太暗</string> <string name="day_background_too_dark">白天背景不能太暗</string>
<string name="day_bottom_bar_too_dark">白天底欄不能太暗</string>
<string name="night_background_too_light">夜間背景不能太亮</string> <string name="night_background_too_light">夜間背景不能太亮</string>
<string name="night_bottom_bar_too_light">夜間底欄不能太亮</string>
<string name="accent_background_diff">強調色不能和背景顏色相似</string> <string name="accent_background_diff">強調色不能和背景顏色相似</string>
<string name="accent_text_diff">強調色不能和文字顏色相似</string> <string name="accent_text_diff">強調色不能和文字顏色相似</string>
<string name="wrong_format">格式不對</string> <string name="wrong_format">格式不對</string>
@ -758,5 +757,6 @@
<string name="theme_list">主题列表</string> <string name="theme_list">主题列表</string>
<string name="theme_list_summary">使用保存主题,导入,分享主题</string> <string name="theme_list_summary">使用保存主题,导入,分享主题</string>
<string name="select_theme">切換默認主題</string> <string name="select_theme">切換默認主題</string>
<string name="comment">書源注釋</string>
</resources> </resources>

@ -290,6 +290,7 @@
<string name="padding_right">右边距</string> <string name="padding_right">右边距</string>
<string name="check_book_source">校验书源</string> <string name="check_book_source">校验书源</string>
<string name="check_select_source">校验所选</string> <string name="check_select_source">校验所选</string>
<string name="debug_select_source">Debug所选</string>
<string name="progress_show">进度 %1$d/%2$d</string> <string name="progress_show">进度 %1$d/%2$d</string>
<string name="tts_fix">请安装并选择中文TTS!</string> <string name="tts_fix">请安装并选择中文TTS!</string>
<string name="tts_init_failed">TTS初始化失败!</string> <string name="tts_init_failed">TTS初始化失败!</string>
@ -758,4 +759,5 @@
<string name="theme_list">主题列表</string> <string name="theme_list">主题列表</string>
<string name="theme_list_summary">使用保存主题,导入,分享主题</string> <string name="theme_list_summary">使用保存主题,导入,分享主题</string>
<string name="select_theme">切换默认主题</string> <string name="select_theme">切换默认主题</string>
<string name="comment">书源注释</string>
</resources> </resources>

@ -290,6 +290,7 @@
<string name="padding_right">Padding right</string> <string name="padding_right">Padding right</string>
<string name="check_book_source">Check book sources</string> <string name="check_book_source">Check book sources</string>
<string name="check_select_source">Check the selected source</string> <string name="check_select_source">Check the selected source</string>
<string name="debug_select_source">Debug the selected source</string>
<string name="progress_show">Progress %1$d/%2$d</string> <string name="progress_show">Progress %1$d/%2$d</string>
<string name="tts_fix">Please install and select Chinese TTS!</string> <string name="tts_fix">Please install and select Chinese TTS!</string>
<string name="tts_init_failed">TTS initialization failed!</string> <string name="tts_init_failed">TTS initialization failed!</string>
@ -759,4 +760,5 @@
<string name="save_night_theme_summary">Save night theme config</string> <string name="save_night_theme_summary">Save night theme config</string>
<string name="theme_list">Theme list</string> <string name="theme_list">Theme list</string>
<string name="theme_list_summary">Save, Import, Share theme</string> <string name="theme_list_summary">Save, Import, Share theme</string>
<string name="comment">Book source comment</string>
</resources> </resources>
Loading…
Cancel
Save