6.6.2 - Alpha5 - 增加 "文件扩展名" 设置选项
This commit is contained in:
@@ -142,9 +142,21 @@ object Pref {
|
||||
)
|
||||
|
||||
@JvmStatic
|
||||
val isHiddenFilesShow
|
||||
val isHiddenFilesShown
|
||||
get() = getString(R.string.key_hidden_files, key(R.string.default_key_hidden_files)) == key(R.string.key_hidden_files_show)
|
||||
|
||||
@JvmStatic
|
||||
val isFileExtensionsShownForAll
|
||||
get() = getString(R.string.key_file_extensions, key(R.string.default_key_file_extensions)) == key(R.string.key_file_extensions_show_all)
|
||||
|
||||
@JvmStatic
|
||||
val isFileExtensionsShownForAllButExecutable
|
||||
get() = getString(R.string.key_file_extensions, key(R.string.default_key_file_extensions)) == key(R.string.key_file_extensions_show_all_but_executable)
|
||||
|
||||
@JvmStatic
|
||||
val isFileExtensionsHidden
|
||||
get() = getString(R.string.key_file_extensions, key(R.string.default_key_file_extensions)) == key(R.string.key_file_extensions_not_show)
|
||||
|
||||
@JvmStatic
|
||||
val isRecordToastEnabled
|
||||
get() = getBoolean(
|
||||
|
||||
@@ -41,7 +41,7 @@ public class ExplorerFileProvider implements ExplorerProvider {
|
||||
}
|
||||
|
||||
protected Observable<PFile> listFiles(PFile directory) {
|
||||
boolean isShowHidden = Pref.isHiddenFilesShow();
|
||||
boolean isShowHidden = Pref.isHiddenFilesShown();
|
||||
return Observable.just(directory)
|
||||
.flatMap(dir -> {
|
||||
PFile[] files;
|
||||
|
||||
@@ -382,10 +382,7 @@ public class ScriptOperations {
|
||||
.negativeText(R.string.text_cancel)
|
||||
.positiveText(R.string.text_ok)
|
||||
.positiveColorRes(R.color.dialog_button_caution)
|
||||
.onPositive((dialog, which) -> {
|
||||
deleteWithoutConfirm(scriptFile);
|
||||
Explorers.workspace().refreshAll();
|
||||
})
|
||||
.onPositive((dialog, which) -> deleteWithoutConfirm(scriptFile))
|
||||
.build()
|
||||
.show();
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package org.autojs.autojs.ui.explorer
|
||||
|
||||
import android.content.Context
|
||||
import org.autojs.autojs.core.pref.Pref
|
||||
import org.autojs.autojs.model.explorer.ExplorerFileItem
|
||||
import org.autojs.autojs.model.explorer.ExplorerItem
|
||||
import org.autojs.autojs.model.explorer.ExplorerPage
|
||||
@@ -22,11 +23,20 @@ object ExplorerViewHelper {
|
||||
item is ExplorerSamplePage && item.isRoot -> context.getString(R.string.text_sample)
|
||||
item is ExplorerPage -> item.getName()
|
||||
else -> when (item.type) {
|
||||
FileUtils.TYPE.JAVASCRIPT, FileUtils.TYPE.AUTO -> when (item) {
|
||||
is ExplorerFileItem -> item.file.simplifiedName
|
||||
else -> getNameWithoutExtension(item.name)
|
||||
FileUtils.TYPE.JAVASCRIPT, FileUtils.TYPE.AUTO -> when {
|
||||
Pref.isFileExtensionsShownForAll -> when (item) {
|
||||
is ExplorerFileItem -> item.file.name
|
||||
else -> item.name
|
||||
}
|
||||
else -> when (item) {
|
||||
is ExplorerFileItem -> item.file.simplifiedName
|
||||
else -> getNameWithoutExtension(item.name)
|
||||
}
|
||||
}
|
||||
else -> when {
|
||||
Pref.isFileExtensionsHidden -> getNameWithoutExtension(item.name)
|
||||
else -> item.name
|
||||
}
|
||||
else -> item.name
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
package org.autojs.autojs.ui.settings
|
||||
|
||||
import android.content.Context
|
||||
import android.util.AttributeSet
|
||||
import com.afollestad.materialdialogs.MaterialDialog
|
||||
import org.autojs.autojs.theme.preference.MaterialListPreference
|
||||
import org.autojs.autojs.util.ViewUtils
|
||||
import org.autojs.autojs6.R
|
||||
|
||||
class FileExtensionsPreference : MaterialListPreference {
|
||||
|
||||
constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int, defStyleRes: Int) : super(context, attrs, defStyleAttr, defStyleRes)
|
||||
|
||||
constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : super(context, attrs, defStyleAttr)
|
||||
|
||||
constructor(context: Context, attrs: AttributeSet?) : super(context, attrs)
|
||||
|
||||
constructor(context: Context) : super(context)
|
||||
|
||||
override fun onChangeConfirmed(dialog: MaterialDialog) {
|
||||
ViewUtils.showToast(prefContext, R.string.text_refresh_explorer_may_needed, true)
|
||||
super.onChangeConfirmed(dialog)
|
||||
}
|
||||
|
||||
}
|
||||
@@ -487,6 +487,7 @@
|
||||
<string name="text_failed_to_write_file">فشل في كتابة الملف</string>
|
||||
<string name="text_file">ملف</string>
|
||||
<string name="text_file_exists">ملف موجود بالفعل</string>
|
||||
<string name="text_file_explorer">مستكشف الملفات</string>
|
||||
<string name="text_file_name">اسم الملف</string>
|
||||
<string name="text_file_not_exists">ملف غير موجود</string>
|
||||
<string name="text_file_with_abs_path_is_not_an_executable_script">الملف \"%1$s\" ليس برنامجًا نصيًا قابلًا للتنفيذ</string>
|
||||
@@ -895,5 +896,13 @@
|
||||
<string name="text_package_name_with_computing" tools:ignore="TypographyEllipsis">اسم الحزمة (جارٍ الحساب...)</string>
|
||||
<string name="text_version_name_with_computing" tools:ignore="TypographyEllipsis">اسم الإصدار (جارٍ الحساب...)</string>
|
||||
<string name="text_version_code_with_computing" tools:ignore="TypographyEllipsis">رمز الإصدار (جارٍ الحساب...)</string>
|
||||
<string name="text_file_extensions_title">File extensions</string>
|
||||
<string name="entry_file_extensions_not_show">Hide all file extensions</string>
|
||||
<string name="entry_file_extensions_show_all">Show all file extensions</string>
|
||||
<string name="entry_file_extensions_show_all_but_executable">Show file extensions (exclude *.js / *.auto)</string>
|
||||
<string name="text_switch_to_new_layout">Switch to new layout</string>
|
||||
<string name="text_switch_to_legacy_layout">Switch to legacy layout</string>
|
||||
<string name="text_search_color">Search color</string>
|
||||
<string name="text_locate_current_color">Locate current color</string>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
<string name="description_documentation_source_preference">Local docs: Using AutoJs6 build-in files as documentation sources, no network connection required. The content changes as AutoJs6 is updated.\nOnline docs: Using GitHub pages as documentation sources, requiring network connection. The content is always up to date.\n\nNote: To maximize the reading experience of online documents, it is recommended to use a widescreen display device such as a desktop monitor.\nNote: As of version 6.2.0, the documentation is still in the preliminary stages of development, and most of the content has not yet been written or updated.</string>
|
||||
<string name="description_documentation_source_preference_more">The following conditions must be met for dark theme support on document pages:\n1. AutoJs6 has night mode enabled\n2. Android System WebView (or browsers like Google Chrome):\n- Android API Level 29 (Android 10) [Q] and above: version >= 76\n- Android API Level 28 (Android 9) [P] and below: version >= 105</string>
|
||||
<string name="description_extending_js_build_in_objects">Extending JavaScript built-in objects can increase code flexibility and enable richer functionality, but can cause conflicts and even breakage.\nAll scripts have built-in extensions enabled by default when the option is turned on.\nBuilt-in extensions are often insecure, and are not recommended unless the principles and risks of built-in extensions are clearly understood.\nWhen the option is turned off, built-in extensions can still be enabled through the plugins global object, as described in the project documentation.</string>
|
||||
<string name="description_hidden_files_preference">Used to set whether or not to show hidden files and folders (usually starting with \".\") in AutoJs6 file explorer.</string>
|
||||
<string name="description_hidden_files_preference">Used to set whether to show hidden files and folders (usually starting with \".\") in AutoJs6 file explorer.</string>
|
||||
<string name="description_keep_screen_on_when_in_foreground_preference">Preference for keeping the device\'s screen turned on and bright when AutoJs6 is in the foreground.\nTo make it happen only on the homepage among all pages of the AutoJs6 application, choose \"homepage only\" option.</string>
|
||||
<string name="description_launcher_shortcuts">Shortcuts can perform specific actions in AutoJs6. Users can display these shortcuts in a supported launcher and quickly start some tasks or launch an activity, such as reading AutoJs6 application documentation, launching AutoJs6 settings page, and so on.</string>
|
||||
<string name="description_manage_ignored_updates_preference">Click to view or manage list items.\nLong press to remove the list item.</string>
|
||||
@@ -81,7 +81,7 @@
|
||||
<string name="entry_editor_pinch_to_zoom_change_text_size">Change text size</string>
|
||||
<string name="entry_editor_pinch_to_zoom_disable">Disable</string>
|
||||
<string name="entry_editor_pinch_to_zoom_scale_view">Scale view</string>
|
||||
<string name="entry_hidden_files_not_show">Don\'t show hidden files or folders</string>
|
||||
<string name="entry_hidden_files_not_show">Do not show hidden files or folders</string>
|
||||
<string name="entry_hidden_files_show">Show hidden files and folders</string>
|
||||
<string name="entry_keep_screen_on_when_in_foreground_all_pages">All pages</string>
|
||||
<string name="entry_keep_screen_on_when_in_foreground_disabled">Disabled</string>
|
||||
@@ -421,7 +421,7 @@
|
||||
<string name="text_disposable_task">Disposable task</string>
|
||||
<string name="text_disposable_task_time_before_now">Time should be later than now</string>
|
||||
<string name="text_do_not_ask_again_for_this_version">Don’t ask again for this version</string>
|
||||
<string name="text_do_not_show_again">Don\'t show again</string>
|
||||
<string name="text_do_not_show_again">Do not show again</string>
|
||||
<string name="text_documentation">Documents</string>
|
||||
<string name="text_documentation_source">Documentation source</string>
|
||||
<string name="text_done">Done</string>
|
||||
@@ -483,6 +483,7 @@
|
||||
<string name="text_failed_to_write_file">Failed to write file</string>
|
||||
<string name="text_file">File</string>
|
||||
<string name="text_file_exists">File already exists</string>
|
||||
<string name="text_file_explorer">File explorer</string>
|
||||
<string name="text_file_name">File name</string>
|
||||
<string name="text_file_not_exists">File doesn\'t exist</string>
|
||||
<string name="text_file_with_abs_path_is_not_an_executable_script">File \"%1$s\" is not an executable script</string>
|
||||
@@ -891,5 +892,13 @@
|
||||
<string name="text_package_name_with_computing" tools:ignore="TypographyEllipsis">Package name (computing...)</string>
|
||||
<string name="text_version_name_with_computing" tools:ignore="TypographyEllipsis">Version name (computing...)</string>
|
||||
<string name="text_version_code_with_computing" tools:ignore="TypographyEllipsis">Version code (computing...)</string>
|
||||
<string name="text_file_extensions_title">File extensions</string>
|
||||
<string name="entry_file_extensions_not_show">Hide all file extensions</string>
|
||||
<string name="entry_file_extensions_show_all">Show all file extensions</string>
|
||||
<string name="entry_file_extensions_show_all_but_executable">Show file extensions (exclude *.js / *.auto)</string>
|
||||
<string name="text_switch_to_new_layout">Switch to new layout</string>
|
||||
<string name="text_switch_to_legacy_layout">Switch to legacy layout</string>
|
||||
<string name="text_search_color">Search color</string>
|
||||
<string name="text_locate_current_color">Locate current color</string>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
<string name="legacy_text_download_failed">Download failed</string>
|
||||
<string name="legacy_text_download_url">Download</string>
|
||||
<string name="legacy_text_do_not_ask_again_for_this_version">Do not ask again for this version</string>
|
||||
<string name="legacy_text_do_not_remind_again">Don\'t show again</string>
|
||||
<string name="legacy_text_do_not_remind_again">Do not show again</string>
|
||||
<string name="legacy_text_drawer_close">Close drawer</string>
|
||||
<string name="legacy_text_drawer_open">Open drawer</string>
|
||||
<string name="legacy_text_edit">Edit</string>
|
||||
|
||||
@@ -486,6 +486,7 @@
|
||||
<string name="text_failed_to_write_file">Fallo al escribir el archivo</string>
|
||||
<string name="text_file">Archivo</string>
|
||||
<string name="text_file_exists">El archivo ya existe</string>
|
||||
<string name="text_file_explorer">Explorador de archivos</string>
|
||||
<string name="text_file_name">Nombre del archivo</string>
|
||||
<string name="text_file_not_exists">El archivo no existe</string>
|
||||
<string name="text_file_with_abs_path_is_not_an_executable_script">El archivo \"%1$s\" no es un script ejecutable</string>
|
||||
@@ -894,5 +895,13 @@
|
||||
<string name="text_package_name_with_computing" tools:ignore="TypographyEllipsis">Nombre del paquete (Calculando...)</string>
|
||||
<string name="text_version_name_with_computing" tools:ignore="TypographyEllipsis">Nombre de la versión (Calculando...)</string>
|
||||
<string name="text_version_code_with_computing" tools:ignore="TypographyEllipsis">Código de la versión (Calculando...)</string>
|
||||
<string name="text_file_extensions_title">File extensions</string>
|
||||
<string name="entry_file_extensions_not_show">Hide all file extensions</string>
|
||||
<string name="entry_file_extensions_show_all">Show all file extensions</string>
|
||||
<string name="entry_file_extensions_show_all_but_executable">Show file extensions (exclude *.js / *.auto)</string>
|
||||
<string name="text_switch_to_new_layout">Switch to new layout</string>
|
||||
<string name="text_switch_to_legacy_layout">Switch to legacy layout</string>
|
||||
<string name="text_search_color">Search color</string>
|
||||
<string name="text_locate_current_color">Locate current color</string>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -486,6 +486,7 @@
|
||||
<string name="text_failed_to_write_file">Fail to write file</string>
|
||||
<string name="text_file">Fichier</string>
|
||||
<string name="text_file_exists">Fichier déjà existant</string>
|
||||
<string name="text_file_explorer">Explorateur de fichiers</string>
|
||||
<string name="text_file_name">Nom du fichier</string>
|
||||
<string name="text_file_not_exists">Le fichier n\'existe pas</string>
|
||||
<string name="text_file_with_abs_path_is_not_an_executable_script">Le fichier \"%1$s\" n\'est pas un script exécutable</string>
|
||||
@@ -894,5 +895,13 @@
|
||||
<string name="text_package_name_with_computing" tools:ignore="TypographyEllipsis">Nom du paquet (en cours de calcul...)</string>
|
||||
<string name="text_version_name_with_computing" tools:ignore="TypographyEllipsis">Nom de la version (en cours de calcul...)</string>
|
||||
<string name="text_version_code_with_computing" tools:ignore="TypographyEllipsis">Code de version (en cours de calcul...)</string>
|
||||
<string name="text_file_extensions_title">File extensions</string>
|
||||
<string name="entry_file_extensions_not_show">Hide all file extensions</string>
|
||||
<string name="entry_file_extensions_show_all">Show all file extensions</string>
|
||||
<string name="entry_file_extensions_show_all_but_executable">Show file extensions (exclude *.js / *.auto)</string>
|
||||
<string name="text_switch_to_new_layout">Switch to new layout</string>
|
||||
<string name="text_switch_to_legacy_layout">Switch to legacy layout</string>
|
||||
<string name="text_search_color">Search color</string>
|
||||
<string name="text_locate_current_color">Locate current color</string>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -486,6 +486,7 @@
|
||||
<string name="text_failed_to_write_file">ファイルの書き込みに失敗しました</string>
|
||||
<string name="text_file">ファイル</string>
|
||||
<string name="text_file_exists">ファイルは既に存在しています</string>
|
||||
<string name="text_file_explorer">ファイルエクスプローラー</string>
|
||||
<string name="text_file_name">ファイル名</string>
|
||||
<string name="text_file_not_exists">ファイルが存在しません</string>
|
||||
<string name="text_file_with_abs_path_is_not_an_executable_script">ファイル \"%1$s\" は実行可能なスクリプトではありません</string>
|
||||
@@ -894,5 +895,13 @@
|
||||
<string name="text_package_name_with_computing" tools:ignore="TypographyEllipsis">パッケージ名 (計算中...)</string>
|
||||
<string name="text_version_name_with_computing" tools:ignore="TypographyEllipsis">バージョン名 (計算中...)</string>
|
||||
<string name="text_version_code_with_computing" tools:ignore="TypographyEllipsis">バージョンコード (計算中...)</string>
|
||||
<string name="text_file_extensions_title">File extensions</string>
|
||||
<string name="entry_file_extensions_not_show">Hide all file extensions</string>
|
||||
<string name="entry_file_extensions_show_all">Show all file extensions</string>
|
||||
<string name="entry_file_extensions_show_all_but_executable">Show file extensions (exclude *.js / *.auto)</string>
|
||||
<string name="text_switch_to_new_layout">Switch to new layout</string>
|
||||
<string name="text_switch_to_legacy_layout">Switch to legacy layout</string>
|
||||
<string name="text_search_color">Search color</string>
|
||||
<string name="text_locate_current_color">Locate current color</string>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -487,6 +487,7 @@
|
||||
<string name="text_failed_to_write_file">파일을 쓰지 못했습니다</string>
|
||||
<string name="text_file">파일</string>
|
||||
<string name="text_file_exists">존재하는 파일입니다</string>
|
||||
<string name="text_file_explorer">파일 탐색기</string>
|
||||
<string name="text_file_name">파일 이름</string>
|
||||
<string name="text_file_not_exists">파일이 존재하지 않는다</string>
|
||||
<string name="text_file_with_abs_path_is_not_an_executable_script">\"%1$s\" 파일은 실행 가능한 스크립트가 아닙니다</string>
|
||||
@@ -895,5 +896,13 @@
|
||||
<string name="text_package_name_with_computing" tools:ignore="TypographyEllipsis">패키지 이름 (계산 중...)</string>
|
||||
<string name="text_version_name_with_computing" tools:ignore="TypographyEllipsis">버전 이름 (계산 중...)</string>
|
||||
<string name="text_version_code_with_computing" tools:ignore="TypographyEllipsis">버전 코드 (계산 중...)</string>
|
||||
<string name="text_file_extensions_title">File extensions</string>
|
||||
<string name="entry_file_extensions_not_show">Hide all file extensions</string>
|
||||
<string name="entry_file_extensions_show_all">Show all file extensions</string>
|
||||
<string name="entry_file_extensions_show_all_but_executable">Show file extensions (exclude *.js / *.auto)</string>
|
||||
<string name="text_switch_to_new_layout">Switch to new layout</string>
|
||||
<string name="text_switch_to_legacy_layout">Switch to legacy layout</string>
|
||||
<string name="text_search_color">Search color</string>
|
||||
<string name="text_locate_current_color">Locate current color</string>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -486,6 +486,7 @@
|
||||
<string name="text_failed_to_write_file">Не удалось записать файл</string>
|
||||
<string name="text_file">Файл</string>
|
||||
<string name="text_file_exists">Файл уже существует</string>
|
||||
<string name="text_file_explorer">Проводник файлов</string>
|
||||
<string name="text_file_name">Имя файла</string>
|
||||
<string name="text_file_not_exists">Файл не существует</string>
|
||||
<string name="text_file_with_abs_path_is_not_an_executable_script">Файл \"%1$s\" не является исполняемым скриптом</string>
|
||||
@@ -894,5 +895,13 @@
|
||||
<string name="text_package_name_with_computing" tools:ignore="TypographyEllipsis">Имя пакета (Вычисление...)</string>
|
||||
<string name="text_version_name_with_computing" tools:ignore="TypographyEllipsis">Название версии (Вычисление...)</string>
|
||||
<string name="text_version_code_with_computing" tools:ignore="TypographyEllipsis">Код версии (Вычисление...)</string>
|
||||
<string name="text_file_extensions_title">File extensions</string>
|
||||
<string name="entry_file_extensions_not_show">Hide all file extensions</string>
|
||||
<string name="entry_file_extensions_show_all">Show all file extensions</string>
|
||||
<string name="entry_file_extensions_show_all_but_executable">Show file extensions (exclude *.js / *.auto)</string>
|
||||
<string name="text_switch_to_new_layout">Switch to new layout</string>
|
||||
<string name="text_switch_to_legacy_layout">Switch to legacy layout</string>
|
||||
<string name="text_search_color">Search color</string>
|
||||
<string name="text_locate_current_color">Locate current color</string>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -485,6 +485,7 @@
|
||||
<string name="text_failed_to_write_file">文件寫入失敗</string>
|
||||
<string name="text_file">文件</string>
|
||||
<string name="text_file_exists">文件已存在</string>
|
||||
<string name="text_file_explorer">文件管理器</string>
|
||||
<string name="text_file_name">文件名</string>
|
||||
<string name="text_file_not_exists">文件不存在</string>
|
||||
<string name="text_file_with_abs_path_is_not_an_executable_script">文件 \"%1$s\" 非可執行腳本</string>
|
||||
@@ -893,5 +894,13 @@
|
||||
<string name="text_package_name_with_computing" tools:ignore="TypographyEllipsis">包名 (計算中...)</string>
|
||||
<string name="text_version_name_with_computing" tools:ignore="TypographyEllipsis">版本名稱 (計算中...)</string>
|
||||
<string name="text_version_code_with_computing" tools:ignore="TypographyEllipsis">版本號 (計算中...)</string>
|
||||
<string name="text_file_extensions_title">File extensions</string>
|
||||
<string name="entry_file_extensions_not_show">Hide all file extensions</string>
|
||||
<string name="entry_file_extensions_show_all">Show all file extensions</string>
|
||||
<string name="entry_file_extensions_show_all_but_executable">Show file extensions (exclude *.js / *.auto)</string>
|
||||
<string name="text_switch_to_new_layout">Switch to new layout</string>
|
||||
<string name="text_switch_to_legacy_layout">Switch to legacy layout</string>
|
||||
<string name="text_search_color">Search color</string>
|
||||
<string name="text_locate_current_color">Locate current color</string>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -485,6 +485,7 @@
|
||||
<string name="text_failed_to_write_file">檔案寫入失敗</string>
|
||||
<string name="text_file">檔案</string>
|
||||
<string name="text_file_exists">檔案已存在</string>
|
||||
<string name="text_file_explorer">檔案管理器</string>
|
||||
<string name="text_file_name">檔名</string>
|
||||
<string name="text_file_not_exists">檔案不存在</string>
|
||||
<string name="text_file_with_abs_path_is_not_an_executable_script">檔案 \"%1$s\" 非可執行指令碼</string>
|
||||
@@ -893,5 +894,13 @@
|
||||
<string name="text_package_name_with_computing" tools:ignore="TypographyEllipsis">包名 (計算中...)</string>
|
||||
<string name="text_version_name_with_computing" tools:ignore="TypographyEllipsis">版本名稱 (計算中...)</string>
|
||||
<string name="text_version_code_with_computing" tools:ignore="TypographyEllipsis">版本號 (計算中...)</string>
|
||||
<string name="text_file_extensions_title">File extensions</string>
|
||||
<string name="entry_file_extensions_not_show">Hide all file extensions</string>
|
||||
<string name="entry_file_extensions_show_all">Show all file extensions</string>
|
||||
<string name="entry_file_extensions_show_all_but_executable">Show file extensions (exclude *.js / *.auto)</string>
|
||||
<string name="text_switch_to_new_layout">Switch to new layout</string>
|
||||
<string name="text_switch_to_legacy_layout">Switch to legacy layout</string>
|
||||
<string name="text_search_color">Search color</string>
|
||||
<string name="text_locate_current_color">Locate current color</string>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
<string name="description_documentation_source_preference">本地文档: AutoJs6 内置文件作为文档来源, 无需网络连接, 随 AutoJs6 应用更新而发生内容变动.\n在线文档: 使用 GitHub 网页作为文档来源, 需网络连接, 可随时保持文档内容为最新.\n\n注: 为最大化在线文档的阅读体验, 建议使用桌面显示器等宽屏显示设备阅读.\n注: 截至 6.2.0 版本, 文档尚处于初步编写阶段, 大部分内容尚未完成编写或更新.</string>
|
||||
<string name="description_documentation_source_preference_more">文档页面的深色主题支持需要满足以下条件:\n1. AutoJs6 开启夜间模式\n2. WebView (或 Google Chrome 等浏览器) 版本要求:\n- API 级别 29 (安卓 10) [Q] 及以上: 版本不低于 76\n- API 级别 28 (安卓 9) [P] 及以下: 版本不低于 105</string>
|
||||
<string name="description_extending_js_build_in_objects">扩展 JavaScript 内置对象可以增加代码灵活性并实现更丰富的功能, 但可能造成冲突甚至破坏.\n选项开启后所有脚本均默认启用内置扩展.\n内置扩展往往是不安全的, 除非明确了解内置扩展的原理及风险, 否则不建议启用.\n选项关闭后, 仍然可以通过 plugins 全局对象启用内置扩展, 详见项目文档.</string>
|
||||
<string name="description_file_extensions_preference">用于设置是否在 AutoJs6 文件管理器中显示文件扩展名.</string>
|
||||
<string name="description_hidden_files_preference">用于设置是否在 AutoJs6 文件管理器中显示隐藏文件和文件夹 (通常以 \".\" 开头).</string>
|
||||
<string name="description_keep_screen_on_when_in_foreground_preference">用于当 AutoJs6 位于前台时使设备屏幕保持常亮.\n如需在 AutoJs6 应用的所有页面中, 仅在主页时保持设备屏幕常亮, 可选择 \"仅限主页\" 选项.</string>
|
||||
<string name="description_launcher_shortcuts">快捷方式可以在 AutoJs6 中执行特定操作, 用户可以在启动器中显示这些快捷方式, 并快速开始某些任务或启动某个活动, 如阅读 AutoJs6 应用文档, 启动 AutoJs6 设置页面等.</string>
|
||||
@@ -481,6 +482,7 @@
|
||||
<string name="text_failed_to_write_file">文件写入失败</string>
|
||||
<string name="text_file">文件</string>
|
||||
<string name="text_file_exists">文件已存在</string>
|
||||
<string name="text_file_explorer">文件管理器</string>
|
||||
<string name="text_file_name">文件名</string>
|
||||
<string name="text_file_not_exists">文件不存在</string>
|
||||
<string name="text_file_with_abs_path_is_not_an_executable_script">文件 \"%1$s\" 非可执行脚本</string>
|
||||
@@ -892,5 +894,13 @@
|
||||
<string name="apk_info_file_size">文件大小</string>
|
||||
<string name="apk_info_signature_scheme">签名方案</string>
|
||||
<string name="dialog_button_file_information">文件信息</string>
|
||||
<string name="text_file_extensions_title">文件扩展名</string>
|
||||
<string name="entry_file_extensions_not_show">隐藏所有文件扩展名</string>
|
||||
<string name="entry_file_extensions_show_all">显示所有文件扩展名</string>
|
||||
<string name="entry_file_extensions_show_all_but_executable">显示文件扩展名 (*.js / *.auto 除外)</string>
|
||||
<string name="text_switch_to_new_layout">切换至新布局</string>
|
||||
<string name="text_switch_to_legacy_layout">切换至传统布局</string>
|
||||
<string name="text_search_color">搜索颜色</string>
|
||||
<string name="text_locate_current_color">定位当前颜色</string>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -94,6 +94,18 @@
|
||||
<item>@string/entry_hidden_files_show</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="keys_file_extensions">
|
||||
<item>@string/key_file_extensions_not_show</item>
|
||||
<item>@string/key_file_extensions_show_all</item>
|
||||
<item>@string/key_file_extensions_show_all_but_executable</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="values_file_extensions">
|
||||
<item>@string/entry_file_extensions_not_show</item>
|
||||
<item>@string/entry_file_extensions_show_all</item>
|
||||
<item>@string/entry_file_extensions_show_all_but_executable</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="keys_editor_pinch_to_zoom_strategy">
|
||||
<item>@string/key_editor_pinch_to_zoom_change_text_size</item>
|
||||
<item>@string/key_editor_pinch_to_zoom_scale_view</item>
|
||||
|
||||
@@ -60,6 +60,7 @@
|
||||
<string name="current_available_abi_options">Current available \"abi\" options</string>
|
||||
<string name="default_key_editor_pinch_to_zoom_strategy" translatable="false">@string/key_editor_pinch_to_zoom_change_text_size</string>
|
||||
<string name="default_key_hidden_files" translatable="false">@string/key_hidden_files_not_show</string>
|
||||
<string name="default_key_file_extensions" translatable="false">@string/key_file_extensions_show_all_but_executable</string>
|
||||
<string name="default_key_keep_screen_on_when_in_foreground" translatable="false">@string/key_keep_screen_on_when_in_foreground_disabled</string>
|
||||
<string name="default_key_root_record_out_file_type" translatable="false">@string/key_root_record_out_file_type_binary</string>
|
||||
<string name="default_main_file_name" translatable="false">main.js</string>
|
||||
@@ -79,7 +80,7 @@
|
||||
<string name="description_documentation_source_preference">Local docs: Using AutoJs6 build-in files as documentation sources, no network connection required. The content changes as AutoJs6 is updated.\nOnline docs: Using GitHub pages as documentation sources, requiring network connection. The content is always up to date.\n\nNote: To maximize the reading experience of online documents, it is recommended to use a widescreen display device such as a desktop monitor.\nNote: As of version 6.2.0, the documentation is still in the preliminary stages of development, and most of the content has not yet been written or updated.</string>
|
||||
<string name="description_documentation_source_preference_more">The following conditions must be met for dark theme support on document pages:\n1. AutoJs6 has night mode enabled\n2. Android System WebView (or browsers like Google Chrome):\n- Android API Level 29 (Android 10) [Q] and above: version >= 76\n- Android API Level 28 (Android 9) [P] and below: version >= 105</string>
|
||||
<string name="description_extending_js_build_in_objects">Extending JavaScript built-in objects can increase code flexibility and enable richer functionality, but can cause conflicts and even breakage.\nAll scripts have built-in extensions enabled by default when the option is turned on.\nBuilt-in extensions are often insecure, and are not recommended unless the principles and risks of built-in extensions are clearly understood.\nWhen the option is turned off, built-in extensions can still be enabled through the plugins global object, as described in the project documentation.</string>
|
||||
<string name="description_hidden_files_preference">Used to set whether or not to show hidden files and folders (usually starting with \".\") in AutoJs6 file explorer.</string>
|
||||
<string name="description_hidden_files_preference">Used to set whether to show hidden files and folders (usually starting with \".\") in AutoJs6 file explorer.</string>
|
||||
<string name="description_keep_screen_on_when_in_foreground_preference">Preference for keeping the device\'s screen turned on and bright when AutoJs6 is in the foreground.\nTo make it happen only on the homepage among all pages of the AutoJs6 application, choose \"homepage only\" option.</string>
|
||||
<string name="description_launcher_shortcuts">Shortcuts can perform specific actions in AutoJs6. Users can display these shortcuts in a supported launcher and quickly start some tasks or launch an activity, such as reading AutoJs6 application documentation, launching AutoJs6 settings page, and so on.</string>
|
||||
<string name="description_manage_ignored_updates_preference">Click to view or manage list items.\nLong press to remove the list item.</string>
|
||||
@@ -135,7 +136,7 @@
|
||||
<string name="entry_editor_pinch_to_zoom_change_text_size">Change text size</string>
|
||||
<string name="entry_editor_pinch_to_zoom_disable">Disable</string>
|
||||
<string name="entry_editor_pinch_to_zoom_scale_view">Scale view</string>
|
||||
<string name="entry_hidden_files_not_show">Don\'t show hidden files or folders</string>
|
||||
<string name="entry_hidden_files_not_show">Do not show hidden files or folders</string>
|
||||
<string name="entry_hidden_files_show">Show hidden files and folders</string>
|
||||
<string name="entry_keep_screen_on_when_in_foreground_all_pages">All pages</string>
|
||||
<string name="entry_keep_screen_on_when_in_foreground_disabled">Disabled</string>
|
||||
@@ -303,6 +304,7 @@
|
||||
<string name="key_change_working_dir" translatable="false">key_$_change_working_dir</string>
|
||||
<string name="key_check_for_updates" translatable="false">key_$_check_for_updates</string>
|
||||
<string name="key_client_socket_normally_closed" translatable="false">key_$_client_socket_normally_closed</string>
|
||||
<string name="key_color_select_activity_legacy_layout" translatable="false">key_$_color_select_activity_legacy_layout</string>
|
||||
<string name="key_dialog_check_display_over_other_apps" translatable="false">key_$_dialog_check_display_over_other_apps</string>
|
||||
<string name="key_dialog_foreground_svc" translatable="false">key_$_dialog_foreground_svc</string>
|
||||
<string name="key_dialog_log_entries_exported" translatable="false">key_$_dialog_log_entries_exported</string>
|
||||
@@ -322,6 +324,10 @@
|
||||
<string name="key_enable_a11y_service_with_secure_settings" translatable="false">key_$_enable_a11y_service_with_secure_settings</string>
|
||||
<string name="key_enable_observe_key" translatable="false">key_$_enable_observe_key</string>
|
||||
<string name="key_extending_js_build_in_objects" translatable="false">key_$_extending_js_build_in_objects</string>
|
||||
<string name="key_file_extensions" translatable="false">key_$_file_extensions</string>
|
||||
<string name="key_file_extensions_not_show" translatable="false">key_$_file_extensions_not_show</string>
|
||||
<string name="key_file_extensions_show_all" translatable="false">key_$_file_extensions_show_all</string>
|
||||
<string name="key_file_extensions_show_all_but_executable" translatable="false">key_$_file_extensions_show_all_but_executable</string>
|
||||
<string name="key_floating_menu_shown" translatable="false">key_$_floating_menu_shown</string>
|
||||
<string name="key_foreground_service" translatable="false">key_$_foreground_service</string>
|
||||
<string name="key_gesture_observing" translatable="false">key_$_gesture_observing</string>
|
||||
@@ -619,7 +625,7 @@
|
||||
<string name="text_disposable_task">Disposable task</string>
|
||||
<string name="text_disposable_task_time_before_now">Time should be later than now</string>
|
||||
<string name="text_do_not_ask_again_for_this_version">Don’t ask again for this version</string>
|
||||
<string name="text_do_not_show_again">Don\'t show again</string>
|
||||
<string name="text_do_not_show_again">Do not show again</string>
|
||||
<string name="text_documentation">Documents</string>
|
||||
<string name="text_documentation_source">Documentation source</string>
|
||||
<string name="text_done">Done</string>
|
||||
@@ -682,6 +688,7 @@
|
||||
<string name="text_failed_to_write_file">Failed to write file</string>
|
||||
<string name="text_file">File</string>
|
||||
<string name="text_file_exists">File already exists</string>
|
||||
<string name="text_file_explorer">File explorer</string>
|
||||
<string name="text_file_name">File name</string>
|
||||
<string name="text_file_not_exists">File doesn\'t exist</string>
|
||||
<string name="text_file_with_abs_path_is_not_an_executable_script">File \"%1$s\" is not an executable script</string>
|
||||
@@ -1121,8 +1128,18 @@
|
||||
<string name="text_version_code_with_computing" tools:ignore="TypographyEllipsis">Version code (computing...)</string>
|
||||
<string name="default_build_apk_version_name" translatable="false">1.0.0</string>
|
||||
<string name="default_build_apk_version_code" translatable="false">1</string>
|
||||
|
||||
<string name="apk_info_file_size">File size</string>
|
||||
<string name="apk_info_signature_scheme">Signature</string>
|
||||
<string name="dialog_button_file_information">File info</string>
|
||||
<string name="text_file_extensions_title">File extensions</string>
|
||||
<string name="entry_file_extensions_not_show">Hide all file extensions</string>
|
||||
<string name="entry_file_extensions_show_all">Show all file extensions</string>
|
||||
<string name="entry_file_extensions_show_all_but_executable">Show file extensions (exclude *.js / *.auto)</string>
|
||||
<string name="description_file_extensions_preference">Used to set whether to show file extensions in AutoJs6 file explorer.</string>
|
||||
<string name="text_switch_to_new_layout">Switch to new layout</string>
|
||||
<string name="text_switch_to_legacy_layout">Switch to legacy layout</string>
|
||||
<string name="text_search_color">Search color</string>
|
||||
<string name="text_locate_current_color">Locate current color</string>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -82,6 +82,12 @@
|
||||
app:itemDefaultKey="@string/key_root_mode_auto_detect"
|
||||
app:longClickPrompt="@string/description_root_mode_preference" />
|
||||
|
||||
</org.autojs.autojs.theme.preference.ThemeColorPreferenceCategory>
|
||||
|
||||
<org.autojs.autojs.theme.preference.ThemeColorPreferenceCategory
|
||||
app:layout="@layout/preference_category_custom"
|
||||
app:title="@string/text_file_explorer">
|
||||
|
||||
<org.autojs.autojs.ui.settings.HiddenFilesPreference
|
||||
app:layout="@layout/preference_custom"
|
||||
app:key="@string/key_hidden_files"
|
||||
@@ -91,6 +97,15 @@
|
||||
app:itemDefaultKey="@string/default_key_hidden_files"
|
||||
app:longClickPrompt="@string/description_hidden_files_preference" />
|
||||
|
||||
<org.autojs.autojs.ui.settings.FileExtensionsPreference
|
||||
app:layout="@layout/preference_custom"
|
||||
app:key="@string/key_file_extensions"
|
||||
app:title="@string/text_file_extensions_title"
|
||||
app:itemValues="@array/values_file_extensions"
|
||||
app:itemKeys="@array/keys_file_extensions"
|
||||
app:itemDefaultKey="@string/default_key_file_extensions"
|
||||
app:longClickPrompt="@string/description_file_extensions_preference" />
|
||||
|
||||
</org.autojs.autojs.theme.preference.ThemeColorPreferenceCategory>
|
||||
|
||||
<org.autojs.autojs.theme.preference.ThemeColorPreferenceCategory
|
||||
|
||||
Reference in New Issue
Block a user