Compare commits
35
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e1ca09766c | ||
|
|
0aaf3a02bf | ||
|
|
eba0a6e552 | ||
|
|
3cb027a372 | ||
|
|
5217f32a12 | ||
|
|
c8cb6fb509 | ||
|
|
df9df7e914 | ||
|
|
acda5a73e2 | ||
|
|
04360797ad | ||
|
|
bb8083cb2f | ||
|
|
350966b331 | ||
|
|
d0a1af8c51 | ||
|
|
894f532835 | ||
|
|
eb23902450 | ||
|
|
59f2953c94 | ||
|
|
a5e986401c | ||
|
|
182356ee8b | ||
|
|
f96a44a019 | ||
|
|
1297da6d18 | ||
|
|
8814503e06 | ||
|
|
c8a4e0680c | ||
|
|
ed6a1acce8 | ||
|
|
4d37f00af9 | ||
|
|
21c488b6ce | ||
|
|
01e1323e51 | ||
|
|
106f700be4 | ||
|
|
f7b0af78cb | ||
|
|
25d2742273 | ||
|
|
eb6c32bd57 | ||
|
|
398364fa18 | ||
|
|
828d1101af | ||
|
|
3ec041644d | ||
|
|
d97351ad73 | ||
|
|
2b6fedfc8e | ||
|
|
f010d33ca6 |
Generated
+8
-8
@@ -3737,7 +3737,7 @@ dependencies = [
|
||||
"url",
|
||||
"users",
|
||||
"uuid",
|
||||
"webpki-roots 1.0.10",
|
||||
"webpki-roots 1.0.11",
|
||||
"webrtc",
|
||||
"whoami",
|
||||
"x11 2.21.0",
|
||||
@@ -3889,7 +3889,7 @@ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4"
|
||||
[[package]]
|
||||
name = "hwcodec"
|
||||
version = "0.8.0"
|
||||
source = "git+https://github.com/rustdesk-org/hwcodec#febec27e1b40bb9fbbae02e9c59b71ac824b9fe1"
|
||||
source = "git+https://github.com/rustdesk-org/hwcodec#ec38ebaf2454269d4c5668a57e3813c6e5541be7"
|
||||
dependencies = [
|
||||
"bindgen 0.59.2",
|
||||
"cc",
|
||||
@@ -3935,7 +3935,7 @@ dependencies = [
|
||||
"tokio",
|
||||
"tokio-rustls",
|
||||
"tower-service",
|
||||
"webpki-roots 1.0.10",
|
||||
"webpki-roots 1.0.11",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -6930,7 +6930,7 @@ dependencies = [
|
||||
"wasm-bindgen",
|
||||
"wasm-bindgen-futures",
|
||||
"web-sys",
|
||||
"webpki-roots 1.0.10",
|
||||
"webpki-roots 1.0.11",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -7041,7 +7041,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "rust-pulsectl"
|
||||
version = "0.2.12"
|
||||
source = "git+https://github.com/rustdesk-org/pulsectl#aa34dde499aa912a3abc5289cc0b547bd07dd6e2"
|
||||
source = "git+https://github.com/rustdesk-org/pulsectl#d2ec086b5770dce934a66956364d09df8cc9484c"
|
||||
dependencies = [
|
||||
"libpulse-binding",
|
||||
]
|
||||
@@ -9553,14 +9553,14 @@ version = "0.26.11"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "521bc38abb08001b01866da9f51eb7c5d647a19260e00054a8c7fd5f9e57f7a9"
|
||||
dependencies = [
|
||||
"webpki-roots 1.0.10",
|
||||
"webpki-roots 1.0.11",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "webpki-roots"
|
||||
version = "1.0.10"
|
||||
version = "1.0.11"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1c1c8e20c8a38fc7d65abfe74eb7280e4aa667e8eec8bc84996d2874810748d9"
|
||||
checksum = "f5f280bbb2b287bc8e7de7e3852945a0ff50d1bbcb5ed42b6c7a568c546df171"
|
||||
dependencies = [
|
||||
"rustls-pki-types",
|
||||
]
|
||||
|
||||
@@ -2,7 +2,12 @@
|
||||
fn build_windows() {
|
||||
let file = "src/platform/windows.cc";
|
||||
let file2 = "src/platform/windows_delete_test_cert.cc";
|
||||
cc::Build::new().file(file).file(file2).compile("windows");
|
||||
let mut build = cc::Build::new();
|
||||
if !cfg!(feature = "flutter") {
|
||||
build.cpp(true).std("c++17").define("RUSTDESK_SCITER", None);
|
||||
println!("cargo:rerun-if-changed=flutter/windows/runner/service_control.h");
|
||||
}
|
||||
build.file(file).file(file2).compile("windows");
|
||||
println!("cargo:rustc-link-lib=WtsApi32");
|
||||
println!("cargo:rerun-if-changed={}", file);
|
||||
println!("cargo:rerun-if-changed={}", file2);
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.carriez.flutter_hbb
|
||||
|
||||
import android.os.ParcelFileDescriptor
|
||||
import org.json.JSONObject
|
||||
import java.io.IOException
|
||||
import java.util.UUID
|
||||
import java.util.concurrent.ConcurrentHashMap
|
||||
|
||||
internal class DocumentDescriptors {
|
||||
private val descriptors = ConcurrentHashMap<String, ParcelFileDescriptor>()
|
||||
|
||||
fun open(descriptor: ParcelFileDescriptor): JSONObject {
|
||||
val id = UUID.randomUUID().toString()
|
||||
try {
|
||||
// Only detach the duplicate: the original carries the provider's close/error channel.
|
||||
val duplicate = ParcelFileDescriptor.dup(descriptor.fileDescriptor)
|
||||
descriptors[id] = descriptor
|
||||
return JSONObject().put("fd", duplicate.detachFd()).put("descriptor", id)
|
||||
} catch (error: Exception) {
|
||||
descriptors.remove(id)
|
||||
try {
|
||||
descriptor.closeWithError(error.message ?: "Unable to open document")
|
||||
} catch (closeError: Exception) {
|
||||
error.addSuppressed(closeError)
|
||||
}
|
||||
throw error
|
||||
}
|
||||
}
|
||||
|
||||
fun close(request: JSONObject): Boolean {
|
||||
val descriptor = descriptors.remove(request.getString("descriptor"))
|
||||
?: throw IOException("Document descriptor was already closed")
|
||||
val error = request.optString("error", "")
|
||||
if (error.isNotEmpty()) {
|
||||
descriptor.closeWithError(error)
|
||||
} else {
|
||||
descriptor.use { if (it.canDetectErrors()) it.checkError() }
|
||||
}
|
||||
return true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,261 @@
|
||||
package com.carriez.flutter_hbb
|
||||
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.net.Uri
|
||||
import android.os.ParcelFileDescriptor
|
||||
import android.provider.DocumentsContract
|
||||
import android.provider.DocumentsContract.Document
|
||||
import android.util.Log
|
||||
import java.io.FileNotFoundException
|
||||
import java.io.IOException
|
||||
import java.util.UUID
|
||||
import java.util.concurrent.TimeUnit
|
||||
import java.util.concurrent.locks.ReentrantLock
|
||||
import kotlin.concurrent.withLock
|
||||
|
||||
internal class DocumentLogs(private val context: Context) {
|
||||
private val resolver = context.contentResolver
|
||||
private val prefs = context.getSharedPreferences(DOCUMENT_PREFS, Context.MODE_PRIVATE)
|
||||
private val appName = context.applicationInfo.loadLabel(context.packageManager).toString()
|
||||
private val appDirectoryId = "$PARENT_ID/$appName"
|
||||
private val directoryId = "$appDirectoryId/Logs"
|
||||
val directoryPath = directoryId.substringAfter(':')
|
||||
private var output: ParcelFileDescriptor.AutoCloseOutputStream? = null
|
||||
private var written = 0L
|
||||
private var openedDay = 0L
|
||||
private var failure: Exception? = null
|
||||
private val lock = ReentrantLock()
|
||||
|
||||
init {
|
||||
setEnabled(grant() != null)
|
||||
}
|
||||
|
||||
@androidx.annotation.Keep
|
||||
private external fun setEnabled(enabled: Boolean)
|
||||
|
||||
private fun grant(): Uri? = prefs.getString(LOG_GRANT, null)?.let(Uri::parse)
|
||||
|
||||
fun hasPermission(): Boolean {
|
||||
val uri = grant() ?: return false
|
||||
if (!isLogGrant(uri)) return false
|
||||
return resolver.persistedUriPermissions.any {
|
||||
it.uri == uri && it.isReadPermission && it.isWritePermission
|
||||
}
|
||||
}
|
||||
|
||||
private fun isLogGrant(uri: Uri): Boolean =
|
||||
uri.authority == AUTHORITY && DocumentsContract.isTreeUri(uri) &&
|
||||
DocumentsContract.getTreeDocumentId(uri) in listOf(PARENT_ID, appDirectoryId, directoryId)
|
||||
|
||||
private fun isDirectory(uri: Uri): Boolean = try {
|
||||
resolver.query(uri, arrayOf(Document.COLUMN_MIME_TYPE), null, null, null)?.use {
|
||||
it.moveToFirst() && it.getString(it.getColumnIndexOrThrow(
|
||||
Document.COLUMN_MIME_TYPE)) == Document.MIME_TYPE_DIR
|
||||
} ?: false
|
||||
} catch (_: FileNotFoundException) {
|
||||
false
|
||||
}
|
||||
|
||||
private fun containsDirectory(grant: Uri, parentId: String, id: String): Boolean {
|
||||
val children = DocumentsContract.buildChildDocumentsUriUsingTree(grant, parentId)
|
||||
val columns = arrayOf(Document.COLUMN_DOCUMENT_ID, Document.COLUMN_MIME_TYPE)
|
||||
return resolver.query(children, columns, null, null, null)?.use { cursor ->
|
||||
checkDocumentListing(cursor, "Unable to list ${parentId.substringAfter(':')}",
|
||||
"${parentId.substringAfter(':')} is still loading")
|
||||
while (cursor.moveToNext()) {
|
||||
if (cursor.getString(cursor.getColumnIndexOrThrow(Document.COLUMN_DOCUMENT_ID)) != id) continue
|
||||
check(cursor.getString(cursor.getColumnIndexOrThrow(Document.COLUMN_MIME_TYPE)) ==
|
||||
Document.MIME_TYPE_DIR) { "${id.substringAfter(':')} is not a directory" }
|
||||
return@use true
|
||||
}
|
||||
false
|
||||
} ?: throw IOException("Unable to list ${parentId.substringAfter(':')}")
|
||||
}
|
||||
|
||||
private fun ensureDirectory(grant: Uri): Uri {
|
||||
checkDocumentName(appName)
|
||||
val rootId = DocumentsContract.getTreeDocumentId(grant)
|
||||
var parent = DocumentsContract.buildDocumentUriUsingTree(grant, rootId)
|
||||
check(isDirectory(parent)) { "The authorized log folder is unavailable" }
|
||||
val children = when (rootId) {
|
||||
PARENT_ID -> listOf(appDirectoryId, directoryId)
|
||||
appDirectoryId -> listOf(directoryId)
|
||||
directoryId -> emptyList()
|
||||
else -> throw IOException("The selected folder does not contain $directoryPath")
|
||||
}
|
||||
for (id in children) {
|
||||
val child = DocumentsContract.buildDocumentUriUsingTree(grant, id)
|
||||
if (!containsDirectory(grant, DocumentsContract.getDocumentId(parent), id)) {
|
||||
closeOutput()
|
||||
val created = DocumentsContract.createDocument(
|
||||
resolver, parent, Document.MIME_TYPE_DIR, id.substringAfterLast('/'))
|
||||
?: throw IOException("Unable to create ${id.substringAfter(':')}")
|
||||
check(DocumentsContract.getDocumentId(created) == id) {
|
||||
"${id.substringAfter(':')} is not available as a directory"
|
||||
}
|
||||
}
|
||||
parent = child
|
||||
}
|
||||
return parent
|
||||
}
|
||||
|
||||
fun select(uri: Uri, flags: Int) = lock.withLock {
|
||||
require(isLogGrant(uri)) {
|
||||
"Please select Android → media."
|
||||
}
|
||||
val permissions = flags and GRANT_FLAGS
|
||||
require(permissions == GRANT_FLAGS) { "Read and write access is required for logs" }
|
||||
setEnabled(false)
|
||||
resolver.takePersistableUriPermission(uri, permissions)
|
||||
ensureDirectory(uri)
|
||||
closeOutput()
|
||||
check(prefs.edit().putString(LOG_GRANT, uri.toString()).commit()) {
|
||||
"Unable to remember the log directory"
|
||||
}
|
||||
check(ensureReady()) { "Log directory access was revoked" }
|
||||
}
|
||||
|
||||
fun ensureReady(): Boolean = lock.withLock {
|
||||
setEnabled(false)
|
||||
if (!hasPermission()) return false
|
||||
val uri = grant() ?: return false
|
||||
val root = DocumentsContract.buildDocumentUriUsingTree(uri, DocumentsContract.getTreeDocumentId(uri))
|
||||
if (!isDirectory(root)) return false
|
||||
ensureDirectory(uri)
|
||||
failure = null
|
||||
if (output == null) openNext(uri)
|
||||
setEnabled(true)
|
||||
return true
|
||||
}
|
||||
|
||||
fun write(message: String): Boolean {
|
||||
if (!lock.tryLock()) return false
|
||||
return try {
|
||||
writeLocked(message)
|
||||
} finally {
|
||||
lock.unlock()
|
||||
}
|
||||
}
|
||||
|
||||
private fun writeLocked(message: String): Boolean {
|
||||
val uri = grant() ?: return false
|
||||
failure?.let { throw IOException("File logging stopped: ${it.message}", it) }
|
||||
try {
|
||||
if (output == null && !hasPermission()) {
|
||||
throw IOException("Log directory access was revoked")
|
||||
}
|
||||
if (output == null || written >= MAX_LOG_BYTES || openedDay != currentDay()) {
|
||||
openNext(uri)
|
||||
}
|
||||
val bytes = message.toByteArray(Charsets.UTF_8)
|
||||
val stream = output ?: throw IOException("The log file is not open")
|
||||
stream.write(bytes)
|
||||
written += bytes.size
|
||||
return true
|
||||
} catch (error: Exception) {
|
||||
setEnabled(false)
|
||||
failure = error
|
||||
try {
|
||||
closeOutput()
|
||||
} catch (closeError: Exception) {
|
||||
error.addSuppressed(closeError)
|
||||
}
|
||||
Log.e("DocumentLogs", "File logging stopped", error)
|
||||
throw error
|
||||
}
|
||||
}
|
||||
|
||||
private fun closeOutput() {
|
||||
val stream = output
|
||||
output = null
|
||||
stream?.close()
|
||||
}
|
||||
|
||||
private fun openNext(grant: Uri) {
|
||||
closeOutput()
|
||||
val name = "rustdesk-${System.currentTimeMillis()}-${UUID.randomUUID()}.txt"
|
||||
val document = DocumentsContract.createDocument(
|
||||
resolver, ensureDirectory(grant), "text/plain", name)
|
||||
?: throw IOException("Unable to create a log file")
|
||||
try {
|
||||
val descriptor = resolver.openFileDescriptor(document, "w")
|
||||
?: throw IOException("Unable to open the log file")
|
||||
output = ParcelFileDescriptor.AutoCloseOutputStream(descriptor)
|
||||
} catch (error: Exception) {
|
||||
try {
|
||||
if (!DocumentsContract.deleteDocument(resolver, document)) {
|
||||
throw IOException("Unable to remove the unopened log file")
|
||||
}
|
||||
} catch (cleanupError: Exception) {
|
||||
error.addSuppressed(cleanupError)
|
||||
}
|
||||
throw error
|
||||
}
|
||||
written = 0L
|
||||
openedDay = currentDay()
|
||||
val logs = files(grant).sortedBy { it.second }
|
||||
for ((uri, _) in logs.filter { it.first != document }
|
||||
.take((logs.size - MAX_LOG_FILES).coerceAtLeast(0))) {
|
||||
try {
|
||||
if (!DocumentsContract.deleteDocument(resolver, uri)) {
|
||||
throw IOException("Unable to remove an expired log file")
|
||||
}
|
||||
} catch (error: Exception) {
|
||||
Log.w("DocumentLogs", "Unable to remove an expired log file", error)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun files(grant: Uri): List<Pair<Uri, String>> {
|
||||
val children = DocumentsContract.buildChildDocumentsUriUsingTree(grant, directoryId)
|
||||
val columns = arrayOf(Document.COLUMN_DOCUMENT_ID, Document.COLUMN_DISPLAY_NAME,
|
||||
Document.COLUMN_MIME_TYPE)
|
||||
return resolver.query(children, columns, null, null, null)?.use { cursor ->
|
||||
checkDocumentListing(cursor, "Unable to list logs", "The log directory is still loading")
|
||||
val entries = mutableListOf<Pair<Uri, String>>()
|
||||
while (cursor.moveToNext()) {
|
||||
if (cursor.getString(cursor.getColumnIndexOrThrow(Document.COLUMN_MIME_TYPE)) ==
|
||||
Document.MIME_TYPE_DIR) continue
|
||||
val name = cursor.getString(cursor.getColumnIndexOrThrow(Document.COLUMN_DISPLAY_NAME))
|
||||
if (!LOG_NAME.matches(name)) continue
|
||||
val id = cursor.getString(cursor.getColumnIndexOrThrow(Document.COLUMN_DOCUMENT_ID))
|
||||
entries.add(DocumentsContract.buildDocumentUriUsingTree(grant, id) to name)
|
||||
}
|
||||
entries
|
||||
} ?: throw IOException("Unable to list logs")
|
||||
}
|
||||
|
||||
fun exportTo(destination: Uri): Int {
|
||||
val uri = grant() ?: return 0
|
||||
check(hasPermission()) { "Log directory access was revoked" }
|
||||
val parent = DocumentsContract.buildDocumentUriUsingTree(
|
||||
destination, DocumentsContract.getTreeDocumentId(destination))
|
||||
val logs = files(uri)
|
||||
for ((source, name) in logs) {
|
||||
val target = DocumentsContract.createDocument(resolver, parent, "text/plain", name)
|
||||
?: throw IOException("Unable to create an exported log")
|
||||
val input = resolver.openInputStream(source)
|
||||
?: throw IOException("Unable to read log $name")
|
||||
input.use {
|
||||
val output = resolver.openOutputStream(target, "w")
|
||||
?: throw IOException("Unable to write log $name")
|
||||
output.use { destinationStream -> it.copyTo(destinationStream) }
|
||||
}
|
||||
}
|
||||
return logs.size
|
||||
}
|
||||
|
||||
private fun currentDay(): Long = System.currentTimeMillis() / TimeUnit.DAYS.toMillis(1)
|
||||
|
||||
companion object {
|
||||
const val AUTHORITY = "com.android.externalstorage.documents"
|
||||
const val PARENT_ID = "primary:Android/media"
|
||||
private const val LOG_GRANT = "log-folder"
|
||||
private const val GRANT_FLAGS = Intent.FLAG_GRANT_READ_URI_PERMISSION or
|
||||
Intent.FLAG_GRANT_WRITE_URI_PERMISSION
|
||||
private const val MAX_LOG_BYTES = 16L * 1024 * 1024
|
||||
private const val MAX_LOG_FILES = 90
|
||||
private val LOG_NAME = Regex("rustdesk-[0-9]+-[0-9a-f-]{36}\\.txt")
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,143 @@
|
||||
package com.carriez.flutter_hbb
|
||||
|
||||
import android.app.Activity
|
||||
import android.content.Intent
|
||||
import android.os.Build
|
||||
import android.provider.DocumentsContract
|
||||
import io.flutter.plugin.common.MethodCall
|
||||
import io.flutter.plugin.common.MethodChannel
|
||||
import kotlin.concurrent.thread
|
||||
|
||||
internal class DocumentPicker(private val activity: Activity) {
|
||||
private var pending: Pair<MethodChannel.Result, Boolean>? = null
|
||||
private var pendingLogFolder: MethodChannel.Result? = null
|
||||
private val storage = (activity.application as MainApplication).documentStorage
|
||||
|
||||
fun handle(call: MethodCall, result: MethodChannel.Result): Boolean {
|
||||
when (call.method) {
|
||||
"document_require_log_folder" ->
|
||||
requireLogFolder(result, call.argument<Boolean>("checkOnly") == true)
|
||||
"document_workspace" -> if (call.argument<Boolean>("share") == true) {
|
||||
run(result) { storage.shareWorkspace() }
|
||||
} else {
|
||||
result.success((activity.getExternalFilesDir(null) ?: activity.filesDir).path)
|
||||
}
|
||||
"document_folder" -> pick(result, call.argument<Boolean>("share") == true)
|
||||
else -> return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
private fun pick(result: MethodChannel.Result, share: Boolean) {
|
||||
if (pending != null || pendingLogFolder != null) {
|
||||
result.error("picker_in_progress", "Another document picker is already open", null)
|
||||
return
|
||||
}
|
||||
try {
|
||||
val intent = treePickerIntent("primary:Documents")
|
||||
pending = result to share
|
||||
activity.startActivityForResult(intent, REQUEST_DOCUMENT)
|
||||
} catch (error: Exception) {
|
||||
pending = null
|
||||
result.error("picker_unavailable", error.message, null)
|
||||
}
|
||||
}
|
||||
|
||||
fun onResult(requestCode: Int, resultCode: Int, data: Intent?): Boolean {
|
||||
if (requestCode == REQUEST_LOG_FOLDER) {
|
||||
val result = pendingLogFolder ?: return true
|
||||
pendingLogFolder = null
|
||||
if (resultCode != Activity.RESULT_OK || data?.data == null) {
|
||||
result.success(false)
|
||||
} else {
|
||||
run(result) {
|
||||
storage.logs.select(requireNotNull(data.data), data.flags)
|
||||
true
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
if (requestCode != REQUEST_DOCUMENT) return false
|
||||
val (result, share) = pending ?: return true
|
||||
pending = null
|
||||
if (resultCode != Activity.RESULT_OK || data == null) {
|
||||
result.success(null)
|
||||
return true
|
||||
}
|
||||
run(result) {
|
||||
storage.select(requireNotNull(data.data), data.flags, share).toString()
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
fun close() {
|
||||
pendingLogFolder?.error("picker_closed", "Log directory selection was interrupted", null)
|
||||
pendingLogFolder = null
|
||||
pending?.first?.error("picker_closed", "Document selection was interrupted", null)
|
||||
pending = null
|
||||
}
|
||||
|
||||
private fun run(result: MethodChannel.Result, action: () -> Any?) {
|
||||
thread {
|
||||
try {
|
||||
val value = action()
|
||||
activity.runOnUiThread { result.success(value) }
|
||||
} catch (error: Exception) {
|
||||
activity.runOnUiThread { result.error("document_failed", error.message, null) }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun requireLogFolder(result: MethodChannel.Result, checkOnly: Boolean) {
|
||||
if (pending != null || pendingLogFolder != null) {
|
||||
result.error("picker_in_progress", "Another document picker is already open", null)
|
||||
return
|
||||
}
|
||||
pendingLogFolder = result
|
||||
thread {
|
||||
val ready = runCatching { storage.logs.ensureReady() }
|
||||
activity.runOnUiThread { completeLogFolderCheck(result, ready, checkOnly) }
|
||||
}
|
||||
}
|
||||
|
||||
private fun completeLogFolderCheck(
|
||||
result: MethodChannel.Result, ready: Result<Boolean>, checkOnly: Boolean
|
||||
) {
|
||||
if (pendingLogFolder !== result) return
|
||||
ready.fold(onSuccess = {
|
||||
if (it || checkOnly) {
|
||||
pendingLogFolder = null
|
||||
result.success(it)
|
||||
} else {
|
||||
pickLogFolder(result)
|
||||
}
|
||||
}, onFailure = {
|
||||
pendingLogFolder = null
|
||||
result.error("log_directory_failed", it.message, null)
|
||||
})
|
||||
}
|
||||
|
||||
private fun treePickerIntent(initialId: String): Intent =
|
||||
Intent(Intent.ACTION_OPEN_DOCUMENT_TREE).apply {
|
||||
addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION or
|
||||
Intent.FLAG_GRANT_WRITE_URI_PERMISSION or Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION)
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
putExtra(DocumentsContract.EXTRA_INITIAL_URI,
|
||||
DocumentsContract.buildDocumentUri(DocumentLogs.AUTHORITY, initialId))
|
||||
}
|
||||
}
|
||||
|
||||
private fun pickLogFolder(result: MethodChannel.Result) {
|
||||
try {
|
||||
activity.startActivityForResult(treePickerIntent(DocumentLogs.PARENT_ID), REQUEST_LOG_FOLDER)
|
||||
} catch (error: Exception) {
|
||||
pendingLogFolder = null
|
||||
result.error("picker_unavailable", error.message, null)
|
||||
}
|
||||
}
|
||||
|
||||
companion object {
|
||||
private const val REQUEST_DOCUMENT = 4251
|
||||
private const val REQUEST_LOG_FOLDER = 4252
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,124 @@
|
||||
package com.carriez.flutter_hbb
|
||||
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.database.Cursor
|
||||
import android.net.Uri
|
||||
import android.provider.DocumentsContract
|
||||
import android.util.Base64
|
||||
import org.json.JSONObject
|
||||
import java.io.IOException
|
||||
|
||||
private const val TREE_ROOT = "/@rustdesk/tree/"
|
||||
internal const val DOCUMENT_PREFS = "document-storage"
|
||||
internal const val DEFAULT_LOCATION = "default-location"
|
||||
private const val URI_FLAGS = Base64.URL_SAFE or Base64.NO_WRAP or Base64.NO_PADDING
|
||||
private const val MIN_LOCATION_COMPONENTS = 2
|
||||
|
||||
internal fun documentRoot(uri: Uri): String =
|
||||
"$TREE_ROOT${Base64.encodeToString(uri.toString().toByteArray(Charsets.UTF_8), URI_FLAGS)}"
|
||||
|
||||
internal fun checkDocumentName(name: String): String {
|
||||
require(name.isNotEmpty() && name != "." && name != ".." &&
|
||||
!name.contains('/') && !name.contains('\\') && !name.contains('\u0000')) {
|
||||
"Invalid document name"
|
||||
}
|
||||
return name
|
||||
}
|
||||
|
||||
internal fun checkDocumentListing(cursor: Cursor, errorMessage: String, loadingMessage: String) {
|
||||
val extras = cursor.extras
|
||||
extras.getString(DocumentsContract.EXTRA_ERROR)?.let {
|
||||
throw IOException("$errorMessage: $it")
|
||||
}
|
||||
if (extras.getBoolean(DocumentsContract.EXTRA_LOADING)) {
|
||||
throw IOException(loadingMessage)
|
||||
}
|
||||
}
|
||||
|
||||
internal fun documentEntry(name: String, directory: Boolean, size: Long = 0): JSONObject =
|
||||
JSONObject().put("name", name).put("directory", directory)
|
||||
.put("size", size).put("modified", 0)
|
||||
|
||||
internal class DocumentStorage(private val context: Context) {
|
||||
private val prefs = context.getSharedPreferences(DOCUMENT_PREFS, Context.MODE_PRIVATE)
|
||||
private val descriptors = DocumentDescriptors()
|
||||
val logs = DocumentLogs(context)
|
||||
|
||||
fun home(): String? = prefs.getString(DEFAULT_LOCATION, null)
|
||||
|
||||
fun shareWorkspace(): String {
|
||||
check(prefs.edit().remove(DEFAULT_LOCATION).commit()) {
|
||||
"Unable to remember the shared folder"
|
||||
}
|
||||
return (context.getExternalFilesDir(null) ?: context.filesDir).path
|
||||
}
|
||||
|
||||
fun select(uri: Uri, flags: Int, share: Boolean): JSONObject {
|
||||
require(uri.scheme == "content") { "Invalid document selection" }
|
||||
val grants = flags and (Intent.FLAG_GRANT_READ_URI_PERMISSION or
|
||||
Intent.FLAG_GRANT_WRITE_URI_PERMISSION)
|
||||
require(grants != 0) { "The selected location has no access grant" }
|
||||
context.contentResolver.takePersistableUriPermission(uri, grants)
|
||||
val root = documentRoot(uri)
|
||||
val backend = DocumentTree(context, uri, descriptors)
|
||||
val name = checkDocumentName(backend.rootName())
|
||||
val path = "$root/$name"
|
||||
if (share) {
|
||||
check(prefs.edit().putString(DEFAULT_LOCATION, path).commit()) {
|
||||
"Unable to remember the shared folder"
|
||||
}
|
||||
}
|
||||
return JSONObject().put("path", path).put("name", name)
|
||||
}
|
||||
|
||||
fun backend(path: String): DocumentTree {
|
||||
require(path.startsWith(TREE_ROOT)) { "Invalid document location" }
|
||||
val parts = path.removePrefix(TREE_ROOT).split('/')
|
||||
require(parts.size >= MIN_LOCATION_COMPONENTS) { "Invalid document location" }
|
||||
parts.forEach(::checkDocumentName)
|
||||
val uri = Uri.parse(String(Base64.decode(parts.first(), URI_FLAGS), Charsets.UTF_8))
|
||||
require(uri.scheme == "content") { "Invalid document URI" }
|
||||
val authorized =
|
||||
context.contentResolver.persistedUriPermissions.any { it.uri == uri && it.isReadPermission }
|
||||
check(authorized) {
|
||||
"Access to this location was revoked. Select it again on the Android device."
|
||||
}
|
||||
return DocumentTree(context, uri, descriptors)
|
||||
}
|
||||
|
||||
fun request(request: String): String = try {
|
||||
JSONObject().put("value", execute(JSONObject(request)) ?: JSONObject.NULL).toString()
|
||||
} catch (error: Exception) {
|
||||
JSONObject().put("error", error.message ?: error.javaClass.simpleName).toString()
|
||||
}
|
||||
|
||||
private fun execute(request: JSONObject): Any? {
|
||||
val operation = request.getString("op")
|
||||
if (operation == "home") return home()
|
||||
if (operation == "log_write") return logs.write(request.getString("message"))
|
||||
if (operation == "close") return descriptors.close(request)
|
||||
val path = request.getString("path")
|
||||
val backend = backend(path)
|
||||
return when (operation) {
|
||||
"allowed" -> true
|
||||
"list" -> backend.list(path)
|
||||
"stat" -> backend.stat(path)
|
||||
"open" -> backend.open(path)
|
||||
else -> mutate(request, backend)
|
||||
}
|
||||
}
|
||||
|
||||
private fun mutate(request: JSONObject, backend: DocumentTree): Any {
|
||||
val path = request.getString("path")
|
||||
return when (val operation = request.getString("op")) {
|
||||
"begin" -> backend.begin(path, request.getBoolean("overwrite"))
|
||||
"finish" -> backend.finish(request.getJSONObject("token")).let { true }
|
||||
"discard" -> backend.discard(request.getJSONObject("token")).let { true }
|
||||
"delete" -> backend.delete(path).let { true }
|
||||
"mkdir" -> backend.mkdir(path).let { true }
|
||||
"rename" -> backend.rename(path, checkDocumentName(request.getString("name"))).let { true }
|
||||
else -> throw IOException("Unsupported document operation: $operation")
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,197 @@
|
||||
package com.carriez.flutter_hbb
|
||||
|
||||
import android.content.Context
|
||||
import android.net.Uri
|
||||
import android.provider.DocumentsContract
|
||||
import android.provider.DocumentsContract.Document
|
||||
import android.webkit.MimeTypeMap
|
||||
import org.json.JSONArray
|
||||
import org.json.JSONObject
|
||||
import java.io.FileNotFoundException
|
||||
import java.io.IOException
|
||||
import java.util.UUID
|
||||
|
||||
internal class DocumentTree(
|
||||
context: Context,
|
||||
private val grant: Uri,
|
||||
private val descriptors: DocumentDescriptors
|
||||
) {
|
||||
private val root = documentRoot(grant)
|
||||
private val resolver = context.contentResolver
|
||||
private val rootUri: Uri get() = DocumentsContract.buildDocumentUriUsingTree(
|
||||
grant, DocumentsContract.getTreeDocumentId(grant))
|
||||
private val projection = arrayOf(Document.COLUMN_DOCUMENT_ID, Document.COLUMN_DISPLAY_NAME,
|
||||
Document.COLUMN_MIME_TYPE, Document.COLUMN_SIZE, Document.COLUMN_LAST_MODIFIED)
|
||||
|
||||
fun rootName(): String = metadata(rootUri)?.getString("name")
|
||||
?: throw FileNotFoundException("The selected document no longer exists")
|
||||
|
||||
private fun metadata(uri: Uri): JSONObject? = resolver.query(uri, projection, null, null, null)?.use {
|
||||
if (!it.moveToFirst()) return@use null
|
||||
val directory = it.getString(MIME_COLUMN) == Document.MIME_TYPE_DIR
|
||||
val size = if (it.isNull(SIZE_COLUMN)) -1 else it.getLong(SIZE_COLUMN)
|
||||
documentEntry(it.getString(NAME_COLUMN), directory, size)
|
||||
.put("modified", it.getLong(MODIFIED_COLUMN) / MILLIS_PER_SECOND).put("uri", uri.toString())
|
||||
} ?: throw IOException("Unable to query the selected document")
|
||||
|
||||
private fun children(uri: Uri): List<Pair<Uri, JSONObject>> {
|
||||
val query = DocumentsContract.buildChildDocumentsUriUsingTree(
|
||||
grant, DocumentsContract.getDocumentId(uri))
|
||||
return resolver.query(query, projection, null, null, null)?.use { cursor ->
|
||||
checkDocumentListing(cursor, "Unable to list the selected folder",
|
||||
"The selected folder is still loading. Try again.")
|
||||
val entries = mutableListOf<Pair<Uri, JSONObject>>()
|
||||
while (cursor.moveToNext()) {
|
||||
val child = DocumentsContract.buildDocumentUriUsingTree(grant, cursor.getString(ID_COLUMN))
|
||||
val name = checkDocumentName(cursor.getString(NAME_COLUMN))
|
||||
val entry = documentEntry(name, cursor.getString(MIME_COLUMN) == Document.MIME_TYPE_DIR,
|
||||
if (cursor.isNull(SIZE_COLUMN)) -1 else cursor.getLong(SIZE_COLUMN))
|
||||
.put("modified", cursor.getLong(MODIFIED_COLUMN) / MILLIS_PER_SECOND)
|
||||
.put("uri", child.toString())
|
||||
entries.add(child to entry)
|
||||
}
|
||||
entries
|
||||
} ?: throw IOException("Unable to list the selected folder")
|
||||
}
|
||||
|
||||
private fun relative(path: String): List<String> {
|
||||
val parts = path.removePrefix("$root/").split('/')
|
||||
require(path.startsWith("$root/") && parts.first() == rootName()) {
|
||||
"The selected document was moved or renamed. Select it again."
|
||||
}
|
||||
parts.forEach(::checkDocumentName)
|
||||
return parts.drop(1)
|
||||
}
|
||||
|
||||
private fun resolve(path: String, createParents: Boolean = false): Uri? {
|
||||
var current = rootUri
|
||||
for (name in relative(path)) {
|
||||
val matches = children(current).filter { it.second.getString("name") == name }
|
||||
check(matches.size <= 1) { "The provider returned multiple documents named $name" }
|
||||
val child = matches.singleOrNull()
|
||||
current = child?.first ?: if (createParents) {
|
||||
val created = DocumentsContract.createDocument(resolver, current, Document.MIME_TYPE_DIR, name)
|
||||
?: throw IOException("Unable to create folder $name")
|
||||
check(metadata(created)?.getString("name") == name) {
|
||||
"The provider cannot preserve folder name: $name"
|
||||
}
|
||||
created
|
||||
} else return null
|
||||
}
|
||||
return current
|
||||
}
|
||||
|
||||
fun uri(path: String): Uri = resolve(path)
|
||||
?: throw FileNotFoundException("Document does not exist: $path")
|
||||
|
||||
fun list(path: String): JSONArray = JSONArray(children(uri(path)).map { it.second })
|
||||
|
||||
fun stat(path: String): JSONObject? = resolve(path)?.let(::metadata)
|
||||
|
||||
fun open(path: String): JSONObject = descriptors.open(
|
||||
resolver.openFileDescriptor(uri(path), "r") ?: throw IOException("Unable to open document"))
|
||||
|
||||
fun begin(path: String, overwrite: Boolean): JSONObject {
|
||||
val original = resolve(path)
|
||||
check(original == null || overwrite) { "Document overwrite requires confirmation" }
|
||||
require(original == null || metadata(original)?.getBoolean("directory") == false) {
|
||||
"Cannot replace a folder with a file"
|
||||
}
|
||||
val parent = resolve(path.substringBeforeLast('/'), true)
|
||||
?: throw FileNotFoundException("Destination folder no longer exists")
|
||||
val name = checkDocumentName(path.substringAfterLast('/'))
|
||||
val temporary = DocumentsContract.createDocument(resolver, parent, mime(name),
|
||||
temporaryName(name, "download"))
|
||||
?: throw IOException("Unable to create the receiving file")
|
||||
try {
|
||||
val descriptor = resolver.openFileDescriptor(temporary, "rw")
|
||||
?: throw IOException("Unable to open the receiving file")
|
||||
return descriptors.open(descriptor).put("uri", temporary.toString())
|
||||
.put("path", path).put("original", original?.toString() ?: JSONObject.NULL)
|
||||
} catch (error: Exception) {
|
||||
try {
|
||||
check(DocumentsContract.deleteDocument(resolver, temporary)) {
|
||||
"Unable to remove the receiving file"
|
||||
}
|
||||
} catch (cleanup: Exception) {
|
||||
error.addSuppressed(cleanup)
|
||||
throw IOException("${error.message ?: error.javaClass.simpleName}; " +
|
||||
"temporary file cleanup failed: ${cleanup.message}", error)
|
||||
}
|
||||
throw error
|
||||
}
|
||||
}
|
||||
|
||||
fun finish(token: JSONObject) {
|
||||
val path = token.getString("path")
|
||||
val name = checkDocumentName(path.substringAfterLast('/'))
|
||||
val original = resolve(path)
|
||||
val expected = if (token.isNull("original")) null else token.getString("original")
|
||||
check(original?.toString() == expected) {
|
||||
"The destination changed during the transfer; the received data was retained"
|
||||
}
|
||||
val backup = original?.let { renameChecked(it, temporaryName(name, "backup")) }
|
||||
try {
|
||||
renameChecked(Uri.parse(token.getString("uri")), name)
|
||||
} catch (error: Exception) {
|
||||
if (backup != null) {
|
||||
try { renameChecked(backup, name) } catch (restore: Exception) {
|
||||
error.addSuppressed(restore)
|
||||
throw IOException("Publishing failed and the original remains in $backup: ${restore.message}", error)
|
||||
}
|
||||
}
|
||||
throw error
|
||||
}
|
||||
if (backup != null && !DocumentsContract.deleteDocument(resolver, backup)) {
|
||||
throw IOException("File saved, but the previous copy could not be removed: $backup")
|
||||
}
|
||||
}
|
||||
|
||||
private fun renameChecked(uri: Uri, name: String): Uri {
|
||||
val renamed = DocumentsContract.renameDocument(resolver, uri, name)
|
||||
?: throw IOException("Unable to publish the received file; the partial file was retained")
|
||||
check(metadata(renamed)?.getString("name") == name) { "The provider changed the saved filename" }
|
||||
return renamed
|
||||
}
|
||||
|
||||
fun discard(token: JSONObject) {
|
||||
check(DocumentsContract.deleteDocument(resolver, Uri.parse(token.getString("uri")))) {
|
||||
"Unable to remove the canceled transfer"
|
||||
}
|
||||
}
|
||||
|
||||
fun delete(path: String) {
|
||||
require(relative(path).isNotEmpty()) { "Cannot delete a shared root" }
|
||||
check(DocumentsContract.deleteDocument(resolver, uri(path))) { "Unable to delete document" }
|
||||
}
|
||||
|
||||
fun mkdir(path: String) {
|
||||
val created = resolve(path, true) ?: throw IOException("Unable to create folder")
|
||||
check(metadata(created)?.getBoolean("directory") == true) { "The destination is not a folder" }
|
||||
}
|
||||
|
||||
fun rename(path: String, name: String) {
|
||||
require(relative(path).isNotEmpty()) { "Cannot rename a shared root" }
|
||||
if (resolve(path.substringBeforeLast('/') + "/" + name) != null) throw IOException(EXISTS_MESSAGE)
|
||||
renameChecked(uri(path), name)
|
||||
}
|
||||
|
||||
companion object {
|
||||
private const val ID_COLUMN = 0
|
||||
private const val NAME_COLUMN = 1
|
||||
private const val MIME_COLUMN = 2
|
||||
private const val SIZE_COLUMN = 3
|
||||
private const val MODIFIED_COLUMN = 4
|
||||
private const val MILLIS_PER_SECOND = 1000L
|
||||
const val EXISTS_MESSAGE = "A file already exists at the destination. Rename the file or select another folder."
|
||||
fun temporaryName(name: String, purpose: String): String {
|
||||
// Providers can append the MIME extension when renaming; preserve it for temporary files.
|
||||
val extension = name.substringAfterLast('.', "").let { if (it.isEmpty()) "" else ".$it" }
|
||||
return ".rustdesk-${UUID.randomUUID()}.$purpose$extension"
|
||||
}
|
||||
|
||||
fun mime(name: String): String = MimeTypeMap.getSingleton()
|
||||
.getMimeTypeFromExtension(name.substringAfterLast('.', "").lowercase())
|
||||
?: "application/octet-stream"
|
||||
}
|
||||
}
|
||||
@@ -50,6 +50,15 @@ const val WHEEL_BUTTON_UP = 34
|
||||
const val WHEEL_DOWN = 523331
|
||||
const val WHEEL_UP = 963
|
||||
|
||||
// src/common.rs MOUSE_TYPE_WHEEL: the controller sends a wheel tick as a
|
||||
// MouseEvent with these type bits and the scroll delta in y (y < 0 = down).
|
||||
const val MOUSE_TYPE_WHEEL = 3
|
||||
|
||||
// Wheel-tick travel for MOUSE_TYPE_WHEEL events. Three quarters of the legacy
|
||||
// WHEEL_STEP; tuned on real devices during review (the full 120px felt too
|
||||
// far per tick).
|
||||
const val MOUSE_WHEEL_STEP = 90
|
||||
|
||||
const val TOUCH_SCALE_START = 1
|
||||
const val TOUCH_SCALE = 2
|
||||
const val TOUCH_SCALE_END = 3
|
||||
@@ -102,6 +111,12 @@ class InputService : AccessibilityService() {
|
||||
|
||||
private val volumeController: VolumeController by lazy { VolumeController(applicationContext.getSystemService(AUDIO_SERVICE) as AudioManager) }
|
||||
|
||||
/**
|
||||
* Handles a remote mouse event on the gesture path. [mask] is the
|
||||
* button/phase mask of the mouse protocol ([MOUSE_TYPE_WHEEL] ticks carry
|
||||
* the scroll delta in [_y] instead of a position), x/y the screen-space
|
||||
* position. Requires API 24 for the gesture APIs.
|
||||
*/
|
||||
@RequiresApi(Build.VERSION_CODES.N)
|
||||
fun onMouseInput(mask: Int, _x: Int, _y: Int) {
|
||||
val x = max(0, _x)
|
||||
@@ -184,6 +199,38 @@ class InputService : AccessibilityService() {
|
||||
return
|
||||
}
|
||||
|
||||
// The controller sends a wheel tick as a MouseEvent with the type bits
|
||||
// MOUSE_TYPE_WHEEL (src/common.rs) and the scroll delta in _y
|
||||
// (y < 0 = wheel down); the WHEEL_DOWN/WHEEL_UP masks below are legacy
|
||||
// values that current controllers never send. Gated to API 24+ like
|
||||
// the rest of the gesture path - below that, legacy devices take the
|
||||
// Shizuku backend or a no-op, not this class.
|
||||
if (mask == MOUSE_TYPE_WHEEL && Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
||||
// A horizontal tick (the controller sends y = 0 when the
|
||||
// horizontal delta dominates) or a delta truncated to zero is not
|
||||
// a vertical swipe.
|
||||
if (_y == 0) {
|
||||
return
|
||||
}
|
||||
if (mouseY < MOUSE_WHEEL_STEP) {
|
||||
return
|
||||
}
|
||||
val path = Path()
|
||||
path.moveTo(mouseX.toFloat(), mouseY.toFloat())
|
||||
val deltaY = if (_y < 0) -MOUSE_WHEEL_STEP else MOUSE_WHEEL_STEP
|
||||
path.lineTo(mouseX.toFloat(), (mouseY + deltaY).toFloat())
|
||||
val stroke = GestureDescription.StrokeDescription(
|
||||
path,
|
||||
0,
|
||||
WHEEL_DURATION
|
||||
)
|
||||
val builder = GestureDescription.Builder()
|
||||
builder.addStroke(stroke)
|
||||
wheelActionsQueue.offer(builder.build())
|
||||
consumeWheelActions()
|
||||
return
|
||||
}
|
||||
|
||||
if (mask == WHEEL_DOWN) {
|
||||
if (mouseY < WHEEL_STEP) {
|
||||
return
|
||||
|
||||
@@ -63,7 +63,8 @@ class MainActivity : FlutterActivity() {
|
||||
data class ExportFiles(
|
||||
val sources: List<File>,
|
||||
val rejected: Int,
|
||||
val result: MethodChannel.Result
|
||||
val result: MethodChannel.Result,
|
||||
val documentLogs: Boolean = false
|
||||
) : PendingPicker()
|
||||
}
|
||||
|
||||
@@ -73,6 +74,7 @@ class MainActivity : FlutterActivity() {
|
||||
)
|
||||
|
||||
private var pendingPicker: PendingPicker? = null
|
||||
private val documentPicker by lazy { DocumentPicker(this) }
|
||||
|
||||
private var isAudioStart = false
|
||||
private val audioRecordHandle = AudioRecordHandle(this, { false }, { isAudioStart })
|
||||
@@ -127,6 +129,7 @@ class MainActivity : FlutterActivity() {
|
||||
|
||||
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
|
||||
super.onActivityResult(requestCode, resultCode, data)
|
||||
if (documentPicker.onResult(requestCode, resultCode, data)) return
|
||||
if (requestCode == REQ_IMPORT_FILES) {
|
||||
val pending = pendingPicker as? PendingPicker.ImportFiles ?: return
|
||||
pendingPicker = null
|
||||
@@ -223,6 +226,14 @@ class MainActivity : FlutterActivity() {
|
||||
Log.e(logTag, "Failed to export selected files", e)
|
||||
failed += pending.sources.size - processed
|
||||
}
|
||||
if (pending.documentLogs) {
|
||||
try {
|
||||
exported += (application as MainApplication).documentStorage.logs.exportTo(treeUri)
|
||||
} catch (error: Exception) {
|
||||
Log.e(logTag, "Failed to export document logs", error)
|
||||
failed++
|
||||
}
|
||||
}
|
||||
runOnUiThread {
|
||||
pending.result.success(mapOf("exported" to exported, "failed" to failed))
|
||||
}
|
||||
@@ -243,6 +254,7 @@ class MainActivity : FlutterActivity() {
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
documentPicker.close()
|
||||
Log.e(logTag, "onDestroy")
|
||||
// The process can outlive the UI whenever something keeps it alive:
|
||||
// MainService, or the accessibility InputService on its own. Only the
|
||||
@@ -275,6 +287,7 @@ class MainActivity : FlutterActivity() {
|
||||
|
||||
private fun initFlutterChannel(flutterMethodChannel: MethodChannel) {
|
||||
flutterMethodChannel.setMethodCallHandler { call, result ->
|
||||
if (documentPicker.handle(call, result)) return@setMethodCallHandler
|
||||
// make sure result will be invoked, otherwise flutter will await forever
|
||||
when (call.method) {
|
||||
"init_service" -> {
|
||||
@@ -614,19 +627,22 @@ class MainActivity : FlutterActivity() {
|
||||
}
|
||||
EXPORT_FILES -> {
|
||||
val paths = (call.arguments as? Map<*, *>)?.get("paths") as? List<*>
|
||||
if (paths.isNullOrEmpty()) {
|
||||
val documentLogs = (call.arguments as? Map<*, *>)?.get("documentLogs") == true
|
||||
if (paths == null || (paths.isEmpty() && !documentLogs)) {
|
||||
result.error("invalid_source", "The selected files are outside app-scoped storage", null)
|
||||
} else {
|
||||
val sources = paths.mapNotNull {
|
||||
(it as? String)?.let(::canonicalExportSource)
|
||||
}
|
||||
val rejected = paths.size - sources.size
|
||||
if (sources.isEmpty()) {
|
||||
if (sources.isEmpty() && (!documentLogs ||
|
||||
!(application as MainApplication).documentStorage.logs.hasPermission())) {
|
||||
result.success(mapOf("exported" to 0, "failed" to rejected))
|
||||
} else if (pendingPicker != null) {
|
||||
result.error("picker_in_progress", "Another document picker is already open", null)
|
||||
} else {
|
||||
pendingPicker = PendingPicker.ExportFiles(sources, rejected, result)
|
||||
pendingPicker = PendingPicker.ExportFiles(
|
||||
sources, rejected, result, documentLogs = documentLogs)
|
||||
try {
|
||||
startActivityForResult(
|
||||
Intent(Intent.ACTION_OPEN_DOCUMENT_TREE).apply {
|
||||
|
||||
@@ -5,6 +5,11 @@ import android.util.Log
|
||||
import ffi.FFI
|
||||
|
||||
class MainApplication : Application() {
|
||||
internal val documentStorage by lazy { DocumentStorage(this) }
|
||||
|
||||
@androidx.annotation.Keep
|
||||
fun rustDocumentStorage(request: String): String = documentStorage.request(request)
|
||||
|
||||
companion object {
|
||||
private const val TAG = "MainApplication"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import UIKit
|
||||
import Flutter
|
||||
import AVFoundation
|
||||
|
||||
@main
|
||||
@objc class AppDelegate: FlutterAppDelegate {
|
||||
@@ -8,6 +9,12 @@ import Flutter
|
||||
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
|
||||
) -> Bool {
|
||||
GeneratedPluginRegistrant.register(with: self)
|
||||
do {
|
||||
// Mix remote audio with other apps while still respecting silent mode.
|
||||
try AVAudioSession.sharedInstance().setCategory(.ambient)
|
||||
} catch {
|
||||
NSLog("Failed to configure audio mixing: %@", error.localizedDescription)
|
||||
}
|
||||
dummyMethodToEnforceBundling();
|
||||
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
|
||||
}
|
||||
|
||||
@@ -2278,9 +2278,12 @@ void changeBot({Function()? callback}) async {
|
||||
|
||||
void change2fa({Function()? callback}) async {
|
||||
if (bind.mainHasValid2FaSync()) {
|
||||
await bind.mainSetOption(key: "2fa", value: "");
|
||||
await bind.mainClearTrustedDevices();
|
||||
callback?.call();
|
||||
try {
|
||||
await bind.mainSetOption(key: "2fa", value: "");
|
||||
callback?.call();
|
||||
} catch (error) {
|
||||
showToast(error.toString());
|
||||
}
|
||||
return;
|
||||
}
|
||||
var new2fa = (await bind.mainGenerate2Fa());
|
||||
@@ -2795,23 +2798,48 @@ void confrimDeleteTrustedDevicesDialog(
|
||||
CommonConfirmDialog(gFFI.dialogManager, '${translate('Confirm Delete')}?',
|
||||
() async {
|
||||
if (selectedDevices.isEmpty) return;
|
||||
if (selectedDevices.length == trustedDevices.length) {
|
||||
await bind.mainClearTrustedDevices();
|
||||
trustedDevices.clear();
|
||||
selectedDevices.clear();
|
||||
} else {
|
||||
final json = jsonEncode(selectedDevices.map((e) => e.toList()).toList());
|
||||
await bind.mainRemoveTrustedDevices(json: json);
|
||||
trustedDevices.removeWhere((element) {
|
||||
return selectedDevices.contains(element.hwid);
|
||||
});
|
||||
selectedDevices.clear();
|
||||
try {
|
||||
if (selectedDevices.length == trustedDevices.length) {
|
||||
await bind.mainClearTrustedDevices();
|
||||
trustedDevices.clear();
|
||||
selectedDevices.clear();
|
||||
} else {
|
||||
final json = jsonEncode(selectedDevices.map((e) => e.toList()).toList());
|
||||
await bind.mainRemoveTrustedDevices(json: json);
|
||||
trustedDevices.removeWhere((element) {
|
||||
return selectedDevices.contains(element.recordId);
|
||||
});
|
||||
selectedDevices.clear();
|
||||
}
|
||||
} catch (error) {
|
||||
showToast(error.toString());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Future<void> renewTrustedDevice(
|
||||
TrustedDevice device,
|
||||
RxList<TrustedDevice> trustedDevices,
|
||||
RxList<Uint8List> selectedDevices) async {
|
||||
try {
|
||||
final json = jsonEncode([device.recordId.toList()]);
|
||||
await bind.mainRenewTrustedDevices(json: json);
|
||||
final result = await TrustedDevice.get();
|
||||
selectedDevices.clear();
|
||||
trustedDevices.assignAll(result);
|
||||
} catch (error) {
|
||||
showToast(error.toString());
|
||||
}
|
||||
}
|
||||
|
||||
void manageTrustedDeviceDialog() async {
|
||||
RxList<TrustedDevice> trustedDevices = (await TrustedDevice.get()).obs;
|
||||
late final RxList<TrustedDevice> trustedDevices;
|
||||
try {
|
||||
trustedDevices = (await TrustedDevice.get()).obs;
|
||||
} catch (error) {
|
||||
showToast(error.toString());
|
||||
return;
|
||||
}
|
||||
RxList<Uint8List> selectedDevices = RxList.empty();
|
||||
gFFI.dialogManager.show((setState, close, context) {
|
||||
return CustomAlertDialog(
|
||||
@@ -2837,25 +2865,67 @@ void manageTrustedDeviceDialog() async {
|
||||
});
|
||||
}
|
||||
|
||||
Widget trustedDeviceExpiration({
|
||||
required bool enabled,
|
||||
required VoidCallback onChanged,
|
||||
bool showLabel = true,
|
||||
}) {
|
||||
final period = bind.mainGetOptionSync(key: kOptionTrustedDeviceExpiration);
|
||||
const periods = ['1', '7', '30', '90', '0'];
|
||||
const dropdownHeight = 36.0;
|
||||
return Align(
|
||||
alignment: AlignmentDirectional.centerStart,
|
||||
child: Wrap(
|
||||
spacing: 12,
|
||||
runSpacing: 8,
|
||||
crossAxisAlignment: WrapCrossAlignment.center,
|
||||
children: [
|
||||
if (showLabel) Text(translate('Trust duration (days)')),
|
||||
SizedBox(
|
||||
width: isDesktop || isWebDesktop ? 140 : 100,
|
||||
height: dropdownHeight,
|
||||
child: ComboBox(
|
||||
keys: periods,
|
||||
values: ['1', '7', '30', '90', translate('Never')],
|
||||
initialKey: periods.contains(period) ? period : '90',
|
||||
enabled: enabled && !isOptionFixed(kOptionTrustedDeviceExpiration),
|
||||
onChanged: (value) async {
|
||||
try {
|
||||
await bind.mainSetOption(
|
||||
key: kOptionTrustedDeviceExpiration, value: value);
|
||||
} catch (error) {
|
||||
showToast(error.toString());
|
||||
}
|
||||
onChanged();
|
||||
},
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
class TrustedDevice {
|
||||
late final Uint8List hwid;
|
||||
late final Uint8List recordId;
|
||||
late final int time;
|
||||
late final int expiresAt;
|
||||
late final String id;
|
||||
late final String name;
|
||||
late final String platform;
|
||||
|
||||
TrustedDevice.fromJson(Map<String, dynamic> json) {
|
||||
final hwidList = json['hwid'] as List<dynamic>;
|
||||
hwid = Uint8List.fromList(hwidList.cast<int>());
|
||||
final recordIdList = json['record_id'] as List<dynamic>;
|
||||
recordId = Uint8List.fromList(recordIdList.cast<int>());
|
||||
time = json['time'];
|
||||
expiresAt = json['expires_at'];
|
||||
id = json['id'];
|
||||
name = json['name'];
|
||||
platform = json['platform'];
|
||||
}
|
||||
|
||||
String daysRemaining() {
|
||||
final expiry = time + 90 * 24 * 60 * 60 * 1000;
|
||||
final remaining = expiry - DateTime.now().millisecondsSinceEpoch;
|
||||
if (expiresAt == 0) return translate('Never');
|
||||
final remaining = expiresAt - DateTime.now().millisecondsSinceEpoch;
|
||||
if (remaining < 0) {
|
||||
return '0';
|
||||
}
|
||||
@@ -2864,18 +2934,11 @@ class TrustedDevice {
|
||||
|
||||
static Future<List<TrustedDevice>> get() async {
|
||||
final List<TrustedDevice> devices = List.empty(growable: true);
|
||||
try {
|
||||
final devicesJson = await bind.mainGetTrustedDevices();
|
||||
if (devicesJson.isNotEmpty) {
|
||||
final devicesList = json.decode(devicesJson);
|
||||
if (devicesList is List) {
|
||||
for (var device in devicesList) {
|
||||
devices.add(TrustedDevice.fromJson(device));
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
print(e.toString());
|
||||
final devicesJson = await bind.mainGetTrustedDevices();
|
||||
final result = json.decode(devicesJson) as Map<String, dynamic>;
|
||||
final devicesList = result['devices'] as List;
|
||||
for (final device in devicesList) {
|
||||
devices.add(TrustedDevice.fromJson(device));
|
||||
}
|
||||
devices.sort((a, b) => b.time.compareTo(a.time));
|
||||
return devices;
|
||||
@@ -2909,7 +2972,7 @@ Widget trustedDevicesTable(
|
||||
onChanged: (value) {
|
||||
if (value == true) {
|
||||
selectedDevices.clear();
|
||||
selectedDevices.addAll(devices.map((e) => e.hwid));
|
||||
selectedDevices.addAll(devices.map((e) => e.recordId));
|
||||
} else {
|
||||
selectedDevices.clear();
|
||||
}
|
||||
@@ -2923,21 +2986,30 @@ Widget trustedDevicesTable(
|
||||
rows: devices.map((device) {
|
||||
return DataRow(cells: [
|
||||
DataCell(Checkbox(
|
||||
value: selectedDevices.contains(device.hwid),
|
||||
value: selectedDevices.contains(device.recordId),
|
||||
onChanged: (value) {
|
||||
if (value == null) return;
|
||||
if (value) {
|
||||
selectedDevices.remove(device.hwid);
|
||||
selectedDevices.add(device.hwid);
|
||||
selectedDevices.remove(device.recordId);
|
||||
selectedDevices.add(device.recordId);
|
||||
} else {
|
||||
selectedDevices.remove(device.hwid);
|
||||
selectedDevices.remove(device.recordId);
|
||||
}
|
||||
},
|
||||
)),
|
||||
DataCell(Text(device.platform)),
|
||||
DataCell(Text(device.id)),
|
||||
DataCell(Text(device.name)),
|
||||
DataCell(Text(device.daysRemaining())),
|
||||
DataCell(Row(mainAxisSize: MainAxisSize.min, children: [
|
||||
Text(device.daysRemaining()),
|
||||
if (device.expiresAt != 0)
|
||||
IconButton(
|
||||
icon: Icon(Icons.refresh),
|
||||
tooltip: translate('Renew trust'),
|
||||
onPressed: () =>
|
||||
renewTrustedDevice(device, devices, selectedDevices),
|
||||
),
|
||||
])),
|
||||
]);
|
||||
}).toList(),
|
||||
)),
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import 'package:bot_toast/bot_toast.dart';
|
||||
import 'package:flutter/gestures.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_hbb/common/widgets/dialog.dart';
|
||||
@@ -62,6 +63,8 @@ class _PeerCardState extends State<_PeerCard>
|
||||
final PeerTabModel peerTabModel = Provider.of(context);
|
||||
final peer = super.widget.peer;
|
||||
return GestureDetector(
|
||||
// Web card actions have their own semantics; preserve pointer double-clicks.
|
||||
excludeFromSemantics: isWebDesktop,
|
||||
onDoubleTap: peerTabModel.multiSelectionMode
|
||||
? null
|
||||
: () => widget.connect(context, peer.id),
|
||||
@@ -423,7 +426,7 @@ class _PeerCardState extends State<_PeerCard>
|
||||
final PeerTabModel peerTabModel = Provider.of(context);
|
||||
final selected = peerTabModel.isPeerSelected(peer.id);
|
||||
if (peerTabModel.multiSelectionMode) {
|
||||
return Padding(
|
||||
final checkbox = Padding(
|
||||
padding: const EdgeInsets.all(12),
|
||||
child: selected
|
||||
? Icon(
|
||||
@@ -432,7 +435,16 @@ class _PeerCardState extends State<_PeerCard>
|
||||
)
|
||||
: Icon(Icons.check_box_outline_blank),
|
||||
);
|
||||
return isWebDesktop
|
||||
? Semantics(
|
||||
container: true,
|
||||
label: formatID(peer.id),
|
||||
checked: selected,
|
||||
onTap: () => peerTabModel.select(peer),
|
||||
child: checkbox)
|
||||
: checkbox;
|
||||
} else {
|
||||
if (isWebDesktop) return _actionMoreWeb(peer);
|
||||
return InkWell(
|
||||
child: const Padding(
|
||||
padding: EdgeInsets.all(12), child: Icon(Icons.more_vert)),
|
||||
@@ -457,19 +469,27 @@ class _PeerCardState extends State<_PeerCard>
|
||||
color: MyTheme.accent,
|
||||
)
|
||||
: Icon(Icons.check_box_outline_blank);
|
||||
final checkbox = isWebDesktop
|
||||
? Semantics(
|
||||
container: true,
|
||||
label: formatID(peer.id),
|
||||
checked: selected,
|
||||
onTap: () => peerTabModel.select(peer),
|
||||
child: icon)
|
||||
: icon;
|
||||
bool last = peerTabModel.isShiftDown && peer.id == peerTabModel.lastId;
|
||||
double right = isTile ? 4 : 0;
|
||||
if (last) {
|
||||
return Container(
|
||||
decoration: BoxDecoration(
|
||||
border: Border.all(color: MyTheme.accent, width: 1)),
|
||||
child: icon,
|
||||
child: checkbox,
|
||||
).marginOnly(right: right);
|
||||
} else {
|
||||
return icon.marginOnly(right: right);
|
||||
return checkbox.marginOnly(right: right);
|
||||
}
|
||||
} else {
|
||||
return _actionMore(peer);
|
||||
return isWebDesktop ? _actionMoreWeb(peer) : _actionMore(peer);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -482,6 +502,20 @@ class _PeerCardState extends State<_PeerCard>
|
||||
onPointerUp: (_) => _showPeerMenu(peer.id),
|
||||
child: build_more(context));
|
||||
|
||||
Widget _actionMoreWeb(Peer peer) => Semantics(
|
||||
container: true,
|
||||
button: true,
|
||||
label: translate('More'),
|
||||
child: Builder(
|
||||
builder: (context) => build_more(context, onTap: () {
|
||||
final box = context.findRenderObject() as RenderBox;
|
||||
final position =
|
||||
box.localToGlobal(box.size.center(Offset.zero));
|
||||
_menuPos = RelativeRect.fromLTRB(
|
||||
position.dx, position.dy, position.dx, position.dy);
|
||||
_showPeerMenu(peer.id);
|
||||
})));
|
||||
|
||||
bool _shouldBuildPasswordIcon(Peer peer) {
|
||||
if (gFFI.peerTabModel.currentTab != PeerTabIndex.ab.index) return false;
|
||||
if (gFFI.abModel.current.isPersonal()) return false;
|
||||
@@ -1474,11 +1508,12 @@ Widget getOnline(double rightPadding, bool online) {
|
||||
radius: 3, backgroundColor: online ? Colors.green : kColorWarn)));
|
||||
}
|
||||
|
||||
Widget build_more(BuildContext context, {bool invert = false}) {
|
||||
Widget build_more(BuildContext context,
|
||||
{bool invert = false, VoidCallback? onTap}) {
|
||||
final RxBool hover = false.obs;
|
||||
return InkWell(
|
||||
final button = InkWell(
|
||||
borderRadius: BorderRadius.circular(14),
|
||||
onTap: () {},
|
||||
onTap: onTap ?? () {},
|
||||
onHover: (value) => hover.value = value,
|
||||
child: Obx(() => CircleAvatar(
|
||||
radius: 14,
|
||||
@@ -1498,6 +1533,19 @@ Widget build_more(BuildContext context, {bool invert = false}) {
|
||||
.titleLarge
|
||||
?.color
|
||||
?.withOpacity(0.5)))));
|
||||
if (onTap == null) return button;
|
||||
// Serial taps preserve cancellation without waiting for the card's double tap.
|
||||
return RawGestureDetector(
|
||||
excludeFromSemantics: true,
|
||||
gestures: {
|
||||
SerialTapGestureRecognizer:
|
||||
GestureRecognizerFactoryWithHandlers<SerialTapGestureRecognizer>(
|
||||
() => SerialTapGestureRecognizer(
|
||||
allowedButtonsFilter: (buttons) =>
|
||||
buttons == kPrimaryButton),
|
||||
(recognizer) => recognizer.onSerialTapUp = (_) => onTap()),
|
||||
},
|
||||
child: button);
|
||||
}
|
||||
|
||||
class TagPainter extends CustomPainter {
|
||||
|
||||
@@ -21,6 +21,7 @@ import 'package:flutter_svg/flutter_svg.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:pull_down_button/pull_down_button.dart';
|
||||
import 'package:url_launcher/url_launcher_string.dart';
|
||||
|
||||
import '../../common.dart';
|
||||
import '../../models/platform_model.dart';
|
||||
@@ -549,6 +550,28 @@ class _PeerTabPageState extends State<PeerTabPage>
|
||||
});
|
||||
}
|
||||
|
||||
Widget _openWebConsole() {
|
||||
return _hoverAction(
|
||||
context: context,
|
||||
toolTip: translate('ab_web_console_tip'),
|
||||
child: Icon(
|
||||
Icons.open_in_new,
|
||||
size: 18,
|
||||
),
|
||||
onTap: () async {
|
||||
final url = await bind.mainGetApiServer();
|
||||
if (await canLaunchUrlString(url)) {
|
||||
launchUrlString(url);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
bool _showWebConsole(PeerTabModel model) =>
|
||||
model.currentTab == PeerTabIndex.ab.index &&
|
||||
gFFI.userModel.isLogin &&
|
||||
!gFFI.abModel.legacyMode.value &&
|
||||
gFFI.abModel.current.canWrite();
|
||||
|
||||
List<Widget> _landscapeRightActions(BuildContext context) {
|
||||
final model = Provider.of<PeerTabModel>(context);
|
||||
return [
|
||||
@@ -566,6 +589,10 @@ class _PeerTabPageState extends State<PeerTabPage>
|
||||
offstage: model.currentTab == PeerTabIndex.recent.index,
|
||||
child: PeerSortDropdown(),
|
||||
),
|
||||
Offstage(
|
||||
offstage: !_showWebConsole(model),
|
||||
child: _openWebConsole(),
|
||||
),
|
||||
Offstage(
|
||||
offstage: model.currentTab != PeerTabIndex.ab.index,
|
||||
child: _toggleTags(),
|
||||
@@ -630,6 +657,7 @@ class _PeerTabPageState extends State<PeerTabPage>
|
||||
final List<Widget> dynamicActions = [
|
||||
if (model.currentTabCachedPeers.isNotEmpty) _createMultiSelection(),
|
||||
if (model.currentTab != PeerTabIndex.recent.index) PeerSortDropdown(),
|
||||
if (_showWebConsole(model)) _openWebConsole(),
|
||||
if (model.currentTab == PeerTabIndex.ab.index) _toggleTags()
|
||||
];
|
||||
final rightWidth = availableWidth -
|
||||
|
||||
@@ -184,6 +184,7 @@ const String kOptionAllowSyncClipboardBetweenSessions =
|
||||
const String kOptionEnableWebrtc = "enable-webrtc";
|
||||
const String kOptionRelayFallbackDelay = "relay-fallback-delay";
|
||||
const String kOptionEnableTrustedDevices = "enable-trusted-devices";
|
||||
const String kOptionTrustedDeviceExpiration = "trusted-device-expiration-days";
|
||||
const String kOptionShowVirtualMouse = "show-virtual-mouse";
|
||||
const String kOptionVirtualMouseScale = "virtual-mouse-scale";
|
||||
const String kOptionShowVirtualJoystick = "show-virtual-joystick";
|
||||
|
||||
@@ -1144,6 +1144,13 @@ class _SafetyState extends State<_Safety> with AutomaticKeepAliveClientMixin {
|
||||
message: translate("enable-trusted-devices-tip"),
|
||||
child: _OptionCheckBox(context, "Enable trusted devices",
|
||||
kOptionEnableTrustedDevices,
|
||||
optSetter: (key, value) async {
|
||||
try {
|
||||
await mainSetBoolOption(key, value);
|
||||
} catch (error) {
|
||||
showToast(error.toString());
|
||||
}
|
||||
},
|
||||
enabled: !locked, update: (v) {
|
||||
setState(() {});
|
||||
}),
|
||||
@@ -1161,7 +1168,21 @@ class _SafetyState extends State<_Safety> with AutomaticKeepAliveClientMixin {
|
||||
).marginOnly(left: 30);
|
||||
|
||||
return Column(
|
||||
children: [tfa, bot, trust],
|
||||
children: [
|
||||
tfa,
|
||||
bot,
|
||||
trust,
|
||||
if (mainGetBoolOptionSync(kOptionEnableTrustedDevices))
|
||||
trustedDeviceExpiration(
|
||||
enabled: !locked,
|
||||
onChanged: () {
|
||||
if (mounted) setState(() {});
|
||||
},
|
||||
).marginOnly(
|
||||
left: _kCheckBoxLeftMargin + 20 + _kContentHSubMargin,
|
||||
top: _kContentHMargin,
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -577,6 +577,8 @@ _registerEventHandler() {
|
||||
|
||||
Widget keyListenerBuilder(BuildContext context, Widget? child) {
|
||||
return RawKeyboardListener(
|
||||
// Keep this keyboard-only wrapper from taking focus away from web inputs.
|
||||
includeSemantics: !isWeb,
|
||||
// `skipTraversal: isWeb` is to fix "Bad state: RenderBox was not laid out: minified:aeL#c19e4"
|
||||
focusNode: FocusNode(skipTraversal: isWeb),
|
||||
child: child ?? Container(),
|
||||
|
||||
@@ -10,6 +10,7 @@ import 'package:toggle_switch/toggle_switch.dart';
|
||||
import '../../common.dart';
|
||||
import '../../common/widgets/dialog.dart';
|
||||
import '../../consts.dart';
|
||||
import '../../utils/android_documents.dart';
|
||||
|
||||
class FileManagerPage extends StatefulWidget {
|
||||
FileManagerPage(
|
||||
@@ -142,6 +143,29 @@ class _FileManagerPageState extends State<FileManagerPage> {
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> _changeLocalStorage({required bool workspace}) async {
|
||||
try {
|
||||
final path = workspace
|
||||
? await AndroidDocuments.workspace()
|
||||
: (await AndroidDocuments.selectFolder())?['path'] as String?;
|
||||
if (path == null || !mounted) return;
|
||||
final previousHome = model.localController.homePath;
|
||||
model.localController.homePath = path;
|
||||
try {
|
||||
if (await model.localController.openDirectory(path, isBack: true)) {
|
||||
model.localController.history.clear();
|
||||
} else {
|
||||
model.localController.homePath = previousHome;
|
||||
}
|
||||
} catch (_) {
|
||||
model.localController.homePath = previousHome;
|
||||
rethrow;
|
||||
}
|
||||
} catch (error) {
|
||||
showToast(error.toString());
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> _exportFile(Entry entry) async {
|
||||
try {
|
||||
final exported = await _runAndroidDocumentPicker(() => gFFI
|
||||
@@ -206,9 +230,11 @@ class _FileManagerPageState extends State<FileManagerPage> {
|
||||
}
|
||||
|
||||
Future<void> _exportLogs() async {
|
||||
final home = currentFileController.homePath;
|
||||
if (home.isEmpty) {
|
||||
showToast(translate('Failed'));
|
||||
final String home;
|
||||
try {
|
||||
home = await AndroidDocuments.workspace();
|
||||
} catch (error) {
|
||||
showToast(error.toString());
|
||||
return;
|
||||
}
|
||||
final appDir = PathUtil.join(home, appName, false);
|
||||
@@ -216,22 +242,25 @@ class _FileManagerPageState extends State<FileManagerPage> {
|
||||
PathUtil.join(appDir, 'Logs', false),
|
||||
PathUtil.join(appDir, 'ScreenRecord', false),
|
||||
].where((p) => File(p).existsSync() || Directory(p).existsSync()).toList();
|
||||
if (paths.isEmpty) {
|
||||
showToast(translate('Failed'));
|
||||
return;
|
||||
}
|
||||
await _exportPaths(paths);
|
||||
await _exportPaths(paths, includeDocumentLogs: true);
|
||||
}
|
||||
|
||||
Future<void> _exportPaths(Iterable<String> paths) async {
|
||||
Future<void> _exportPaths(Iterable<String> paths,
|
||||
{bool includeDocumentLogs = false}) async {
|
||||
try {
|
||||
final result = await _runAndroidDocumentPicker(() =>
|
||||
gFFI.invokeMethodWithResult<Map<dynamic, dynamic>>(
|
||||
AndroidChannel.kExportFiles, {'paths': paths.toList()}));
|
||||
final result = await _runAndroidDocumentPicker(() => gFFI
|
||||
.invokeMethodWithResult<Map<dynamic, dynamic>>(
|
||||
AndroidChannel.kExportFiles, {
|
||||
'paths': paths.toList(),
|
||||
if (includeDocumentLogs) 'documentLogs': true,
|
||||
}));
|
||||
if (result == null) return;
|
||||
final exported = result['exported'] as int? ?? 0;
|
||||
final failed = result['failed'] as int? ?? 0;
|
||||
if (failed > 0) {
|
||||
if (includeDocumentLogs && exported > 0 && failed > 0) {
|
||||
showToast('${translate('Successful')}: $exported, '
|
||||
'${translate('Failed')}: $failed');
|
||||
} else if (failed > 0 || (includeDocumentLogs && exported == 0)) {
|
||||
showToast(translate('Failed'));
|
||||
} else if (exported > 0) {
|
||||
showToast(translate('Successful'));
|
||||
@@ -317,6 +346,31 @@ class _FileManagerPageState extends State<FileManagerPage> {
|
||||
icon: Icon(Icons.more_vert),
|
||||
itemBuilder: (context) {
|
||||
return [
|
||||
if (isAndroid && showLocal) ...[
|
||||
PopupMenuItem(
|
||||
value: 'workspace',
|
||||
child: Row(
|
||||
children: [
|
||||
Icon(Icons.storage_outlined,
|
||||
color: Theme.of(context).iconTheme.color),
|
||||
SizedBox(width: 5),
|
||||
Text(translate('RustDesk storage')),
|
||||
],
|
||||
),
|
||||
),
|
||||
PopupMenuItem(
|
||||
value: 'choose_folder',
|
||||
child: Row(
|
||||
children: [
|
||||
Icon(Icons.folder_open_outlined,
|
||||
color: Theme.of(context).iconTheme.color),
|
||||
SizedBox(width: 5),
|
||||
Text('${translate('Other folders')}…'),
|
||||
],
|
||||
),
|
||||
),
|
||||
const PopupMenuDivider(),
|
||||
],
|
||||
PopupMenuItem(
|
||||
child: Row(
|
||||
children: [
|
||||
@@ -328,7 +382,7 @@ class _FileManagerPageState extends State<FileManagerPage> {
|
||||
),
|
||||
value: "refresh",
|
||||
),
|
||||
if (isAndroid)
|
||||
if (isAndroid && !AndroidDocuments.isPath(currentDir.path))
|
||||
PopupMenuItem(
|
||||
enabled: showLocal && currentDir.path.isNotEmpty,
|
||||
value: "import",
|
||||
@@ -341,7 +395,7 @@ class _FileManagerPageState extends State<FileManagerPage> {
|
||||
],
|
||||
),
|
||||
),
|
||||
if (isAndroid)
|
||||
if (isAndroid && !AndroidDocuments.isPath(currentDir.path))
|
||||
PopupMenuItem(
|
||||
enabled: showLocal && currentDir.path.isNotEmpty,
|
||||
value: "import_folder",
|
||||
@@ -409,7 +463,9 @@ class _FileManagerPageState extends State<FileManagerPage> {
|
||||
];
|
||||
},
|
||||
onSelected: (v) {
|
||||
if (v == "refresh") {
|
||||
if (v == 'workspace' || v == 'choose_folder') {
|
||||
_changeLocalStorage(workspace: v == 'workspace');
|
||||
} else if (v == "refresh") {
|
||||
currentFileController.refresh();
|
||||
} else if (v == "import") {
|
||||
_importFiles();
|
||||
@@ -515,6 +571,7 @@ class _FileManagerPageState extends State<FileManagerPage> {
|
||||
},
|
||||
actions: [
|
||||
if (isAndroid &&
|
||||
!AndroidDocuments.isPath(currentDir.path) &&
|
||||
selectedItems?.isLocal == true &&
|
||||
selectedItems?.items.isNotEmpty == true) ...[
|
||||
if (selectedItems!.items.length == 1 &&
|
||||
@@ -900,7 +957,7 @@ class _FileManagerViewState extends State<FileManagerView> {
|
||||
Padding(
|
||||
padding: EdgeInsets.fromLTRB(30, 5, 30, 0),
|
||||
child: Text(
|
||||
controller.directory.value.path,
|
||||
AndroidDocuments.displayPath(controller.directory.value.path),
|
||||
style: TextStyle(color: MyTheme.darkGray),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -13,6 +13,7 @@ import '../../common/widgets/dialog.dart';
|
||||
import '../../consts.dart';
|
||||
import '../../models/platform_model.dart';
|
||||
import '../../models/server_model.dart';
|
||||
import '../../utils/android_documents.dart';
|
||||
import 'home_page.dart';
|
||||
|
||||
class ServerPage extends StatefulWidget implements PageShape {
|
||||
@@ -573,6 +574,44 @@ class PermissionChecker extends StatefulWidget {
|
||||
}
|
||||
|
||||
class _PermissionCheckerState extends State<PermissionChecker> {
|
||||
static const _folderOptionIndent = 16.0;
|
||||
|
||||
Future<void> _selectFolder() async {
|
||||
try {
|
||||
final workspace = await gFFI.dialogManager.show<bool>(
|
||||
(_, close, __) => CustomAlertDialog(
|
||||
title: Text(translate('Change Path')),
|
||||
content: Column(mainAxisSize: MainAxisSize.min, children: [
|
||||
ListTile(
|
||||
title: Text(translate('RustDesk storage')),
|
||||
onTap: () => close(true),
|
||||
),
|
||||
ListTile(
|
||||
title: Text('${translate('Other folders')}…'),
|
||||
onTap: () => close(false),
|
||||
),
|
||||
]),
|
||||
),
|
||||
backDismiss: true,
|
||||
clickMaskDismiss: true);
|
||||
if (workspace == null) return;
|
||||
if (workspace) {
|
||||
showToast(await AndroidDocuments.workspace(share: true));
|
||||
await bind.setLocalFlutterOption(
|
||||
k: 'android-file-transfer-folder-setup', v: 'Y');
|
||||
return;
|
||||
}
|
||||
final selected = await AndroidDocuments.selectFolder(share: true);
|
||||
if (selected != null) {
|
||||
await bind.setLocalFlutterOption(
|
||||
k: 'android-file-transfer-folder-setup', v: 'Y');
|
||||
showToast(AndroidDocuments.displayPath(selected['path'] as String));
|
||||
}
|
||||
} catch (error) {
|
||||
showToast(error.toString());
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final serverModel = Provider.of<ServerModel>(context);
|
||||
@@ -620,6 +659,19 @@ class _PermissionCheckerState extends State<PermissionChecker> {
|
||||
serverModel.toggleFile,
|
||||
enabled: !permissionChangeLocked,
|
||||
),
|
||||
if (isAndroid &&
|
||||
!bind.isDisableSettings() &&
|
||||
!bind.isOutgoingOnly() &&
|
||||
bind.mainGetBuildinOption(key: kOptionHideSecuritySetting) != 'Y')
|
||||
ListTile(
|
||||
dense: true,
|
||||
contentPadding:
|
||||
const EdgeInsetsDirectional.only(start: _folderOptionIndent),
|
||||
title: Text(translate('Change Path')),
|
||||
trailing: const Icon(Icons.chevron_right),
|
||||
enabled: !permissionChangeLocked,
|
||||
onTap: _selectFolder,
|
||||
),
|
||||
hasAudioPermission
|
||||
? PermissionRow(translate("Audio Capture"), serverModel.audioOk,
|
||||
serverModel.toggleAudio,
|
||||
|
||||
@@ -359,12 +359,28 @@ class _SettingsState extends State<SettingsPage> with WidgetsBindingObserver {
|
||||
onToggle: isOptionFixed(kOptionEnableTrustedDevices)
|
||||
? null
|
||||
: (v) async {
|
||||
mainSetBoolOption(kOptionEnableTrustedDevices, v);
|
||||
setState(() {
|
||||
_enableTrustedDevices = v;
|
||||
});
|
||||
try {
|
||||
await mainSetBoolOption(kOptionEnableTrustedDevices, v);
|
||||
if (!mounted) return;
|
||||
setState(() {
|
||||
_enableTrustedDevices = v;
|
||||
});
|
||||
} catch (error) {
|
||||
showToast(error.toString());
|
||||
}
|
||||
},
|
||||
),
|
||||
if (enable2fa && _enableTrustedDevices)
|
||||
SettingsTile(
|
||||
title: Text(translate('Trust duration (days)')),
|
||||
trailing: trustedDeviceExpiration(
|
||||
enabled: true,
|
||||
showLabel: false,
|
||||
onChanged: () {
|
||||
if (mounted) setState(() {});
|
||||
},
|
||||
),
|
||||
),
|
||||
if (enable2fa && _enableTrustedDevices)
|
||||
SettingsTile(
|
||||
title: Text(translate('Manage trusted devices')),
|
||||
|
||||
@@ -0,0 +1,100 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../../common.dart';
|
||||
import '../../consts.dart';
|
||||
import '../../models/model.dart';
|
||||
import '../../models/platform_model.dart';
|
||||
import '../../utils/android_documents.dart';
|
||||
|
||||
const _setupOption = 'android-file-transfer-folder-setup';
|
||||
const _folderChoicePadding = EdgeInsets.fromLTRB(12, 12, 12, 0);
|
||||
const _folderChoiceSpacing = 4.0;
|
||||
|
||||
enum _FolderChoice { workspace, other, skip }
|
||||
|
||||
Future<bool> showAndroidFileTransferSetup(FFI ffi) async {
|
||||
if (bind.getLocalFlutterOption(k: _setupOption) == 'Y' ||
|
||||
!_canConfigureSharedFolder(ffi)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
try {
|
||||
final choice = await ffi.dialogManager.show<_FolderChoice>(
|
||||
(_, close, __) => _setupDialog(close),
|
||||
backDismiss: true,
|
||||
forceGlobal: true,
|
||||
);
|
||||
if (choice == null) return false;
|
||||
switch (choice) {
|
||||
case _FolderChoice.workspace:
|
||||
await AndroidDocuments.workspace(share: true);
|
||||
break;
|
||||
case _FolderChoice.other:
|
||||
if (await AndroidDocuments.selectFolder(share: true) == null) {
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
case _FolderChoice.skip:
|
||||
break;
|
||||
}
|
||||
await bind.setLocalFlutterOption(k: _setupOption, v: 'Y');
|
||||
return true;
|
||||
} catch (error) {
|
||||
showToast(error.toString());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
bool _canConfigureSharedFolder(FFI ffi) =>
|
||||
!bind.isOutgoingOnly() &&
|
||||
!bind.isDisableSettings() &&
|
||||
bind.mainGetBuildinOption(key: kOptionHideSecuritySetting) != 'Y' &&
|
||||
(!ffi.serverModel.clients.any((client) => !client.disconnected) ||
|
||||
option2bool(
|
||||
kOptionEnablePermChangeInAcceptWindow,
|
||||
bind.mainGetBuildinOption(
|
||||
key: kOptionEnablePermChangeInAcceptWindow)));
|
||||
|
||||
CustomAlertDialog _setupDialog(void Function([dynamic]) close) {
|
||||
final choiceStyle = OutlinedButton.styleFrom(
|
||||
alignment: AlignmentDirectional.centerStart,
|
||||
minimumSize: const Size(0, kMinInteractiveDimension),
|
||||
);
|
||||
return CustomAlertDialog(
|
||||
title: Text(translate('Transfer file')),
|
||||
content: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(translate('Choose which folder remote devices can access.')),
|
||||
Padding(
|
||||
padding: _folderChoicePadding,
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
children: [
|
||||
OutlinedButton(
|
||||
style: choiceStyle,
|
||||
onPressed: () => close(_FolderChoice.workspace),
|
||||
child: Text(translate('RustDesk storage')),
|
||||
),
|
||||
const SizedBox(height: _folderChoiceSpacing),
|
||||
OutlinedButton(
|
||||
style: choiceStyle,
|
||||
onPressed: () => close(_FolderChoice.other),
|
||||
child: Text('${translate('Other folders')}…'),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
actions: [
|
||||
TextButton(
|
||||
onPressed: () => close(_FolderChoice.skip),
|
||||
child: Text(translate('Skip')),
|
||||
),
|
||||
],
|
||||
onCancel: close,
|
||||
);
|
||||
}
|
||||
@@ -12,6 +12,7 @@ import 'package:flutter_hbb/web/dummy.dart'
|
||||
if (dart.library.html) 'package:flutter_hbb/web/web_unique.dart';
|
||||
|
||||
import '../consts.dart';
|
||||
import '../utils/android_documents.dart';
|
||||
import 'model.dart';
|
||||
import 'platform_model.dart';
|
||||
|
||||
@@ -384,6 +385,7 @@ class FileController {
|
||||
|
||||
bool _isPathAllowed(String candidate) {
|
||||
if (!isAndroid || !isLocal) return true;
|
||||
if (AndroidDocuments.isPath(candidate)) return true;
|
||||
if (homePath.isEmpty || candidate.isEmpty) return false;
|
||||
final home = PathUtil.posixContext.normalize(homePath);
|
||||
final target = PathUtil.posixContext.normalize(candidate);
|
||||
@@ -409,6 +411,15 @@ class FileController {
|
||||
return DirectoryData(directory.value, options.value);
|
||||
}
|
||||
|
||||
Future<void> _restoreWorkspaceHome(String savedDir) async {
|
||||
if (savedDir.isEmpty || AndroidDocuments.isPath(savedDir)) return;
|
||||
final workspace = await AndroidDocuments.workspace();
|
||||
if (PathUtil.posixContext.equals(workspace, savedDir) ||
|
||||
PathUtil.posixContext.isWithin(workspace, savedDir)) {
|
||||
homePath = workspace;
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> onReady() async {
|
||||
if (isLocal) {
|
||||
options.value.home = await bind.mainGetHomeDir();
|
||||
@@ -425,6 +436,7 @@ class FileController {
|
||||
|
||||
var savedDir = (await bind.sessionGetPeerOption(
|
||||
sessionId: sessionId, name: isLocal ? "local_dir" : "remote_dir"));
|
||||
if (isAndroid && isLocal) await _restoreWorkspaceHome(savedDir);
|
||||
if (savedDir.isNotEmpty && !_isPathAllowed(savedDir)) {
|
||||
savedDir = options.value.home;
|
||||
await bind.sessionPeerOption(
|
||||
@@ -437,7 +449,13 @@ class FileController {
|
||||
options.value.home,
|
||||
};
|
||||
for (final dir in dirs) {
|
||||
if (isAndroid && isLocal) await _restoreWorkspaceHome(dir);
|
||||
if (await _openDirectoryPath(dir, isBack: true)) {
|
||||
final documentRoot = RegExp(r'^/@rustdesk/tree/[^/]+/[^/]+')
|
||||
.stringMatch(directory.value.path);
|
||||
if (isLocal && documentRoot != null) {
|
||||
homePath = documentRoot;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -529,6 +547,9 @@ class FileController {
|
||||
return true;
|
||||
}
|
||||
debugPrint("Failed to openDirectory $path: $e");
|
||||
if (isAndroid && isLocal && AndroidDocuments.isPath(path)) {
|
||||
showToast(e.toString());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -565,6 +586,9 @@ class FileController {
|
||||
}
|
||||
|
||||
Future<bool> _goToParentDirectory({bool isBack = false}) async {
|
||||
if (AndroidDocuments.isRoot(directory.value.path)) {
|
||||
return false;
|
||||
}
|
||||
final isWindows = options.value.isWindows;
|
||||
final dirPath = directory.value.path;
|
||||
var parent = PathUtil.dirname(dirPath, isWindows);
|
||||
@@ -742,7 +766,7 @@ class FileController {
|
||||
return;
|
||||
}
|
||||
final isWindows = options.value.isWindows;
|
||||
await Future.forEach(items.items, (Entry item) async {
|
||||
await Future.forEach(items.items.toList(), (Entry item) async {
|
||||
final jobID = JobController.jobID.next();
|
||||
var title = "";
|
||||
var content = "";
|
||||
@@ -1154,7 +1178,8 @@ class JobController {
|
||||
}
|
||||
|
||||
Future<bool> jobDone(Map<String, dynamic> evt) async {
|
||||
if (jobResultListener.isListening) {
|
||||
final waitingForResult = jobResultListener.isListening;
|
||||
if (waitingForResult) {
|
||||
jobResultListener.complete(evt);
|
||||
// return;
|
||||
}
|
||||
@@ -1205,7 +1230,8 @@ class JobController {
|
||||
if (job.type == JobType.deleteDir) {
|
||||
return job.state == JobState.done;
|
||||
} else {
|
||||
return true;
|
||||
// An awaiting file-deletion batch refreshes when removeAction finishes.
|
||||
return job.type != JobType.deleteFile || !waitingForResult;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1503,6 +1529,12 @@ class FileFetcher {
|
||||
if (!_removeRemoteReadTask(entry.key, task)) continue;
|
||||
task.completer.completeError(StateError(_kRemoteSessionChangedError));
|
||||
}
|
||||
for (final path in remoteEmptyDirsTasks.keys.toList()) {
|
||||
if (!AndroidDocuments.isPath(path)) continue;
|
||||
remoteEmptyDirsTasks
|
||||
.remove(path)
|
||||
?.completeError(StateError(_kRemoteSessionChangedError));
|
||||
}
|
||||
}
|
||||
|
||||
_RemoteReadTask _registerRemoteReadTask(String path, bool includeHidden) {
|
||||
@@ -1543,15 +1575,18 @@ class FileFetcher {
|
||||
final c = Completer<List<FileDirectory>>();
|
||||
tasks[path] = c;
|
||||
|
||||
Timer(Duration(seconds: 2), () {
|
||||
final timeout = AndroidDocuments.isPath(path)
|
||||
? _kRemoteReadDirTimeout
|
||||
: const Duration(seconds: 2);
|
||||
Timer(timeout, () {
|
||||
if (!identical(tasks[path], c)) return;
|
||||
tasks.remove(path);
|
||||
if (c.isCompleted) return;
|
||||
c.completeError("Failed to read empty dirs, timeout");
|
||||
});
|
||||
return c.future;
|
||||
}
|
||||
|
||||
Future<FileDirectory> registerReadRecursiveTask(int actID) {
|
||||
Future<FileDirectory> registerReadRecursiveTask(int actID, String path) {
|
||||
final tasks = readRecursiveTasks;
|
||||
if (tasks.containsKey(actID)) {
|
||||
throw "Failed to registerRemoveTask, already have same ReadRecursive job";
|
||||
@@ -1559,7 +1594,10 @@ class FileFetcher {
|
||||
final c = Completer<FileDirectory>();
|
||||
tasks[actID] = c;
|
||||
|
||||
Timer(Duration(seconds: 2), () {
|
||||
final timeout = AndroidDocuments.isPath(path)
|
||||
? _kRemoteReadDirTimeout
|
||||
: const Duration(seconds: 2);
|
||||
Timer(timeout, () {
|
||||
tasks.remove(actID);
|
||||
if (c.isCompleted) return;
|
||||
c.completeError("Failed to read dir, timeout");
|
||||
@@ -1641,8 +1679,13 @@ class FileFetcher {
|
||||
fdJsons.map((fdJson) => FileDirectory.fromJson(fdJson)).toList();
|
||||
return fds;
|
||||
} else {
|
||||
final generation = _remoteSessionGeneration;
|
||||
await bind.sessionReadRemoteEmptyDirsRecursiveSync(
|
||||
sessionId: sessionId, path: path, includeHidden: showHidden);
|
||||
if (AndroidDocuments.isPath(path) &&
|
||||
generation != _remoteSessionGeneration) {
|
||||
throw StateError(_kRemoteSessionChangedError);
|
||||
}
|
||||
return registerReadEmptyDirsTask(isLocal, path);
|
||||
}
|
||||
} catch (e) {
|
||||
@@ -1656,6 +1699,11 @@ class FileFetcher {
|
||||
if (isLocal) {
|
||||
final res = await bind.sessionReadLocalDirSync(
|
||||
sessionId: sessionId, path: path, showHidden: showHidden);
|
||||
if (isAndroid && AndroidDocuments.isPath(path)) {
|
||||
final data = jsonDecode(res);
|
||||
if (data['error'] != null) throw StateError(data['error'] as String);
|
||||
return FileDirectory.fromJson(data);
|
||||
}
|
||||
final fd = FileDirectory.fromJson(jsonDecode(res));
|
||||
return fd;
|
||||
} else {
|
||||
@@ -1695,7 +1743,7 @@ class FileFetcher {
|
||||
path: path,
|
||||
isRemote: !isLocal,
|
||||
showHidden: showHidden);
|
||||
return registerReadRecursiveTask(actID);
|
||||
return registerReadRecursiveTask(actID, path);
|
||||
} catch (e) {
|
||||
return Future.error(e);
|
||||
}
|
||||
|
||||
@@ -15,6 +15,8 @@ import '../common/formatter/id_formatter.dart';
|
||||
import '../desktop/pages/server_page.dart' as desktop;
|
||||
import '../desktop/widgets/tabbar_widget.dart';
|
||||
import '../mobile/pages/server_page.dart';
|
||||
import '../mobile/widgets/android_file_transfer_setup.dart';
|
||||
import '../utils/android_documents.dart';
|
||||
import 'model.dart';
|
||||
|
||||
const kLoginDialogTag = "LOGIN";
|
||||
@@ -399,6 +401,14 @@ class ServerModel with ChangeNotifier {
|
||||
stopService();
|
||||
}
|
||||
} else {
|
||||
if (isAndroid) {
|
||||
try {
|
||||
await AndroidDocuments.requireLogFolder();
|
||||
await showAndroidFileTransferSetup(gFFI);
|
||||
} catch (_) {
|
||||
debugPrint('Folder setup failed; continuing service startup');
|
||||
}
|
||||
}
|
||||
await checkRequestNotificationPermission();
|
||||
if (bind.mainGetLocalOption(key: kOptionDisableFloatingWindow) != 'Y') {
|
||||
await checkFloatingWindowPermission();
|
||||
|
||||
@@ -0,0 +1,98 @@
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
import '../common.dart';
|
||||
|
||||
class AndroidDocuments {
|
||||
static const root = '/@rustdesk/';
|
||||
|
||||
static bool isPath(String path) => path.startsWith(root);
|
||||
|
||||
static bool isRoot(String path) =>
|
||||
RegExp(r'^/@rustdesk/tree/[^/]+/[^/]+$').hasMatch(path);
|
||||
|
||||
static String displayPath(String path) {
|
||||
if (!isPath(path)) return path;
|
||||
return path.replaceFirst(RegExp(r'^/@rustdesk/tree/[^/]+/'), '');
|
||||
}
|
||||
|
||||
static Future<Map<String, dynamic>?> selectFolder({bool share = false}) async {
|
||||
gFFI.ffiModel.beginAndroidDocumentPicker();
|
||||
try {
|
||||
final result = await gFFI.invokeMethodWithResult<String>(
|
||||
'document_folder', {'share': share});
|
||||
return result == null ? null : jsonDecode(result) as Map<String, dynamic>;
|
||||
} finally {
|
||||
gFFI.ffiModel.endAndroidDocumentPicker();
|
||||
}
|
||||
}
|
||||
|
||||
static Future<String> workspace({bool share = false}) async {
|
||||
final path = await gFFI
|
||||
.invokeMethodWithResult<String>('document_workspace', {'share': share});
|
||||
if (path == null || path.isEmpty) {
|
||||
throw StateError('App workspace is unavailable');
|
||||
}
|
||||
return path;
|
||||
}
|
||||
|
||||
static Future<bool> requireLogFolder() async {
|
||||
gFFI.ffiModel.beginAndroidDocumentPicker();
|
||||
try {
|
||||
final ready = await gFFI.invokeMethodWithResult<bool>(
|
||||
'document_require_log_folder', {'checkOnly': true});
|
||||
if (ready == null) {
|
||||
throw StateError('Log directory setup did not complete');
|
||||
}
|
||||
if (ready) return true;
|
||||
if (!await _confirmLogFolder()) return false;
|
||||
final selected = await gFFI
|
||||
.invokeMethodWithResult<bool>('document_require_log_folder');
|
||||
if (selected == null) {
|
||||
throw StateError('Log directory setup did not complete');
|
||||
}
|
||||
return selected;
|
||||
} catch (error) {
|
||||
debugPrint('Log directory setup failed');
|
||||
await gFFI.dialogManager.show<void>(
|
||||
(_, close, __) => CustomAlertDialog(
|
||||
title: Text(translate('Error')),
|
||||
content: Text(error is PlatformException
|
||||
? translate(error.message ?? 'Failed')
|
||||
: error.toString()),
|
||||
actions: [
|
||||
TextButton(onPressed: close, child: Text(translate('OK'))),
|
||||
],
|
||||
onSubmit: close,
|
||||
onCancel: close,
|
||||
),
|
||||
backDismiss: true,
|
||||
forceGlobal: true,
|
||||
);
|
||||
rethrow;
|
||||
} finally {
|
||||
gFFI.ffiModel.endAndroidDocumentPicker();
|
||||
}
|
||||
}
|
||||
|
||||
static Future<bool> _confirmLogFolder() async =>
|
||||
await gFFI.dialogManager.show<bool>(
|
||||
(_, close, __) => CustomAlertDialog(
|
||||
title: Text(translate('Permissions')),
|
||||
content: Text(
|
||||
'${translate('android-logs-folder-tip')}\n'),
|
||||
actions: [
|
||||
TextButton(
|
||||
onPressed: () => close(true),
|
||||
child: Text(translate('Choose folder')),
|
||||
),
|
||||
],
|
||||
onCancel: () => close(false),
|
||||
),
|
||||
backDismiss: true,
|
||||
forceGlobal: true,
|
||||
) ==
|
||||
true;
|
||||
}
|
||||
@@ -1834,6 +1834,10 @@ class RustdeskImpl {
|
||||
throw UnimplementedError("mainRemoveTrustedDevices");
|
||||
}
|
||||
|
||||
Future<void> mainRenewTrustedDevices({required String json, dynamic hint}) {
|
||||
throw UnimplementedError("mainRenewTrustedDevices");
|
||||
}
|
||||
|
||||
Future<void> mainClearTrustedDevices({dynamic hint}) {
|
||||
throw UnimplementedError("mainClearTrustedDevices");
|
||||
}
|
||||
|
||||
@@ -0,0 +1,92 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_hbb/common.dart';
|
||||
import 'package:flutter_hbb/generated_bridge.dart';
|
||||
import 'package:flutter_hbb/mobile/widgets/android_file_transfer_setup.dart';
|
||||
import 'package:flutter_hbb/models/model.dart';
|
||||
import 'package:flutter_hbb/models/platform_model.dart';
|
||||
import 'package:flutter_hbb/models/server_model.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
class _Binding extends Fake implements RustdeskImpl {
|
||||
final options = <String, String>{};
|
||||
|
||||
@override
|
||||
String translate(
|
||||
{required String name, required String locale, dynamic hint}) =>
|
||||
name;
|
||||
|
||||
@override
|
||||
String getLocalFlutterOption({required String k, dynamic hint}) =>
|
||||
options[k] ?? '';
|
||||
|
||||
@override
|
||||
Future<void> setLocalFlutterOption(
|
||||
{required String k, required String v, dynamic hint}) async {
|
||||
options[k] = v;
|
||||
}
|
||||
|
||||
@override
|
||||
bool isDisableSettings({dynamic hint}) => false;
|
||||
|
||||
@override
|
||||
bool isOutgoingOnly({dynamic hint}) => false;
|
||||
|
||||
@override
|
||||
String mainGetBuildinOption({required String key, dynamic hint}) => '';
|
||||
}
|
||||
|
||||
class _Server extends Fake implements ServerModel {
|
||||
@override
|
||||
List<Client> get clients => [];
|
||||
}
|
||||
|
||||
class _Session extends Fake implements FFI {
|
||||
@override
|
||||
final dialogManager = OverlayDialogManager();
|
||||
|
||||
@override
|
||||
final serverModel = _Server();
|
||||
}
|
||||
|
||||
void main() {
|
||||
late _Session session;
|
||||
|
||||
setUp(() {
|
||||
platformFFI.setBindingForTesting(_Binding());
|
||||
session = _Session();
|
||||
});
|
||||
|
||||
Future<void> openApp(WidgetTester tester) => tester.pumpWidget(MaterialApp(
|
||||
navigatorKey: globalKey,
|
||||
home: const Scaffold(),
|
||||
));
|
||||
|
||||
testWidgets('skipping folder setup suppresses later prompts', (tester) async {
|
||||
await openApp(tester);
|
||||
final first = showAndroidFileTransferSetup(session);
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(find.text('Skip'));
|
||||
await tester.pumpAndSettle();
|
||||
expect(await first, isTrue);
|
||||
expect(await showAndroidFileTransferSetup(_Session()), isTrue);
|
||||
expect(find.byType(CustomAlertDialog), findsNothing);
|
||||
});
|
||||
|
||||
testWidgets('canceling setup leaves it available at the next entry',
|
||||
(tester) async {
|
||||
await openApp(tester);
|
||||
final first = showAndroidFileTransferSetup(session);
|
||||
await tester.pumpAndSettle();
|
||||
await tester.sendKeyEvent(LogicalKeyboardKey.escape);
|
||||
await tester.pumpAndSettle();
|
||||
expect(await first, isFalse);
|
||||
|
||||
final retry = showAndroidFileTransferSetup(session);
|
||||
await tester.pumpAndSettle();
|
||||
expect(find.byType(CustomAlertDialog), findsOneWidget);
|
||||
await tester.tap(find.text('Skip'));
|
||||
await tester.pumpAndSettle();
|
||||
expect(await retry, isTrue);
|
||||
});
|
||||
}
|
||||
@@ -1,7 +1,10 @@
|
||||
import 'dart:async';
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:flutter_hbb/generated_bridge.dart';
|
||||
import 'package:flutter_hbb/models/file_model.dart';
|
||||
import 'package:flutter_hbb/models/model.dart';
|
||||
import 'package:flutter_hbb/models/platform_model.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:uuid/uuid.dart';
|
||||
|
||||
@@ -47,7 +50,124 @@ class _SentRead {
|
||||
const _SentRead(this.path, this.includeHidden);
|
||||
}
|
||||
|
||||
class _FileBinding extends Fake implements RustdeskImpl {
|
||||
int _jobId = 0;
|
||||
final emptyDirsDispatch = Completer<void>();
|
||||
|
||||
@override
|
||||
Future<void> sessionReadRemoteEmptyDirsRecursiveSync(
|
||||
{required UuidValue sessionId,
|
||||
required String path,
|
||||
required bool includeHidden,
|
||||
dynamic hint}) =>
|
||||
emptyDirsDispatch.future;
|
||||
|
||||
@override
|
||||
String translate(
|
||||
{required String name, required String locale, dynamic hint}) =>
|
||||
name;
|
||||
|
||||
@override
|
||||
String mainGetCommonSync({required String key, dynamic hint}) =>
|
||||
'${++_jobId}';
|
||||
}
|
||||
|
||||
class _DeletingController extends FileController {
|
||||
final confirmations = <String>[];
|
||||
|
||||
_DeletingController()
|
||||
: super(
|
||||
isLocal: false,
|
||||
getSessionID: () => _sessionId,
|
||||
rootState: WeakReference(_FakeFFI()),
|
||||
jobController: JobController(() => _sessionId, () => null),
|
||||
fileFetcher: FileFetcher(() => _sessionId),
|
||||
getOtherSideDirectoryData: () =>
|
||||
DirectoryData(FileDirectory(), DirectoryOptions()),
|
||||
);
|
||||
|
||||
@override
|
||||
Future<bool?> showRemoveDialog(
|
||||
String title, String content, bool showCheckbox) async {
|
||||
confirmations.add(content);
|
||||
return true;
|
||||
}
|
||||
|
||||
@override
|
||||
void sendRemoveFile(String path, int fileNum, int actId) {
|
||||
scheduleMicrotask(() {
|
||||
selectedItems.reconcile(
|
||||
selectedItems.items.where((entry) => entry.path != path).toList());
|
||||
unawaited(
|
||||
jobController.jobDone({'id': '$actId', 'file_num': '$fileNum'}));
|
||||
});
|
||||
}
|
||||
|
||||
@override
|
||||
Future<bool> refresh() async => true;
|
||||
}
|
||||
|
||||
void main() {
|
||||
for (final scenario in ['completion', 'reconnect', 'dispatch reconnect']) {
|
||||
testWidgets('SAF retry after $scenario', (tester) async {
|
||||
const path = '/@rustdesk/tree/grant/root';
|
||||
final response = jsonEncode({
|
||||
'path': path,
|
||||
'empty_dirs': [jsonDecode(_directoryJson('$path/empty'))],
|
||||
});
|
||||
final binding = _FileBinding();
|
||||
platformFFI.setBindingForTesting(binding);
|
||||
final fetcher = FileFetcher(() => _sessionId);
|
||||
final first = expectLater(
|
||||
fetcher.readEmptyDirs(path, false, false),
|
||||
scenario == 'completion'
|
||||
? completion(isNotEmpty)
|
||||
: throwsA(isA<StateError>()));
|
||||
try {
|
||||
if (scenario != 'dispatch reconnect')
|
||||
binding.emptyDirsDispatch.complete();
|
||||
await tester.pump(const Duration(seconds: 3));
|
||||
if (scenario != 'completion') {
|
||||
fetcher.beginRemoteSession();
|
||||
} else {
|
||||
fetcher.tryCompleteEmptyDirsTask(response, 'false');
|
||||
}
|
||||
if (scenario == 'dispatch reconnect')
|
||||
binding.emptyDirsDispatch.complete();
|
||||
await tester.pump();
|
||||
final retry = expectLater(
|
||||
fetcher.readEmptyDirs(path, false, false).then((directories) =>
|
||||
directories.map((directory) => directory.path)),
|
||||
completion(['$path/empty']));
|
||||
await tester.pump();
|
||||
await tester.pump(const Duration(seconds: 28));
|
||||
fetcher.tryCompleteEmptyDirsTask(response, 'false');
|
||||
await tester.pump(const Duration(seconds: 2));
|
||||
await retry;
|
||||
} finally {
|
||||
await tester.pump(const Duration(seconds: 30));
|
||||
}
|
||||
await first;
|
||||
});
|
||||
}
|
||||
|
||||
test('deletion confirms all five files despite refreshed selection',
|
||||
() async {
|
||||
platformFFI.setBindingForTesting(_FileBinding());
|
||||
final controller = _DeletingController();
|
||||
final files = ['a.txt', 'b.txt', 'c.txt', 'd.txt', 'e.txt']
|
||||
.map((name) => Entry()
|
||||
..name = name
|
||||
..path = '/selected/$name')
|
||||
.toList();
|
||||
controller.selectedItems.selectAll(files);
|
||||
|
||||
await controller.removeAction(controller.selectedItems);
|
||||
|
||||
expect(controller.confirmations, files.map((file) => file.path));
|
||||
expect(controller.selectedItems.items, isEmpty);
|
||||
});
|
||||
|
||||
test('a fast remote response is matched after registration', () async {
|
||||
late final FileFetcher fileFetcher;
|
||||
fileFetcher = FileFetcher(
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
import 'dart:ui' show PointerDeviceKind, SemanticsAction;
|
||||
|
||||
import 'package:flutter/gestures.dart' show kSecondaryMouseButton;
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_hbb/common/widgets/peer_card.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
void main() {
|
||||
const doubleClickInterval = Duration(milliseconds: 75);
|
||||
const dragOffset = Offset(150, 0);
|
||||
// Keep pointer cases semantics-off to cover parent/child gesture competition.
|
||||
// VM taps bypass browser click-to-semantics conversion; verify that in a browser.
|
||||
for (final action in ['physical clicks', 'semantic tap', 'keyboard']) {
|
||||
testWidgets('More $action opens once without connecting the card',
|
||||
(tester) async {
|
||||
var opened = 0;
|
||||
var connected = 0;
|
||||
await tester.pumpWidget(MaterialApp(
|
||||
home: Material(
|
||||
child: GestureDetector(
|
||||
excludeFromSemantics: true,
|
||||
onTap: () {},
|
||||
onDoubleTap: () => connected++,
|
||||
onLongPress: () {},
|
||||
child: Builder(builder: (context) {
|
||||
return Center(
|
||||
child: build_more(context, onTap: () {
|
||||
opened++;
|
||||
showMenu<void>(
|
||||
context: context,
|
||||
position: RelativeRect.fill,
|
||||
items: const [PopupMenuItem(child: Text('Connect'))],
|
||||
);
|
||||
}));
|
||||
}),
|
||||
),
|
||||
),
|
||||
));
|
||||
final button = find.byIcon(Icons.more_vert);
|
||||
final position = tester.getCenter(button);
|
||||
if (action == 'semantic tap') {
|
||||
final node = tester.getSemantics(button);
|
||||
node.owner!.performAction(node.id, SemanticsAction.tap);
|
||||
} else if (action == 'keyboard') {
|
||||
await tester.sendKeyEvent(LogicalKeyboardKey.tab);
|
||||
await tester.sendKeyEvent(LogicalKeyboardKey.enter);
|
||||
} else {
|
||||
await tester.tapAt(position,
|
||||
kind: PointerDeviceKind.mouse, buttons: kSecondaryMouseButton);
|
||||
await tester.pumpAndSettle();
|
||||
expect(opened, 0, reason: 'A secondary click must not open More');
|
||||
await tester.dragFrom(position, dragOffset,
|
||||
kind: PointerDeviceKind.mouse);
|
||||
await tester.pumpAndSettle();
|
||||
expect(opened, 0, reason: 'Dragging out must cancel the More tap');
|
||||
await tester.tapAt(position, kind: PointerDeviceKind.mouse);
|
||||
}
|
||||
expect(opened, 1,
|
||||
reason: 'More must not wait for a possible double click');
|
||||
await tester.pump();
|
||||
if (action == 'physical clicks') {
|
||||
await tester.pump(doubleClickInterval);
|
||||
await tester.tapAt(position, kind: PointerDeviceKind.mouse);
|
||||
}
|
||||
await tester.pumpAndSettle();
|
||||
expect({'menu': opened, 'connection': connected},
|
||||
{'menu': 1, 'connection': 0});
|
||||
}, semanticsEnabled: action != 'physical clicks');
|
||||
}
|
||||
}
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "win32_desktop.h"
|
||||
#include "flutter_window.h"
|
||||
#include "utils.h"
|
||||
#include "service_control.h"
|
||||
|
||||
typedef char** (*FUNC_RUSTDESK_CORE_MAIN)(int*);
|
||||
typedef void (*FUNC_RUSTDESK_FREE_ARGS)( char**, int);
|
||||
@@ -23,6 +24,9 @@ const wchar_t* getWindowClassName();
|
||||
int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
|
||||
_In_ wchar_t *command_line, _In_ int show_command)
|
||||
{
|
||||
if (auto result = service_control::HandleCommand(command_line)) {
|
||||
return static_cast<int>(*result);
|
||||
}
|
||||
HINSTANCE hInstance = LoadLibraryA("librustdesk.dll");
|
||||
if (!hInstance)
|
||||
{
|
||||
|
||||
@@ -0,0 +1,183 @@
|
||||
#ifndef RUSTDESK_RUNNER_SERVICE_CONTROL_H_
|
||||
#define RUSTDESK_RUNNER_SERVICE_CONTROL_H_
|
||||
|
||||
#include <windows.h>
|
||||
#include <shellapi.h>
|
||||
#include <winsvc.h>
|
||||
|
||||
#include <cstdio>
|
||||
#include <cwchar>
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
#include <type_traits>
|
||||
|
||||
namespace service_control {
|
||||
|
||||
using ServiceHandle = std::unique_ptr<std::remove_pointer_t<SC_HANDLE>,
|
||||
decltype(&CloseServiceHandle)>;
|
||||
constexpr DWORD kStopTimeoutMilliseconds = 30000;
|
||||
constexpr DWORD kPollIntervalMilliseconds = 100;
|
||||
|
||||
inline DWORD StopService(SC_HANDLE service) {
|
||||
SERVICE_STATUS_PROCESS status{};
|
||||
DWORD bytes_needed = 0;
|
||||
if (!QueryServiceStatusEx(service, SC_STATUS_PROCESS_INFO,
|
||||
reinterpret_cast<BYTE*>(&status), sizeof(status),
|
||||
&bytes_needed)) {
|
||||
return GetLastError();
|
||||
}
|
||||
if (status.dwCurrentState == SERVICE_STOPPED) {
|
||||
return ERROR_SUCCESS;
|
||||
}
|
||||
if (status.dwCurrentState != SERVICE_STOP_PENDING) {
|
||||
SERVICE_STATUS stopped{};
|
||||
if (!ControlService(service, SERVICE_CONTROL_STOP, &stopped)) {
|
||||
const DWORD error = GetLastError();
|
||||
return error == ERROR_SERVICE_NOT_ACTIVE ? ERROR_SUCCESS : error;
|
||||
}
|
||||
}
|
||||
// The installer may remove files next; accepting STOP alone does not mean
|
||||
// the service has reached SERVICE_STOPPED.
|
||||
const ULONGLONG started = GetTickCount64();
|
||||
while (status.dwCurrentState != SERVICE_STOPPED) {
|
||||
if (GetTickCount64() - started >= kStopTimeoutMilliseconds) {
|
||||
return ERROR_TIMEOUT;
|
||||
}
|
||||
Sleep(kPollIntervalMilliseconds);
|
||||
if (!QueryServiceStatusEx(service, SC_STATUS_PROCESS_INFO,
|
||||
reinterpret_cast<BYTE*>(&status), sizeof(status),
|
||||
&bytes_needed)) {
|
||||
return GetLastError();
|
||||
}
|
||||
}
|
||||
return ERROR_SUCCESS;
|
||||
}
|
||||
|
||||
inline DWORD RemoveService(const wchar_t* name) {
|
||||
ServiceHandle manager(OpenSCManagerW(nullptr, nullptr, SC_MANAGER_CONNECT),
|
||||
CloseServiceHandle);
|
||||
if (!manager) {
|
||||
return GetLastError();
|
||||
}
|
||||
ServiceHandle service(
|
||||
OpenServiceW(manager.get(), name,
|
||||
SERVICE_STOP | SERVICE_QUERY_STATUS | DELETE),
|
||||
CloseServiceHandle);
|
||||
if (!service) {
|
||||
const DWORD error = GetLastError();
|
||||
return error == ERROR_SERVICE_DOES_NOT_EXIST ? ERROR_SUCCESS : error;
|
||||
}
|
||||
const DWORD stopped = StopService(service.get());
|
||||
if (stopped != ERROR_SUCCESS) {
|
||||
// The uninstall script must still reach its taskkill cleanup.
|
||||
std::fwprintf(stderr,
|
||||
L"Service did not stop cleanly: Windows error %lu\n", stopped);
|
||||
}
|
||||
if (DeleteService(service.get())) {
|
||||
return ERROR_SUCCESS;
|
||||
}
|
||||
const DWORD error = GetLastError();
|
||||
return error == ERROR_SERVICE_MARKED_FOR_DELETE ? ERROR_SUCCESS : error;
|
||||
}
|
||||
|
||||
inline DWORD InstallService(const wchar_t* name, const wchar_t* executable,
|
||||
bool rollback_on_failure) {
|
||||
if (!*executable || wcschr(executable, L'"')) {
|
||||
return ERROR_INVALID_PARAMETER;
|
||||
}
|
||||
const std::wstring binary_path =
|
||||
L"\"" + std::wstring(executable) + L"\" --service";
|
||||
const std::wstring display_name = std::wstring(name) + L" Service";
|
||||
ServiceHandle manager(
|
||||
OpenSCManagerW(nullptr, nullptr,
|
||||
SC_MANAGER_CONNECT | SC_MANAGER_CREATE_SERVICE),
|
||||
CloseServiceHandle);
|
||||
if (!manager) {
|
||||
return GetLastError();
|
||||
}
|
||||
ServiceHandle service(
|
||||
CreateServiceW(manager.get(), name, display_name.c_str(),
|
||||
SERVICE_START | DELETE, SERVICE_WIN32_OWN_PROCESS,
|
||||
SERVICE_AUTO_START, SERVICE_ERROR_NORMAL,
|
||||
binary_path.c_str(), nullptr,
|
||||
nullptr, nullptr, nullptr, nullptr),
|
||||
CloseServiceHandle);
|
||||
const bool created = service != nullptr;
|
||||
// --after-install can reuse a registration. Preserve its executable and
|
||||
// account, as the previous create-then-start script did.
|
||||
if (!service && GetLastError() == ERROR_SERVICE_EXISTS) {
|
||||
service.reset(OpenServiceW(manager.get(), name, SERVICE_START));
|
||||
}
|
||||
if (!service) {
|
||||
return GetLastError();
|
||||
}
|
||||
if (StartServiceW(service.get(), 0, nullptr)) {
|
||||
return ERROR_SUCCESS;
|
||||
}
|
||||
const DWORD error = GetLastError();
|
||||
// Only manual Start Service restores stop-service=Y on failure. Other
|
||||
// installation paths retain the registration for a later startup attempt.
|
||||
if (rollback_on_failure && created && error != ERROR_SERVICE_ALREADY_RUNNING &&
|
||||
!DeleteService(service.get())) {
|
||||
const DWORD rollback_error = GetLastError();
|
||||
std::fwprintf(stderr,
|
||||
L"Failed to roll back newly created service: Windows error %lu\n",
|
||||
rollback_error);
|
||||
}
|
||||
return error == ERROR_SERVICE_ALREADY_RUNNING ? ERROR_SUCCESS : error;
|
||||
}
|
||||
|
||||
inline DWORD RunCommand(int count, wchar_t** args) {
|
||||
constexpr int kRemoveArgumentCount = 4;
|
||||
constexpr int kInstallArgumentCount = 5;
|
||||
if (count < kRemoveArgumentCount) {
|
||||
return ERROR_BAD_ARGUMENTS;
|
||||
}
|
||||
if (!*args[3]) {
|
||||
return ERROR_INVALID_PARAMETER;
|
||||
}
|
||||
const std::wstring_view operation(args[2]);
|
||||
const bool rollback_on_failure = operation == L"create-service-with-rollback";
|
||||
if ((operation == L"create-service" || rollback_on_failure) &&
|
||||
count == kInstallArgumentCount) {
|
||||
return InstallService(args[3], args[4], rollback_on_failure);
|
||||
}
|
||||
if (operation == L"remove" && count == kRemoveArgumentCount) {
|
||||
return RemoveService(args[3]);
|
||||
}
|
||||
return ERROR_BAD_ARGUMENTS;
|
||||
}
|
||||
|
||||
// Keep these commands in the existing runner so installation/removal can control
|
||||
// services before loading librustdesk.dll or initializing the UI. A Rust-side
|
||||
// handler would first require that DLL to load. The header-only implementation
|
||||
// keeps main.cpp as a dispatch hook without adding a CMake source entry; it is
|
||||
// compiled into the existing EXE, not a separately packaged helper.
|
||||
inline std::optional<DWORD> HandleCommand(const wchar_t* command_line) {
|
||||
constexpr std::wstring_view option = L"--service-control";
|
||||
const std::wstring_view arguments(command_line);
|
||||
if (arguments.compare(0, option.size(), option) != 0 ||
|
||||
(arguments.size() > option.size() && arguments[option.size()] != L' ' &&
|
||||
arguments[option.size()] != L'\t')) {
|
||||
return std::nullopt;
|
||||
}
|
||||
int count = 0;
|
||||
wchar_t** args = CommandLineToArgvW(GetCommandLineW(), &count);
|
||||
if (!args) {
|
||||
return GetLastError();
|
||||
}
|
||||
const DWORD result = RunCommand(count, args);
|
||||
LocalFree(args);
|
||||
if (result != ERROR_SUCCESS) {
|
||||
std::fwprintf(stderr,
|
||||
L"RustDesk service control failed with Windows error %lu\n",
|
||||
result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
} // namespace service_control
|
||||
|
||||
#endif // RUSTDESK_RUNNER_SERVICE_CONTROL_H_
|
||||
@@ -84,6 +84,8 @@ message LoginRequest {
|
||||
string my_platform = 13;
|
||||
bytes hwid = 14;
|
||||
string avatar = 17;
|
||||
bytes trusted_device_v2_token = 18;
|
||||
bool trusted_device_v2_supported = 19;
|
||||
}
|
||||
|
||||
message Terminal {
|
||||
@@ -93,6 +95,7 @@ message Terminal {
|
||||
message Auth2FA {
|
||||
string code = 1;
|
||||
bytes hwid = 2;
|
||||
bool trust_this_device = 3;
|
||||
}
|
||||
|
||||
message ChatMessage { string text = 1; }
|
||||
@@ -147,6 +150,8 @@ message LoginResponse {
|
||||
PeerInfo peer_info = 2;
|
||||
}
|
||||
bool enable_trusted_devices = 3;
|
||||
bool trusted_device_v2_supported = 4;
|
||||
bytes trusted_device_v2_token = 5;
|
||||
}
|
||||
|
||||
message TouchScaleUpdate {
|
||||
|
||||
@@ -88,6 +88,7 @@ pub const OPTION_ENABLE_DIRECTX_CAPTURE: &str = "enable-directx-capture";
|
||||
pub const OPTION_ENABLE_ANDROID_SOFTWARE_ENCODING_HALF_SCALE: &str =
|
||||
"enable-android-software-encoding-half-scale";
|
||||
pub const OPTION_ENABLE_TRUSTED_DEVICES: &str = "enable-trusted-devices";
|
||||
pub const OPTION_TRUSTED_DEVICE_EXPIRATION: &str = "trusted-device-expiration-days";
|
||||
pub const OPTION_AV1_TEST: &str = "av1-test";
|
||||
/// Maximum number of files allowed during a single file transfer request.
|
||||
///
|
||||
@@ -311,6 +312,7 @@ pub const KEYS_SETTINGS: &[&str] = &[
|
||||
OPTION_API_SERVER,
|
||||
OPTION_KEY,
|
||||
OPTION_ALLOW_WEBSOCKET,
|
||||
OPTION_WEBSOCKET_PORT,
|
||||
OPTION_PRESET_ADDRESS_BOOK_NAME,
|
||||
OPTION_PRESET_ADDRESS_BOOK_TAG,
|
||||
OPTION_PRESET_ADDRESS_BOOK_ALIAS,
|
||||
@@ -322,6 +324,7 @@ pub const KEYS_SETTINGS: &[&str] = &[
|
||||
OPTION_ENABLE_DIRECTX_CAPTURE,
|
||||
OPTION_ENABLE_ANDROID_SOFTWARE_ENCODING_HALF_SCALE,
|
||||
OPTION_ENABLE_TRUSTED_DEVICES,
|
||||
OPTION_TRUSTED_DEVICE_EXPIRATION,
|
||||
OPTION_RELAY_SERVER,
|
||||
OPTION_ICE_SERVERS,
|
||||
OPTION_DISABLE_UDP,
|
||||
|
||||
+134
-1
@@ -27,6 +27,15 @@ use hbb_common::{
|
||||
|
||||
static NEXT_JOB_ID: AtomicI32 = AtomicI32::new(1);
|
||||
|
||||
#[cfg(any(target_os = "android", test))]
|
||||
pub mod android;
|
||||
|
||||
#[cfg(any(target_os = "android", all(test, unix)))]
|
||||
mod android_transfer;
|
||||
|
||||
#[cfg(any(target_os = "android", all(test, unix)))]
|
||||
mod android_descriptor;
|
||||
|
||||
pub mod download;
|
||||
|
||||
#[cfg(test)]
|
||||
@@ -42,6 +51,10 @@ pub fn update_next_job_id(id: i32) {
|
||||
}
|
||||
|
||||
pub fn read_dir(path: &Path, include_hidden: bool) -> ResultType<FileDirectory> {
|
||||
#[cfg(any(target_os = "android", test))]
|
||||
if android::is_path(path) {
|
||||
return android::read_dir(&get_string(path), include_hidden);
|
||||
}
|
||||
let mut dir = FileDirectory {
|
||||
path: get_string(path),
|
||||
..Default::default()
|
||||
@@ -146,6 +159,15 @@ pub fn get_path(path: &str) -> PathBuf {
|
||||
|
||||
#[inline]
|
||||
pub fn get_home_as_string() -> String {
|
||||
#[cfg(target_os = "android")]
|
||||
match android::home() {
|
||||
Ok(Some(path)) => return path,
|
||||
Ok(None) => {}
|
||||
Err(error) => {
|
||||
log::trace!("Unable to load the selected document location: {}", error);
|
||||
return android::ROOT.trim_end_matches('/').to_owned();
|
||||
}
|
||||
}
|
||||
get_string(&Config::get_home())
|
||||
}
|
||||
|
||||
@@ -209,6 +231,10 @@ fn read_dir_recursive(
|
||||
}
|
||||
|
||||
pub fn get_recursive_files(path: &str, include_hidden: bool) -> ResultType<Vec<FileEntry>> {
|
||||
#[cfg(any(target_os = "android", test))]
|
||||
if android::is_path(Path::new(path)) {
|
||||
return android::recursive_files(path, include_hidden);
|
||||
}
|
||||
read_dir_recursive(&get_path(path), &get_path(""), include_hidden)
|
||||
}
|
||||
|
||||
@@ -254,6 +280,10 @@ pub fn get_empty_dirs_recursive(
|
||||
path: &str,
|
||||
include_hidden: bool,
|
||||
) -> ResultType<Vec<FileDirectory>> {
|
||||
#[cfg(any(target_os = "android", test))]
|
||||
if android::is_path(Path::new(path)) {
|
||||
return android::empty_dirs(path, include_hidden);
|
||||
}
|
||||
read_empty_dirs_recursive(&get_path(path), &get_path(""), include_hidden)
|
||||
}
|
||||
|
||||
@@ -397,6 +427,9 @@ pub struct FileDigest {
|
||||
#[derive(Default, Serialize, Debug)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct TransferJob {
|
||||
#[cfg(any(target_os = "android", all(test, unix)))]
|
||||
#[serde(skip)]
|
||||
document_transfer: android_transfer::DocumentTransfer,
|
||||
pub id: i32,
|
||||
pub r#type: JobType,
|
||||
pub remote: String,
|
||||
@@ -525,6 +558,11 @@ fn validate_fs_path_argument(path: &str, arg_name: &str) -> ResultType<()> {
|
||||
}
|
||||
|
||||
fn validate_no_symlink_components(base: &PathBuf, name: &str) -> ResultType<()> {
|
||||
#[cfg(any(target_os = "android", test))]
|
||||
if android::is_path(base) {
|
||||
// Document IDs are resolved and confined to their grant by Android, not the OS filesystem.
|
||||
return Ok(());
|
||||
}
|
||||
if name.is_empty() {
|
||||
return Ok(());
|
||||
}
|
||||
@@ -584,6 +622,10 @@ impl TransferJob {
|
||||
enable_overwrite_detection: bool,
|
||||
) -> Self {
|
||||
log::info!("new write {}", data_source);
|
||||
let is_download = is_remote && r#type == JobType::Generic;
|
||||
#[cfg(any(target_os = "android", all(test, unix)))]
|
||||
let is_download = is_download
|
||||
&& !matches!(&data_source, DataSource::FilePath(path) if android::is_path(path));
|
||||
Self {
|
||||
id,
|
||||
r#type,
|
||||
@@ -595,7 +637,7 @@ impl TransferJob {
|
||||
files: Vec::new(),
|
||||
total_size: 0,
|
||||
enable_overwrite_detection,
|
||||
download: (is_remote && r#type == JobType::Generic).then(Default::default),
|
||||
download: is_download.then(Default::default),
|
||||
..Default::default()
|
||||
}
|
||||
}
|
||||
@@ -660,6 +702,14 @@ impl TransferJob {
|
||||
if self.is_download() && !self.files.is_empty() {
|
||||
bail!("cannot replace an accepted download file list");
|
||||
}
|
||||
#[cfg(any(target_os = "android", all(test, unix)))]
|
||||
if self.is_remote
|
||||
&& self.r#type == JobType::Generic
|
||||
&& self.is_document()
|
||||
&& !self.files.is_empty()
|
||||
{
|
||||
bail!("cannot replace an accepted download file list");
|
||||
}
|
||||
validate_transfer_file_names(&files)?;
|
||||
if let DataSource::FilePath(base) = &self.data_source {
|
||||
for file in &files {
|
||||
@@ -722,6 +772,10 @@ impl TransferJob {
|
||||
}
|
||||
|
||||
pub fn modify_time(&self) {
|
||||
#[cfg(any(target_os = "android", all(test, unix)))]
|
||||
if self.is_document() {
|
||||
return;
|
||||
}
|
||||
if self.is_download() {
|
||||
if let Err(err) = self.finish_download() {
|
||||
log::error!("Failed to finish download {}: {}", self.id, err);
|
||||
@@ -752,6 +806,10 @@ impl TransferJob {
|
||||
}
|
||||
|
||||
pub fn remove_download_file(&self) {
|
||||
#[cfg(any(target_os = "android", all(test, unix)))]
|
||||
if self.is_document() {
|
||||
return;
|
||||
}
|
||||
if self.is_download() && self.data_stream.is_none() {
|
||||
return;
|
||||
}
|
||||
@@ -793,6 +851,10 @@ impl TransferJob {
|
||||
if block.id != self.id {
|
||||
bail!("Wrong id");
|
||||
}
|
||||
#[cfg(any(target_os = "android", all(test, unix)))]
|
||||
if self.is_document() {
|
||||
return self.write_document(block).await;
|
||||
}
|
||||
match &self.data_source {
|
||||
DataSource::FilePath(p) => {
|
||||
let file_num = block.file_num as usize;
|
||||
@@ -872,6 +934,10 @@ impl TransferJob {
|
||||
/// Open the data stream for the current file.
|
||||
/// Returns Ok(true) if job is done, Ok(false) otherwise.
|
||||
async fn open_data_stream(&mut self) -> ResultType<bool> {
|
||||
#[cfg(any(target_os = "android", all(test, unix)))]
|
||||
if self.is_document() {
|
||||
return self.open_document_stream().await;
|
||||
}
|
||||
let file_num = self.file_num as usize;
|
||||
match &mut self.data_source {
|
||||
DataSource::FilePath(p) => {
|
||||
@@ -911,6 +977,14 @@ impl TransferJob {
|
||||
|
||||
/// Get current file's digest (last_modified, file_size) for overwrite detection.
|
||||
async fn get_current_digest(&self) -> ResultType<(u64, u64)> {
|
||||
#[cfg(any(target_os = "android", all(test, unix)))]
|
||||
if self.is_document() {
|
||||
let entry = self
|
||||
.files
|
||||
.get(self.file_num as usize)
|
||||
.ok_or(anyhow!("Wrong file number"))?;
|
||||
return Ok((entry.modified_time, entry.size));
|
||||
}
|
||||
let meta = match self.data_stream.as_ref().ok_or(anyhow!("file is None"))? {
|
||||
DataStream::FileStream(file) => file.metadata().await?,
|
||||
DataStream::BufStream(_) => bail!("No digest for buf stream"),
|
||||
@@ -999,6 +1073,10 @@ impl TransferJob {
|
||||
self.data_stream = None;
|
||||
self.file_confirmed = false;
|
||||
self.file_is_waiting = false;
|
||||
#[cfg(any(target_os = "android", all(test, unix)))]
|
||||
if self.is_document() {
|
||||
self.fail_document_read(err.to_string());
|
||||
}
|
||||
return Err(err.into());
|
||||
}
|
||||
Ok(n) => {
|
||||
@@ -1011,6 +1089,10 @@ impl TransferJob {
|
||||
}
|
||||
unsafe { buf.set_len(offset) };
|
||||
if offset == 0 {
|
||||
#[cfg(any(target_os = "android", all(test, unix)))]
|
||||
if self.is_document() {
|
||||
self.finish_document_read().await?;
|
||||
}
|
||||
if matches!(self.data_source, DataSource::MemoryCursor(_)) {
|
||||
self.data_stream.take();
|
||||
return Ok(None);
|
||||
@@ -1118,6 +1200,10 @@ impl TransferJob {
|
||||
|
||||
/// Get job error message, useful for getting status when job had finished
|
||||
pub fn job_error(&self) -> Option<String> {
|
||||
#[cfg(any(target_os = "android", all(test, unix)))]
|
||||
if let Some(error) = &self.document_transfer.error {
|
||||
return Some(error.clone());
|
||||
}
|
||||
if self.job_skipped() {
|
||||
return Some("skipped".to_string());
|
||||
}
|
||||
@@ -1135,6 +1221,13 @@ impl TransferJob {
|
||||
}
|
||||
|
||||
async fn set_stream_offset(&mut self, file_num: usize, offset: u64) {
|
||||
#[cfg(any(target_os = "android", all(test, unix)))]
|
||||
if self.is_document() {
|
||||
if let Err(error) = self.seek_document(offset).await {
|
||||
self.fail_document_read(error.to_string());
|
||||
}
|
||||
return;
|
||||
}
|
||||
if file_num >= self.files.len() {
|
||||
return;
|
||||
}
|
||||
@@ -1189,6 +1282,10 @@ impl TransferJob {
|
||||
}
|
||||
|
||||
pub async fn confirm(&mut self, r: &FileTransferSendConfirmRequest) -> bool {
|
||||
#[cfg(any(target_os = "android", all(test, unix)))]
|
||||
if self.is_document() && self.is_remote {
|
||||
self.confirm_document(r);
|
||||
}
|
||||
if self.is_download() {
|
||||
self.confirm_download(r);
|
||||
// Open receiver resume streams in write() so validation errors reach the caller.
|
||||
@@ -1424,6 +1521,10 @@ pub async fn handle_read_jobs(
|
||||
}
|
||||
|
||||
pub fn remove_all_empty_dir(path: &Path) -> ResultType<()> {
|
||||
#[cfg(any(target_os = "android", test))]
|
||||
if android::is_path(path) {
|
||||
return android::remove_empty_tree(&get_string(path));
|
||||
}
|
||||
let fd = read_dir(path, true)?;
|
||||
for entry in fd.entries.iter() {
|
||||
match entry.entry_type.enum_value() {
|
||||
@@ -1442,6 +1543,10 @@ pub fn remove_all_empty_dir(path: &Path) -> ResultType<()> {
|
||||
|
||||
#[inline]
|
||||
pub fn remove_file(file: &str) -> ResultType<()> {
|
||||
#[cfg(any(target_os = "android", test))]
|
||||
if android::is_path(Path::new(file)) {
|
||||
return android::remove_file(file);
|
||||
}
|
||||
validate_fs_path_argument(file, "file path")?;
|
||||
std::fs::remove_file(get_path(file))?;
|
||||
Ok(())
|
||||
@@ -1449,6 +1554,10 @@ pub fn remove_file(file: &str) -> ResultType<()> {
|
||||
|
||||
#[inline]
|
||||
pub fn create_dir(dir: &str) -> ResultType<()> {
|
||||
#[cfg(any(target_os = "android", test))]
|
||||
if android::is_path(Path::new(dir)) {
|
||||
return android::operation("mkdir", dir);
|
||||
}
|
||||
validate_fs_path_argument(dir, "directory path")?;
|
||||
std::fs::create_dir_all(get_path(dir))?;
|
||||
Ok(())
|
||||
@@ -1456,6 +1565,10 @@ pub fn create_dir(dir: &str) -> ResultType<()> {
|
||||
|
||||
#[inline]
|
||||
pub fn rename_file(path: &str, new_name: &str) -> ResultType<()> {
|
||||
#[cfg(any(target_os = "android", test))]
|
||||
if android::is_path(Path::new(path)) {
|
||||
return android::rename(path, new_name);
|
||||
}
|
||||
validate_fs_path_argument(path, "path")?;
|
||||
if new_name.is_empty() {
|
||||
bail!("new file name cannot be empty");
|
||||
@@ -1493,6 +1606,26 @@ pub fn is_write_need_confirmation(
|
||||
file_path: &str,
|
||||
digest: &FileTransferDigest,
|
||||
) -> ResultType<DigestCheckResult> {
|
||||
#[cfg(any(target_os = "android", test))]
|
||||
if android::is_path(Path::new(file_path)) {
|
||||
android::validate(file_path)?;
|
||||
if is_resume {
|
||||
bail!("Document transfers must be restarted after interruption");
|
||||
}
|
||||
return match android::stat(file_path)? {
|
||||
Some(entry) => Ok(DigestCheckResult::NeedConfirm(FileTransferDigest {
|
||||
id: digest.id,
|
||||
file_num: digest.file_num,
|
||||
last_modified: entry.modified_time,
|
||||
file_size: entry.size,
|
||||
is_identical: entry.modified_time != 0
|
||||
&& entry.modified_time == digest.last_modified
|
||||
&& entry.size == digest.file_size,
|
||||
..Default::default()
|
||||
})),
|
||||
None => Ok(DigestCheckResult::NoSuchFile),
|
||||
};
|
||||
}
|
||||
let path = Path::new(file_path);
|
||||
let digest_file = format!("{}.digest", file_path);
|
||||
let download_file = format!("{}.download", file_path);
|
||||
|
||||
@@ -0,0 +1,280 @@
|
||||
use super::{FileDirectory, FileEntry, FileType};
|
||||
use hbb_common::{anyhow::anyhow, bail, ResultType};
|
||||
use serde_derive::Deserialize;
|
||||
use serde_json::{json, Value};
|
||||
use std::{path::Path, sync::OnceLock};
|
||||
|
||||
pub const ROOT: &str = "/@rustdesk/";
|
||||
type Request = Box<dyn Fn(&str) -> ResultType<String> + Send + Sync>;
|
||||
static BACKEND: OnceLock<Request> = OnceLock::new();
|
||||
|
||||
pub fn initialize(
|
||||
request: impl Fn(&str) -> ResultType<String> + Send + Sync + 'static,
|
||||
) -> ResultType<()> {
|
||||
BACKEND
|
||||
.set(Box::new(request))
|
||||
.map_err(|_| anyhow!("Document storage already initialized"))
|
||||
}
|
||||
|
||||
pub fn is_path(path: &Path) -> bool {
|
||||
path.to_str().map_or(false, |p| {
|
||||
p == ROOT.trim_end_matches('/') || p.starts_with(ROOT)
|
||||
})
|
||||
}
|
||||
|
||||
pub(super) fn validate(path: &str) -> ResultType<()> {
|
||||
let relative = path
|
||||
.strip_prefix(ROOT)
|
||||
.and_then(|path| path.strip_prefix("tree/"))
|
||||
.ok_or(anyhow!("Invalid document path"))?;
|
||||
if relative
|
||||
.split('/')
|
||||
.any(|p| p.is_empty() || p == "." || p == ".." || p.contains(['\\', '\0']))
|
||||
{
|
||||
bail!("Invalid document path");
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn request(value: Value) -> ResultType<Value> {
|
||||
if let Some(path) = value.get("path").and_then(Value::as_str) {
|
||||
validate(path)?;
|
||||
}
|
||||
let backend = BACKEND
|
||||
.get()
|
||||
.ok_or(anyhow!("Android document storage is unavailable"))?;
|
||||
let response: Value = serde_json::from_str(&backend(&value.to_string())?)?;
|
||||
if let Some(error) = response.get("error").and_then(Value::as_str) {
|
||||
bail!("{}", error);
|
||||
}
|
||||
response
|
||||
.get("value")
|
||||
.cloned()
|
||||
.ok_or(anyhow!("Invalid document provider response"))
|
||||
}
|
||||
|
||||
pub fn home() -> ResultType<Option<String>> {
|
||||
let value = request(json!({"op": "home"}))?;
|
||||
if value.is_null() {
|
||||
return Ok(None);
|
||||
}
|
||||
let path = value.as_str().ok_or(anyhow!("Invalid document home"))?;
|
||||
validate(path)?;
|
||||
Ok(Some(path.to_owned()))
|
||||
}
|
||||
|
||||
pub fn allowed(path: &str) -> ResultType<bool> {
|
||||
if !home()?.map_or(false, |home| Path::new(path).starts_with(home)) {
|
||||
return Ok(false);
|
||||
}
|
||||
request(json!({"op": "allowed", "path": path}))?
|
||||
.as_bool()
|
||||
.ok_or(anyhow!("Invalid document permission response"))
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
struct Metadata {
|
||||
name: String,
|
||||
directory: bool,
|
||||
size: i64,
|
||||
modified: i64,
|
||||
}
|
||||
|
||||
fn entry(value: Value) -> ResultType<FileEntry> {
|
||||
let meta: Metadata = serde_json::from_value(value)?;
|
||||
super::validate_file_name_no_traversal(&meta.name)?;
|
||||
if meta.name.contains('/') || (!meta.directory && meta.size < 0) {
|
||||
bail!("The provider did not supply a transferable file name or size");
|
||||
}
|
||||
Ok(FileEntry {
|
||||
entry_type: if meta.directory {
|
||||
FileType::Dir
|
||||
} else {
|
||||
FileType::File
|
||||
}
|
||||
.into(),
|
||||
is_hidden: meta.name.starts_with('.'),
|
||||
name: meta.name,
|
||||
size: if meta.directory { 0 } else { meta.size as u64 },
|
||||
modified_time: meta.modified.max(0) as u64,
|
||||
..Default::default()
|
||||
})
|
||||
}
|
||||
|
||||
pub fn stat(path: &str) -> ResultType<Option<FileEntry>> {
|
||||
let value = request(json!({"op": "stat", "path": path}))?;
|
||||
if value.is_null() {
|
||||
Ok(None)
|
||||
} else {
|
||||
entry(value).map(Some)
|
||||
}
|
||||
}
|
||||
|
||||
pub fn read_dir(path: &str, hidden: bool) -> ResultType<FileDirectory> {
|
||||
let values: Vec<Value> = serde_json::from_value(request(json!({"op": "list", "path": path}))?)?;
|
||||
let mut entries = Vec::new();
|
||||
for value in values {
|
||||
let entry = entry(value)?;
|
||||
if hidden || !entry.is_hidden {
|
||||
entries.push(entry);
|
||||
}
|
||||
}
|
||||
Ok(FileDirectory {
|
||||
path: path.to_owned(),
|
||||
entries,
|
||||
..Default::default()
|
||||
})
|
||||
}
|
||||
|
||||
pub fn recursive_files(path: &str, hidden: bool) -> ResultType<Vec<FileEntry>> {
|
||||
let meta = stat(path)?.ok_or(anyhow!("Document does not exist"))?;
|
||||
if meta.entry_type.enum_value() == Ok(FileType::File) {
|
||||
return Ok(vec![FileEntry {
|
||||
name: String::new(),
|
||||
..meta
|
||||
}]);
|
||||
}
|
||||
let mut files = Vec::new();
|
||||
let mut pending = vec![(path.to_owned(), String::new())];
|
||||
while let Some((directory, prefix)) = pending.pop() {
|
||||
for mut entry in read_dir(&directory, hidden)?.entries {
|
||||
let path = format!("{}/{}", directory, entry.name);
|
||||
entry.name = if prefix.is_empty() {
|
||||
entry.name
|
||||
} else {
|
||||
format!("{}/{}", prefix, entry.name)
|
||||
};
|
||||
if entry.entry_type.enum_value() == Ok(FileType::Dir) {
|
||||
pending.push((path, entry.name));
|
||||
} else {
|
||||
files.push(entry);
|
||||
}
|
||||
}
|
||||
}
|
||||
Ok(files)
|
||||
}
|
||||
|
||||
pub fn empty_dirs(path: &str, hidden: bool) -> ResultType<Vec<FileDirectory>> {
|
||||
let mut result = Vec::new();
|
||||
let mut pending = vec![path.to_owned()];
|
||||
while let Some(path) = pending.pop() {
|
||||
let directory = read_dir(&path, hidden)?;
|
||||
if directory.entries.is_empty() {
|
||||
result.push(directory);
|
||||
continue;
|
||||
}
|
||||
for entry in directory.entries {
|
||||
if entry.entry_type.enum_value() == Ok(FileType::Dir) {
|
||||
pending.push(format!("{}/{}", path, entry.name));
|
||||
}
|
||||
}
|
||||
}
|
||||
Ok(result)
|
||||
}
|
||||
|
||||
pub fn operation(op: &str, path: &str) -> ResultType<()> {
|
||||
request(json!({"op": op, "path": path}))?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn remove_empty_dir(path: &str) -> ResultType<()> {
|
||||
if !read_dir(path, true)?.entries.is_empty() {
|
||||
bail!("Directory is not empty");
|
||||
}
|
||||
operation("delete", path)
|
||||
}
|
||||
|
||||
pub fn remove_file(path: &str) -> ResultType<()> {
|
||||
let entry = stat(path)?.ok_or(anyhow!("Document does not exist"))?;
|
||||
if entry.entry_type.enum_value() != Ok(FileType::File) {
|
||||
bail!("Cannot remove a directory as a file");
|
||||
}
|
||||
operation("delete", path)
|
||||
}
|
||||
|
||||
pub fn remove_empty_tree(path: &str) -> ResultType<()> {
|
||||
validate(path)?;
|
||||
let tree_prefix = Path::new(ROOT).join("tree");
|
||||
if Path::new(path).parent().and_then(Path::parent) == Some(tree_prefix.as_path()) {
|
||||
bail!("Cannot delete a shared root");
|
||||
}
|
||||
let mut directories = vec![path.to_owned()];
|
||||
let mut index = 0;
|
||||
while index < directories.len() {
|
||||
for entry in read_dir(&directories[index], true)?.entries {
|
||||
if entry.entry_type.enum_value() != Ok(FileType::Dir) {
|
||||
bail!("Directory is not empty");
|
||||
}
|
||||
directories.push(format!("{}/{}", directories[index], entry.name));
|
||||
}
|
||||
index += 1;
|
||||
}
|
||||
for directory in directories.into_iter().rev() {
|
||||
remove_empty_dir(&directory)?;
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn rename(path: &str, name: &str) -> ResultType<()> {
|
||||
super::validate_file_name_no_traversal(name)?;
|
||||
request(json!({"op": "rename", "path": path, "name": name}))?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[cfg(any(target_os = "android", all(test, unix)))]
|
||||
pub fn take_file(value: &Value) -> ResultType<std::fs::File> {
|
||||
use std::convert::TryFrom;
|
||||
use std::os::fd::FromRawFd;
|
||||
let fd = value
|
||||
.as_i64()
|
||||
.and_then(|fd| i32::try_from(fd).ok())
|
||||
.filter(|fd| *fd >= 0)
|
||||
.ok_or(anyhow!("Invalid document descriptor"))?;
|
||||
// Android hands off a duplicate; Java retains the provider's close/error channel.
|
||||
Ok(unsafe { std::fs::File::from_raw_fd(fd) })
|
||||
}
|
||||
|
||||
#[cfg(any(target_os = "android", all(test, unix)))]
|
||||
pub(super) async fn open(
|
||||
path: String,
|
||||
) -> ResultType<(
|
||||
tokio::fs::File,
|
||||
super::android_descriptor::DocumentDescriptor,
|
||||
Option<(u64, u64)>,
|
||||
)> {
|
||||
use std::os::unix::fs::MetadataExt;
|
||||
|
||||
let (file, descriptor, digest) = tokio::task::spawn_blocking(move || {
|
||||
let token = request(json!({"op": "open", "path": path}))?;
|
||||
let file = take_file(&token["fd"])?;
|
||||
let descriptor = super::android_descriptor::DocumentDescriptor::new(&token)?;
|
||||
let metadata = file.metadata()?;
|
||||
// Stream inode timestamps do not identify the source document's version.
|
||||
let digest = metadata
|
||||
.is_file()
|
||||
.then(|| (metadata.mtime().max(0) as u64, metadata.len()));
|
||||
Ok::<_, hbb_common::anyhow::Error>((file, descriptor, digest))
|
||||
})
|
||||
.await??;
|
||||
Ok((tokio::fs::File::from_std(file), descriptor, digest))
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
#[path = "tests/android_tests.rs"]
|
||||
mod tests;
|
||||
|
||||
#[cfg(test)]
|
||||
mod metadata_tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn negative_modification_time_is_unknown() {
|
||||
for modified in [-1, 0, 1] {
|
||||
let metadata = entry(json!({
|
||||
"name": "notes.txt", "directory": false, "size": 12, "modified": modified
|
||||
}))
|
||||
.unwrap();
|
||||
assert_eq!(metadata.modified_time, modified.max(0) as u64);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
use super::android;
|
||||
use hbb_common::{anyhow::anyhow, ResultType};
|
||||
use serde_json::{json, Value};
|
||||
use std::time::Duration;
|
||||
|
||||
const CLOSE_ERROR_LOG_INTERVAL: Duration = Duration::from_secs(60);
|
||||
|
||||
#[derive(Debug)]
|
||||
pub(super) struct DocumentDescriptor {
|
||||
id: Option<String>,
|
||||
}
|
||||
|
||||
impl DocumentDescriptor {
|
||||
pub(super) fn new(token: &Value) -> ResultType<Self> {
|
||||
let id = token["descriptor"]
|
||||
.as_str()
|
||||
.ok_or(anyhow!("Missing document descriptor"))?;
|
||||
Ok(Self {
|
||||
id: Some(id.to_owned()),
|
||||
})
|
||||
}
|
||||
|
||||
pub(super) async fn close(mut self, error: &str) -> ResultType<()> {
|
||||
let id = self.id.take().ok_or(anyhow!("Document already closed"))?;
|
||||
let error = error.to_owned();
|
||||
tokio::task::spawn_blocking(move || {
|
||||
android::request(json!({
|
||||
"op": "close", "descriptor": id, "error": error
|
||||
}))
|
||||
})
|
||||
.await??;
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for DocumentDescriptor {
|
||||
fn drop(&mut self) {
|
||||
let Some(id) = self.id.take() else {
|
||||
return;
|
||||
};
|
||||
// Aborted jobs must also release the provider's retained descriptor.
|
||||
tokio::task::spawn_blocking(move || {
|
||||
if let Err(error) = android::request(json!({
|
||||
"op": "close", "descriptor": id, "error": "Document transfer interrupted"
|
||||
})) {
|
||||
hbb_common::throttled_log!(
|
||||
CLOSE_ERROR_LOG_INTERVAL,
|
||||
warn,
|
||||
"Unable to release document descriptor: {}",
|
||||
error
|
||||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,296 @@
|
||||
use super::{
|
||||
android, android_descriptor::DocumentDescriptor, file_transfer_send_confirm_request,
|
||||
DataSource, DataStream, FileTransferBlock, FileTransferSendConfirmRequest, TransferJob,
|
||||
};
|
||||
use hbb_common::{anyhow::anyhow, bail, compress::decompress, ResultType};
|
||||
use serde_json::{json, Value};
|
||||
use tokio::{
|
||||
fs::File,
|
||||
io::{AsyncSeekExt, AsyncWriteExt},
|
||||
task::spawn_blocking,
|
||||
};
|
||||
|
||||
#[derive(Debug, Default)]
|
||||
pub(super) struct DocumentTransfer {
|
||||
reader: Option<DocumentDescriptor>,
|
||||
pending: Option<PendingWrite>,
|
||||
confirmed_file: Option<i32>,
|
||||
pub error: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
struct PendingWrite {
|
||||
file: File,
|
||||
descriptor: DocumentDescriptor,
|
||||
token: Value,
|
||||
path: String,
|
||||
}
|
||||
|
||||
impl TransferJob {
|
||||
pub fn is_document(&self) -> bool {
|
||||
matches!(&self.data_source, DataSource::FilePath(path) if android::is_path(path))
|
||||
}
|
||||
|
||||
pub(super) fn confirm_document(&mut self, request: &FileTransferSendConfirmRequest) {
|
||||
if request.id != self.id {
|
||||
return;
|
||||
}
|
||||
let overwrite = matches!(
|
||||
request.union,
|
||||
Some(file_transfer_send_confirm_request::Union::OffsetBlk(0))
|
||||
| Some(file_transfer_send_confirm_request::Union::Skip(false))
|
||||
);
|
||||
self.document_transfer.confirmed_file = (overwrite
|
||||
&& self.files.get(request.file_num as usize).is_some())
|
||||
.then_some(request.file_num);
|
||||
}
|
||||
|
||||
fn document_path(&self, file_num: usize) -> ResultType<String> {
|
||||
let DataSource::FilePath(base) = &self.data_source else {
|
||||
bail!("Not a document transfer");
|
||||
};
|
||||
let entry = self
|
||||
.files
|
||||
.get(file_num)
|
||||
.ok_or(anyhow!("Wrong file number"))?;
|
||||
super::validate_file_name_no_traversal(&entry.name)?;
|
||||
Ok(Self::join(base, &entry.name).to_string_lossy().into_owned())
|
||||
}
|
||||
|
||||
pub(super) async fn open_document_stream(&mut self) -> ResultType<bool> {
|
||||
if let Some(error) = &self.document_transfer.error {
|
||||
self.file_num = self.files.len() as i32;
|
||||
self.data_stream.take();
|
||||
bail!("{}", error);
|
||||
}
|
||||
if self.file_num as usize >= self.files.len() {
|
||||
self.data_stream.take();
|
||||
return Ok(true);
|
||||
}
|
||||
if self.data_stream.is_some() {
|
||||
return Ok(false);
|
||||
}
|
||||
let result = android::open(self.document_path(self.file_num as usize)?).await;
|
||||
self.file_confirmed = false;
|
||||
self.file_is_waiting = false;
|
||||
match result {
|
||||
Ok((file, descriptor, digest)) => {
|
||||
let entry = self
|
||||
.files
|
||||
.get_mut(self.file_num as usize)
|
||||
.ok_or(anyhow!("Wrong file number"))?;
|
||||
entry.modified_time = digest.map_or(0, |(modified, _)| modified);
|
||||
entry.size = digest.map_or(entry.size, |(_, size)| size);
|
||||
self.data_stream = Some(DataStream::FileStream(file));
|
||||
self.document_transfer.reader = Some(descriptor);
|
||||
}
|
||||
Err(error) => {
|
||||
self.fail_document_read(error.to_string());
|
||||
return Err(error);
|
||||
}
|
||||
}
|
||||
Ok(false)
|
||||
}
|
||||
|
||||
pub(super) async fn finish_document_read(&mut self) -> ResultType<()> {
|
||||
self.data_stream.take();
|
||||
let descriptor = self
|
||||
.document_transfer
|
||||
.reader
|
||||
.take()
|
||||
.ok_or(anyhow!("No open document reader"))?;
|
||||
let result = descriptor.close("").await;
|
||||
if let Err(error) = &result {
|
||||
self.fail_document_read(error.to_string());
|
||||
}
|
||||
result
|
||||
}
|
||||
|
||||
pub(super) fn fail_document_read(&mut self, error: String) {
|
||||
self.document_transfer.error = Some(error);
|
||||
self.file_num = self.files.len() as i32;
|
||||
self.file_confirmed = false;
|
||||
self.file_is_waiting = false;
|
||||
self.document_transfer.reader.take();
|
||||
}
|
||||
|
||||
pub(super) async fn write_document(&mut self, block: FileTransferBlock) -> ResultType<()> {
|
||||
if let Some(error) = &self.document_transfer.error {
|
||||
bail!("{}", error);
|
||||
}
|
||||
let result = self.write_document_block(&block).await;
|
||||
if let Err(error) = &result {
|
||||
self.document_transfer.error = Some(error.to_string());
|
||||
if let Err(cleanup_error) = self.cancel_document().await {
|
||||
const CLEANUP_ERROR_LOG_INTERVAL: std::time::Duration =
|
||||
std::time::Duration::from_secs(60);
|
||||
hbb_common::throttled_log!(
|
||||
CLEANUP_ERROR_LOG_INTERVAL,
|
||||
warn,
|
||||
"Failed to clean up document transfer {}: {}",
|
||||
self.id,
|
||||
cleanup_error
|
||||
);
|
||||
}
|
||||
}
|
||||
result
|
||||
}
|
||||
|
||||
async fn write_document_block(&mut self, block: &FileTransferBlock) -> ResultType<()> {
|
||||
if self.is_resume {
|
||||
bail!("Document transfers must be restarted after interruption");
|
||||
}
|
||||
let path = self.document_path(block.file_num as usize)?;
|
||||
if self.document_transfer.pending.as_ref().map(|p| &p.path) != Some(&path) {
|
||||
self.finish_document().await?;
|
||||
// Upload senders handle confirmation when overwrite detection is supported.
|
||||
let overwrite = (!self.is_remote && self.enable_overwrite_detection)
|
||||
|| self.document_transfer.confirmed_file.take() == Some(block.file_num);
|
||||
self.document_transfer.pending = Some(begin_write(path, overwrite).await?);
|
||||
self.file_num = block.file_num;
|
||||
}
|
||||
let pending = self
|
||||
.document_transfer
|
||||
.pending
|
||||
.as_mut()
|
||||
.ok_or(anyhow!("No open document"))?;
|
||||
let data = if block.compressed {
|
||||
std::borrow::Cow::Owned(decompress(&block.data))
|
||||
} else {
|
||||
std::borrow::Cow::Borrowed(block.data.as_ref())
|
||||
};
|
||||
pending.file.write_all(&data).await?;
|
||||
self.finished_size += data.len() as u64;
|
||||
self.transferred += block.data.len() as u64;
|
||||
if block.data.is_empty() {
|
||||
self.finish_document().await?;
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub async fn finish_document(&mut self) -> ResultType<()> {
|
||||
if let Some(error) = &self.document_transfer.error {
|
||||
bail!("{}", error);
|
||||
}
|
||||
let Some(pending) = self.document_transfer.pending.take() else {
|
||||
return Ok(());
|
||||
};
|
||||
let result = finish_write(pending).await;
|
||||
if let Err(error) = &result {
|
||||
self.document_transfer.error = Some(error.to_string());
|
||||
}
|
||||
result
|
||||
}
|
||||
|
||||
pub async fn cancel_document(&mut self) -> ResultType<()> {
|
||||
let Some(pending) = self.document_transfer.pending.take() else {
|
||||
return Ok(());
|
||||
};
|
||||
let PendingWrite {
|
||||
file,
|
||||
descriptor,
|
||||
path,
|
||||
token,
|
||||
} = pending;
|
||||
drop(file);
|
||||
let result = descriptor.close("Document transfer canceled").await;
|
||||
discard_write(path, token, result).await
|
||||
}
|
||||
|
||||
pub(super) async fn seek_document(&mut self, offset: u64) -> ResultType<()> {
|
||||
let Some(DataStream::FileStream(file)) = self.data_stream.as_mut() else {
|
||||
bail!("Document receives must be restarted after interruption");
|
||||
};
|
||||
let entry = self
|
||||
.files
|
||||
.get(self.file_num as usize)
|
||||
.ok_or(anyhow!("Wrong file number"))?;
|
||||
if offset > 0 && entry.modified_time == 0 {
|
||||
bail!(
|
||||
"Cannot resume a document with an unknown modification time; restart the transfer"
|
||||
);
|
||||
}
|
||||
file.seek(std::io::SeekFrom::Start(offset)).await?;
|
||||
self.finished_size += offset;
|
||||
self.transferred += offset;
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
async fn begin_write(path: String, overwrite: bool) -> ResultType<PendingWrite> {
|
||||
spawn_blocking(move || {
|
||||
let token = android::request(json!({
|
||||
"op": "begin", "path": path, "overwrite": overwrite
|
||||
}))?;
|
||||
let file = android::take_file(&token["fd"])?;
|
||||
let descriptor = DocumentDescriptor::new(&token)?;
|
||||
Ok(PendingWrite {
|
||||
file: File::from_std(file),
|
||||
descriptor,
|
||||
token,
|
||||
path,
|
||||
})
|
||||
})
|
||||
.await?
|
||||
}
|
||||
|
||||
async fn finish_write(pending: PendingWrite) -> ResultType<()> {
|
||||
let PendingWrite {
|
||||
mut file,
|
||||
descriptor,
|
||||
path,
|
||||
token,
|
||||
} = pending;
|
||||
let written: ResultType<()> = async {
|
||||
file.flush().await?;
|
||||
file.sync_all().await?;
|
||||
Ok(())
|
||||
}
|
||||
.await;
|
||||
drop(file);
|
||||
let message = written
|
||||
.as_ref()
|
||||
.err()
|
||||
.map(ToString::to_string)
|
||||
.unwrap_or_default();
|
||||
let closed = descriptor.close(&message).await;
|
||||
let result = match (written, closed) {
|
||||
(Err(error), Err(close_error)) => Err(anyhow!(
|
||||
"{}; closing document failed: {}",
|
||||
error,
|
||||
close_error
|
||||
)),
|
||||
(Err(error), _) | (_, Err(error)) => Err(error),
|
||||
_ => Ok(()),
|
||||
};
|
||||
if result.is_err() {
|
||||
return discard_write(path, token, result).await;
|
||||
}
|
||||
spawn_blocking(move || {
|
||||
android::request(json!({
|
||||
"op": "finish", "path": path, "token": token
|
||||
}))
|
||||
})
|
||||
.await??;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
async fn discard_write(path: String, token: Value, result: ResultType<()>) -> ResultType<()> {
|
||||
let cleanup: ResultType<()> = async {
|
||||
spawn_blocking(move || {
|
||||
android::request(json!({
|
||||
"op": "discard", "path": path, "token": token
|
||||
}))
|
||||
})
|
||||
.await??;
|
||||
Ok(())
|
||||
}
|
||||
.await;
|
||||
match (result, cleanup) {
|
||||
(Err(error), Err(cleanup)) => {
|
||||
bail!("{}; temporary document cleanup failed: {}", error, cleanup)
|
||||
}
|
||||
(Err(error), _) | (_, Err(error)) => Err(error),
|
||||
_ => Ok(()),
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,288 @@
|
||||
use super::*;
|
||||
|
||||
#[cfg(unix)]
|
||||
#[path = "android_write_tests.rs"]
|
||||
mod write_tests;
|
||||
|
||||
#[cfg(unix)]
|
||||
use super::super::{
|
||||
DataSource, FileTransferBlock, FileTransferSendConfirmRequest, JobType, TransferJob,
|
||||
};
|
||||
|
||||
#[cfg(unix)]
|
||||
fn provider(output: &Path, request: &str) -> ResultType<String> {
|
||||
use std::{fs::File, os::fd::IntoRawFd};
|
||||
|
||||
let request: Value = serde_json::from_str(request)?;
|
||||
let modified = output.metadata().map_or(0, |m| std::os::unix::fs::MetadataExt::mtime(&m));
|
||||
let metadata = json!({"name": "notes.txt", "directory": false, "size": 12, "modified": modified});
|
||||
let value = match request["op"].as_str() {
|
||||
Some("home") => json!("/@rustdesk/tree/selected/Documents"),
|
||||
Some("allowed") => json!(true),
|
||||
Some("list") => json!([metadata]),
|
||||
Some("stat") if request["path"].as_str().unwrap().ends_with(".txt") => metadata,
|
||||
Some("stat") => json!({"name": "Documents", "directory": true, "size": 0, "modified": 0}),
|
||||
Some("begin") if request["path"].as_str().unwrap().contains("write-error") => {
|
||||
std::fs::write(output, b"partial")?;
|
||||
json!({"fd": File::open(output)?.into_raw_fd(), "descriptor": request["path"]})
|
||||
}
|
||||
Some("begin") => {
|
||||
if output.exists() && request["overwrite"].as_bool() == Some(false) {
|
||||
return Ok(json!({"error": "Document overwrite requires confirmation"}).to_string());
|
||||
}
|
||||
json!({"fd": File::create(output)?.into_raw_fd(), "descriptor": request["path"]})
|
||||
}
|
||||
Some("open") => write_tests::open_source(output, &request)?,
|
||||
Some("close")
|
||||
if request["descriptor"]
|
||||
.as_str()
|
||||
.unwrap()
|
||||
.ends_with("broken.txt") =>
|
||||
{
|
||||
return Ok(json!({"error": "Provider read failed"}).to_string())
|
||||
}
|
||||
Some("close") => json!(true),
|
||||
Some("finish") if request["path"].as_str().unwrap().ends_with("failed.txt") => {
|
||||
return Ok(json!({"error": "Publishing failed"}).to_string())
|
||||
}
|
||||
Some("finish") => json!(true),
|
||||
Some("discard") => {
|
||||
if request["path"].as_str().unwrap().contains("discard-error") {
|
||||
bail!("Provider cleanup failed");
|
||||
}
|
||||
std::fs::remove_file(output)?;
|
||||
json!(true)
|
||||
}
|
||||
_ => bail!("Unexpected operation"),
|
||||
};
|
||||
Ok(json!({"value": value}).to_string())
|
||||
}
|
||||
|
||||
#[cfg(unix)]
|
||||
fn receiving(path: &str) -> TransferJob {
|
||||
receiving_files(path, vec![FileEntry::default()])
|
||||
}
|
||||
|
||||
#[cfg(unix)]
|
||||
fn receiving_files(path: &str, files: Vec<FileEntry>) -> TransferJob {
|
||||
TransferJob::new_write(
|
||||
1,
|
||||
JobType::Generic,
|
||||
String::new(),
|
||||
DataSource::FilePath(path.into()),
|
||||
0,
|
||||
false,
|
||||
true,
|
||||
false,
|
||||
)
|
||||
.with_files(files)
|
||||
.unwrap()
|
||||
}
|
||||
|
||||
#[cfg(unix)]
|
||||
fn block(file_num: i32, data: &[u8]) -> FileTransferBlock {
|
||||
FileTransferBlock {
|
||||
id: 1,
|
||||
file_num,
|
||||
data: data.to_vec().into(),
|
||||
..Default::default()
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(unix)]
|
||||
fn sending(path: &str, overwrite_detection: bool) -> TransferJob {
|
||||
TransferJob::new_read(
|
||||
2,
|
||||
JobType::Generic,
|
||||
String::new(),
|
||||
DataSource::FilePath(path.into()),
|
||||
0,
|
||||
false,
|
||||
false,
|
||||
overwrite_detection,
|
||||
)
|
||||
.unwrap()
|
||||
}
|
||||
|
||||
#[cfg(unix)]
|
||||
async fn receive(path: &str, succeeds: bool, output: &Path) {
|
||||
let mut job = receiving(path);
|
||||
confirm_overwrite(&mut job, 0).await;
|
||||
job.write(block(0, b"hello, world")).await.unwrap();
|
||||
let eof = job.write(block(0, b"")).await;
|
||||
assert_eq!(eof.is_ok(), succeeds);
|
||||
assert_eq!(job.finish_document().await.is_ok(), succeeds);
|
||||
assert_eq!(job.job_error().is_some(), !succeeds);
|
||||
job.cancel_document().await.unwrap();
|
||||
assert_eq!(std::fs::read(output).unwrap(), b"hello, world");
|
||||
}
|
||||
|
||||
#[cfg(unix)]
|
||||
async fn confirm_overwrite(job: &mut TransferJob, file_num: i32) {
|
||||
let mut confirmation = FileTransferSendConfirmRequest {
|
||||
id: job.id(),
|
||||
file_num,
|
||||
..Default::default()
|
||||
};
|
||||
confirmation.set_offset_blk(0);
|
||||
job.confirm(&confirmation).await;
|
||||
}
|
||||
|
||||
#[cfg(unix)]
|
||||
async fn overwrite_requires_matching_confirmation(path: &str, output: &Path) {
|
||||
std::fs::write(output, b"original").unwrap();
|
||||
let mut job = receiving(&format!("{path}/notes.txt"));
|
||||
assert!(job.write(block(0, b"")).await.is_err());
|
||||
assert_eq!(std::fs::read(output).unwrap(), b"original");
|
||||
|
||||
let files = ["first.txt", "second.txt"]
|
||||
.map(|name| FileEntry {
|
||||
name: name.into(),
|
||||
..Default::default()
|
||||
})
|
||||
.to_vec();
|
||||
let mut job = receiving_files(path, files.clone());
|
||||
confirm_overwrite(&mut job, 0).await;
|
||||
assert!(job.set_files(vec![files[1].clone()]).is_err());
|
||||
assert_eq!(job.files(), &files);
|
||||
job.write(block(0, b"")).await.unwrap();
|
||||
std::fs::write(output, b"second original").unwrap();
|
||||
assert!(job.write(block(1, b"")).await.is_err());
|
||||
assert_eq!(std::fs::read(output).unwrap(), b"second original");
|
||||
|
||||
let mut job = receiving_files(path, files);
|
||||
confirm_overwrite(&mut job, 1).await;
|
||||
job.write(block(1, b"")).await.unwrap();
|
||||
assert!(std::fs::read(output).unwrap().is_empty());
|
||||
}
|
||||
|
||||
#[cfg(unix)]
|
||||
async fn host_upload_respects_overwrite_support(path: &str, output: &Path) {
|
||||
for (overwrite_detection, exists) in [(false, false), (false, true), (true, true)] {
|
||||
if exists {
|
||||
std::fs::write(output, b"original").unwrap();
|
||||
}
|
||||
let mut job = TransferJob::new_write(
|
||||
1,
|
||||
JobType::Generic,
|
||||
String::new(),
|
||||
DataSource::FilePath(format!("{path}/notes.txt").into()),
|
||||
0,
|
||||
false,
|
||||
false,
|
||||
overwrite_detection,
|
||||
)
|
||||
.with_files(vec![FileEntry::default()])
|
||||
.unwrap();
|
||||
let result = job.write(block(0, b"replacement")).await;
|
||||
if exists && !overwrite_detection {
|
||||
assert_eq!(
|
||||
result.unwrap_err().to_string(),
|
||||
"Document overwrite requires confirmation"
|
||||
);
|
||||
assert_eq!(std::fs::read(output).unwrap(), b"original");
|
||||
} else {
|
||||
result.unwrap();
|
||||
job.finish_document().await.unwrap();
|
||||
assert_eq!(std::fs::read(output).unwrap(), b"replacement");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(unix)]
|
||||
#[tokio::test]
|
||||
async fn selected_folder_transfers_directly_and_preserves_data_on_publish_failure() {
|
||||
use std::time::{SystemTime, UNIX_EPOCH};
|
||||
|
||||
let output = std::env::temp_dir().join(format!(
|
||||
"rustdesk-documents-{}",
|
||||
SystemTime::now()
|
||||
.duration_since(UNIX_EPOCH)
|
||||
.unwrap()
|
||||
.as_nanos()
|
||||
));
|
||||
let provider_output = output.clone();
|
||||
initialize(move |request| provider(&provider_output, request)).unwrap();
|
||||
let path = "/@rustdesk/tree/selected/Documents";
|
||||
assert!(allowed(path).unwrap() && allowed(&format!("{path}/notes.txt")).unwrap());
|
||||
assert!(!allowed(&format!("{path}-private/notes.txt")).unwrap());
|
||||
assert!(!allowed("/@rustdesk/tree/previous/Documents/notes.txt").unwrap());
|
||||
let directory = super::super::read_dir(Path::new(path), false).unwrap();
|
||||
assert_eq!(directory.path, path);
|
||||
assert_eq!(directory.entries[0].name, "notes.txt");
|
||||
let files = super::super::get_recursive_files(path, false).unwrap();
|
||||
assert_eq!(files[0].name, "notes.txt");
|
||||
assert_eq!(files[0].size, 12);
|
||||
assert!(remove_empty_tree(path).unwrap_err().to_string() == "Cannot delete a shared root");
|
||||
assert!(super::super::remove_file(path).is_err());
|
||||
host_upload_respects_overwrite_support(path, &output).await;
|
||||
overwrite_requires_matching_confirmation(path, &output).await;
|
||||
for (name, succeeds) in [("notes.txt", true), ("failed.txt", false)] {
|
||||
receive(&format!("{path}/{name}"), succeeds, &output).await;
|
||||
}
|
||||
let destination = format!("{path}/notes.txt");
|
||||
let entry = stat(&destination).unwrap().unwrap();
|
||||
let digest = super::super::FileTransferDigest {
|
||||
file_size: entry.size,
|
||||
last_modified: entry.modified_time,
|
||||
..Default::default()
|
||||
};
|
||||
assert!(matches!(
|
||||
super::super::is_write_need_confirmation(false, &destination, &digest).unwrap(),
|
||||
super::super::DigestCheckResult::NeedConfirm(digest) if digest.is_identical
|
||||
));
|
||||
provider_error_at_eof(path).await;
|
||||
send_and_cancel(path, &output).await;
|
||||
write_tests::failed_block_cleans_pending_receive(path, &output).await;
|
||||
write_tests::failed_finalization_discards_partial_data(path, &output).await;
|
||||
write_tests::replacement_preserves_opened_digest(path, &output).await;
|
||||
write_tests::changed_source_without_timestamp_rejects_resume(path, &output).await;
|
||||
let mut empty = receiving(&format!("{path}/empty.txt"));
|
||||
empty.write(block(0, b"")).await.unwrap();
|
||||
assert_eq!(std::fs::metadata(&output).unwrap().len(), 0);
|
||||
std::fs::remove_file(output).unwrap();
|
||||
}
|
||||
|
||||
#[cfg(unix)]
|
||||
async fn send_and_cancel(path: &str, output: &Path) {
|
||||
let mut sender = sending(&format!("{path}/notes.txt"), false);
|
||||
sender.init_data_stream_for_cm().await.unwrap();
|
||||
assert_eq!(
|
||||
sender.read().await.unwrap().unwrap().data.as_ref(),
|
||||
b"hello, world"
|
||||
);
|
||||
assert!(sender.read().await.unwrap().unwrap().data.is_empty());
|
||||
let mut canceled = receiving(&format!("{path}/canceled.txt"));
|
||||
confirm_overwrite(&mut canceled, 0).await;
|
||||
canceled.write(block(0, b"partial")).await.unwrap();
|
||||
canceled.cancel_document().await.unwrap();
|
||||
assert!(!output.exists());
|
||||
}
|
||||
|
||||
#[cfg(unix)]
|
||||
async fn provider_error_at_eof(path: &str) {
|
||||
let mut sender = sending(&format!("{path}/broken.txt"), true);
|
||||
assert!(sender.init_data_stream_for_cm().await.unwrap().is_some());
|
||||
confirm_overwrite(&mut sender, 0).await;
|
||||
assert!(sender.read().await.unwrap().is_some());
|
||||
assert!(sender.read().await.is_err());
|
||||
assert!(sender.init_data_stream_for_cm().await.is_err());
|
||||
assert!(sender.read().await.unwrap().is_none());
|
||||
assert!(sender.job_completed());
|
||||
assert_eq!(sender.job_error().as_deref(), Some("Provider read failed"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn document_paths_cannot_escape_the_selected_location() {
|
||||
for path in [
|
||||
"/@rustdesk/tree/id/folder/../secret",
|
||||
"/@rustdesk//Download",
|
||||
"/@rustdesk/tree/id/a\\b",
|
||||
"/@rustdesk/file/id/report.txt",
|
||||
"/@rustdesk/save/id/report.txt",
|
||||
"/@rustdesk/Download/report.txt",
|
||||
] {
|
||||
assert!(validate(path).is_err(), "{}", path);
|
||||
}
|
||||
assert!(validate("/@rustdesk/tree/id/folder/report.txt").is_ok());
|
||||
}
|
||||
@@ -0,0 +1,153 @@
|
||||
use super::*;
|
||||
|
||||
pub(super) fn open_source(output: &Path, request: &Value) -> ResultType<Value> {
|
||||
use std::{fs::File, io::Write, os::fd::IntoRawFd};
|
||||
|
||||
let fd = if request["path"].as_str().unwrap().ends_with("stream.txt") {
|
||||
let (reader, mut writer) = std::os::unix::net::UnixStream::pair()?;
|
||||
writer.write_all(&std::fs::read(output)?)?;
|
||||
reader.into_raw_fd()
|
||||
} else {
|
||||
let file = File::open(output)?;
|
||||
let replacement = output.with_extension("replacement");
|
||||
if replacement.exists() {
|
||||
std::fs::rename(replacement, output)?;
|
||||
}
|
||||
file.into_raw_fd()
|
||||
};
|
||||
Ok(json!({"fd": fd, "descriptor": request["path"]}))
|
||||
}
|
||||
|
||||
pub(super) async fn replacement_preserves_opened_digest(path: &str, output: &Path) {
|
||||
use filetime::{set_file_mtime, FileTime};
|
||||
|
||||
std::fs::write(output, b"old contents").unwrap();
|
||||
set_file_mtime(output, FileTime::from_unix_time(1, 0)).unwrap();
|
||||
let replacement = output.with_extension("replacement");
|
||||
std::fs::write(&replacement, b"new contents").unwrap();
|
||||
set_file_mtime(&replacement, FileTime::from_unix_time(2, 0)).unwrap();
|
||||
let path = format!("{path}/notes.txt");
|
||||
let mut sender = sending(&path, true);
|
||||
assert_eq!(
|
||||
sender.init_data_stream_for_cm().await.unwrap(),
|
||||
Some((1, 12))
|
||||
);
|
||||
confirm_overwrite(&mut sender, 0).await;
|
||||
assert_eq!(
|
||||
sender.read().await.unwrap().unwrap().data.as_ref(),
|
||||
b"old contents"
|
||||
);
|
||||
assert!(sender.read().await.unwrap().unwrap().data.is_empty());
|
||||
let mut next = sending(&path, true);
|
||||
assert_eq!(next.init_data_stream_for_cm().await.unwrap(), Some((2, 12)));
|
||||
}
|
||||
|
||||
pub(super) async fn failed_block_cleans_pending_receive(path: &str, output: &Path) {
|
||||
for name in ["write-error.txt", "write-error-broken.txt"] {
|
||||
let mut job = receiving(&format!("{path}/{name}"));
|
||||
job.is_remote = false;
|
||||
let block = block(0, b"more data");
|
||||
// Tokio queues the first write and reports its I/O failure on the next block.
|
||||
job.write(block.clone()).await.unwrap();
|
||||
assert_eq!(std::fs::read(output).unwrap(), b"partial");
|
||||
let error = job.write(block).await.unwrap_err();
|
||||
assert!(error.downcast_ref::<std::io::Error>().is_some());
|
||||
assert_eq!(job.job_error(), Some(error.to_string()));
|
||||
assert!(
|
||||
!output.exists(),
|
||||
"A failed receive must discard partial data"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
pub(super) async fn failed_finalization_discards_partial_data(path: &str, output: &Path) {
|
||||
for name in ["write-error.txt", "broken.txt", "discard-error-broken.txt"] {
|
||||
let mut job = receiving(&format!("{path}/{name}"));
|
||||
confirm_overwrite(&mut job, 0).await;
|
||||
job.write(block(0, b"partial data")).await.unwrap();
|
||||
let error = job.finish_document().await.unwrap_err();
|
||||
assert_eq!(job.job_error(), Some(error.to_string()));
|
||||
if name.ends_with("broken.txt") {
|
||||
assert!(error.to_string().contains("Provider read failed"));
|
||||
} else {
|
||||
assert!(error.downcast_ref::<std::io::Error>().is_some());
|
||||
}
|
||||
if name.starts_with("discard-error") {
|
||||
assert!(error.to_string().contains("Provider cleanup failed"));
|
||||
assert!(output.exists());
|
||||
std::fs::remove_file(output).unwrap();
|
||||
} else {
|
||||
assert!(
|
||||
!output.exists(),
|
||||
"A failed finalization must discard partial data"
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub(super) async fn changed_source_without_timestamp_rejects_resume(path: &str, output: &Path) {
|
||||
std::fs::write(output, b"old contents").unwrap();
|
||||
filetime::set_file_mtime(output, filetime::FileTime::from_unix_time(0, 0)).unwrap();
|
||||
stale_metadata_uses_current_digest(&format!("{path}/notes.txt")).await;
|
||||
let path = format!("{path}/stream.txt");
|
||||
let mut sender = sending(&path, true);
|
||||
let original_digest = sender.init_data_stream_for_cm().await.unwrap();
|
||||
assert_eq!(original_digest, Some((0, b"old contents".len() as u64)));
|
||||
confirm_overwrite(&mut sender, 0).await;
|
||||
assert_eq!(
|
||||
sender.read().await.unwrap().unwrap().data.as_ref(),
|
||||
b"old contents"
|
||||
);
|
||||
drop(sender);
|
||||
|
||||
std::fs::write(output, b"new contents").unwrap();
|
||||
let mut resumed = sending(&path, true);
|
||||
assert_eq!(
|
||||
resumed.init_data_stream_for_cm().await.unwrap(),
|
||||
original_digest
|
||||
);
|
||||
let mut confirmation = FileTransferSendConfirmRequest {
|
||||
id: resumed.id(),
|
||||
..Default::default()
|
||||
};
|
||||
confirmation.set_offset_blk(b"old ".len() as u32);
|
||||
resumed.confirm(&confirmation).await;
|
||||
assert_eq!(
|
||||
resumed.job_error().as_deref(),
|
||||
Some("Cannot resume a document with an unknown modification time; restart the transfer")
|
||||
);
|
||||
assert!(resumed.read().await.unwrap().is_none());
|
||||
assert!(resumed.job_completed());
|
||||
|
||||
let mut fresh = sending(&path, true);
|
||||
fresh.init_data_stream_for_cm().await.unwrap();
|
||||
confirm_overwrite(&mut fresh, 0).await;
|
||||
assert_eq!(
|
||||
fresh.read().await.unwrap().unwrap().data.as_ref(),
|
||||
b"new contents"
|
||||
);
|
||||
assert!(fresh.read().await.unwrap().unwrap().data.is_empty());
|
||||
std::fs::remove_file(output).unwrap();
|
||||
}
|
||||
|
||||
async fn stale_metadata_uses_current_digest(path: &str) {
|
||||
for (size, modified_time) in [(12, 1), (13, 0)] {
|
||||
let mut sender = sending(path, true)
|
||||
.with_files(vec![FileEntry {
|
||||
size,
|
||||
modified_time,
|
||||
..Default::default()
|
||||
}])
|
||||
.unwrap();
|
||||
assert_eq!(
|
||||
sender.init_data_stream_for_cm().await.unwrap(),
|
||||
Some((0, b"old contents".len() as u64))
|
||||
);
|
||||
confirm_overwrite(&mut sender, 0).await;
|
||||
assert_eq!(
|
||||
sender.read().await.unwrap().unwrap().data.as_ref(),
|
||||
b"old contents"
|
||||
);
|
||||
assert!(sender.read().await.unwrap().unwrap().data.is_empty());
|
||||
}
|
||||
}
|
||||
+1
-1
Submodule libs/hbb_common updated: 5d52530b63...fae47e024d
@@ -506,7 +506,43 @@ pub extern "system" fn Java_ffi_FFI_onAppStart(mut env: JNIEnv, _class: JClass,
|
||||
let java_vm = jvm.get_java_vm_pointer() as *mut c_void;
|
||||
let context_jobject = context.as_obj().as_raw() as *mut c_void;
|
||||
*APPLICATION_CONTEXT.write().unwrap() = Some(context);
|
||||
*JVM.write().unwrap() = Some(jvm);
|
||||
if let Err(error) = base::fs::android::initialize(call_document_storage) {
|
||||
log::error!("Unable to initialize document storage: {}", error);
|
||||
}
|
||||
try_init_rustls_platform_verifier(&mut env, context_jobject);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn call_document_storage(request: &str) -> hbb_common::ResultType<String> {
|
||||
use hbb_common::anyhow::anyhow;
|
||||
|
||||
const LOCAL_REFS: i32 = 4;
|
||||
let context = APPLICATION_CONTEXT
|
||||
.read()
|
||||
.unwrap()
|
||||
.clone()
|
||||
.ok_or(anyhow!("Android application context is unavailable"))?;
|
||||
let jvm = JVM.read().unwrap();
|
||||
let jvm = jvm.as_ref().ok_or(anyhow!("Android VM is unavailable"))?;
|
||||
let mut env = jvm.attach_current_thread_as_daemon()?;
|
||||
let result = env.with_local_frame(LOCAL_REFS, |env| -> JniResult<String> {
|
||||
let request = env.new_string(request)?;
|
||||
let value = env
|
||||
.call_method(
|
||||
&context,
|
||||
"rustDocumentStorage",
|
||||
"(Ljava/lang/String;)Ljava/lang/String;",
|
||||
&[JValue::Object(&JObject::from(request))],
|
||||
)?
|
||||
.l()?;
|
||||
let value = JString::from(value);
|
||||
let value = env.get_string(&value)?;
|
||||
Ok(value.into())
|
||||
});
|
||||
if result.is_err() && env.exception_check()? {
|
||||
env.exception_clear()?;
|
||||
}
|
||||
Ok(result?)
|
||||
}
|
||||
|
||||
+4
-4
@@ -93,10 +93,10 @@ pub fn verify2fa(code: String) -> bool {
|
||||
if let Ok(res) = totp.check_current(&code) {
|
||||
if res {
|
||||
if let Ok(v) = info.into_string() {
|
||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||
crate::ipc::set_option("2fa", &v);
|
||||
#[cfg(any(target_os = "android", target_os = "ios"))]
|
||||
Config::set_option("2fa".to_owned(), v);
|
||||
if let Err(error) = crate::ui_interface::set_auth_option("2fa".to_owned(), v) {
|
||||
hbb_common::log::error!("2FA configuration update rejected: {error}");
|
||||
return false;
|
||||
}
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
||||
+41
-7
@@ -2872,7 +2872,6 @@ pub struct LoginConfigHandler {
|
||||
pub save_ab_password_to_recent: bool, // true: connected with ab password
|
||||
pub other_server: Option<(String, String, String)>,
|
||||
pub custom_fps: Arc<Mutex<Option<usize>>>,
|
||||
pub last_auto_fps: Option<usize>,
|
||||
pub adapter_luid: Option<i64>,
|
||||
pub mark_unsupported: Vec<CodecFormat>,
|
||||
pub selected_windows_session_id: Option<u32>,
|
||||
@@ -4638,6 +4637,7 @@ pub async fn handle_hash(
|
||||
password_preset: &str,
|
||||
hash: Hash,
|
||||
interface: &impl Interface,
|
||||
trust: &mut crate::trusted_devices::client::Session,
|
||||
peer: &mut Stream,
|
||||
) -> bool {
|
||||
lc.write().unwrap().hash = hash.clone();
|
||||
@@ -4756,7 +4756,19 @@ pub async fn handle_hash(
|
||||
hasher.finalize()[..].into()
|
||||
};
|
||||
|
||||
send_login(lc.clone(), String::new(), String::new(), password, peer).await;
|
||||
if let Err(error) = send_login(
|
||||
lc.clone(),
|
||||
String::new(),
|
||||
String::new(),
|
||||
password,
|
||||
trust,
|
||||
peer,
|
||||
)
|
||||
.await
|
||||
{
|
||||
interface.on_error(&error.to_string());
|
||||
return false;
|
||||
}
|
||||
lc.write().unwrap().hash = hash;
|
||||
true
|
||||
}
|
||||
@@ -4800,13 +4812,15 @@ async fn send_login(
|
||||
os_username: String,
|
||||
os_password: String,
|
||||
password: Vec<u8>,
|
||||
trust: &mut crate::trusted_devices::client::Session,
|
||||
peer: &mut Stream,
|
||||
) {
|
||||
) -> ResultType<()> {
|
||||
let msg_out = lc
|
||||
.read()
|
||||
.unwrap()
|
||||
.create_login_msg(os_username, os_password, password);
|
||||
allow_err!(peer.send(&msg_out).await);
|
||||
let msg_out = trust.login(msg_out).await?;
|
||||
peer.send(&msg_out).await
|
||||
}
|
||||
|
||||
/// Handle login request made from ui.
|
||||
@@ -4825,8 +4839,9 @@ pub async fn handle_login_from_ui(
|
||||
os_password: String,
|
||||
password: String,
|
||||
remember: bool,
|
||||
trust: &mut crate::trusted_devices::client::Session,
|
||||
peer: &mut Stream,
|
||||
) {
|
||||
) -> ResultType<()> {
|
||||
let mut hash_password = if password.is_empty() {
|
||||
let mut password2 = lc.read().unwrap().password.clone();
|
||||
if password2.is_empty() {
|
||||
@@ -4851,7 +4866,15 @@ pub async fn handle_login_from_ui(
|
||||
hasher2.update(&lc.read().unwrap().hash.challenge);
|
||||
hash_password = hasher2.finalize()[..].to_vec();
|
||||
|
||||
send_login(lc.clone(), os_username, os_password, hash_password, peer).await;
|
||||
send_login(
|
||||
lc.clone(),
|
||||
os_username,
|
||||
os_password,
|
||||
hash_password,
|
||||
trust,
|
||||
peer,
|
||||
)
|
||||
.await
|
||||
}
|
||||
|
||||
async fn send_switch_login_request(
|
||||
@@ -4886,13 +4909,20 @@ pub trait Interface: Send + Clone + 'static + Sized {
|
||||
fn on_error(&self, err: &str) {
|
||||
self.msgbox("error", "Error", err, "");
|
||||
}
|
||||
async fn handle_hash(&self, pass: &str, hash: Hash, peer: &mut Stream) -> bool;
|
||||
async fn handle_hash(
|
||||
&self,
|
||||
pass: &str,
|
||||
hash: Hash,
|
||||
trust: &mut crate::trusted_devices::client::Session,
|
||||
peer: &mut Stream,
|
||||
) -> bool;
|
||||
async fn handle_login_from_ui(
|
||||
&self,
|
||||
os_username: String,
|
||||
os_password: String,
|
||||
password: String,
|
||||
remember: bool,
|
||||
trust: &mut crate::trusted_devices::client::Session,
|
||||
peer: &mut Stream,
|
||||
);
|
||||
async fn handle_test_delay(&self, t: TestDelay, peer: &mut Stream);
|
||||
@@ -5737,6 +5767,10 @@ mod webrtc_race_tests {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
#[path = "client/tests/trusted_devices_tests.rs"]
|
||||
mod trusted_devices_tests;
|
||||
|
||||
#[cfg(test)]
|
||||
mod kx_tests {
|
||||
use super::*;
|
||||
|
||||
+264
-20
@@ -98,10 +98,12 @@ pub struct Remote<T: InvokeUiSession> {
|
||||
elevation_requested: bool,
|
||||
peer_info: ParsedPeerInfo,
|
||||
video_threads: HashMap<usize, VideoThread>,
|
||||
last_auto_fps: Option<usize>,
|
||||
chroma: Arc<RwLock<Option<Chroma>>>,
|
||||
last_record_state: bool,
|
||||
sent_close_reason: bool,
|
||||
cursor_dedupe: CursorDedupe,
|
||||
trusted_device: crate::trusted_devices::client::Session,
|
||||
}
|
||||
|
||||
#[derive(Default)]
|
||||
@@ -150,10 +152,12 @@ impl<T: InvokeUiSession> Remote<T> {
|
||||
elevation_requested: false,
|
||||
peer_info: Default::default(),
|
||||
video_threads: Default::default(),
|
||||
last_auto_fps: None,
|
||||
chroma: Default::default(),
|
||||
last_record_state: false,
|
||||
sent_close_reason: false,
|
||||
cursor_dedupe: Default::default(),
|
||||
trusted_device: Default::default(),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -207,6 +211,22 @@ impl<T: InvokeUiSession> Remote<T> {
|
||||
.unwrap()
|
||||
.set_connected();
|
||||
let is_secured = peer.is_secured();
|
||||
let trust = crate::trusted_devices::client::Session::new(
|
||||
&self.handler.lc.read().unwrap(),
|
||||
is_secured,
|
||||
pk.as_deref(),
|
||||
);
|
||||
match trust {
|
||||
Ok(trust) => {
|
||||
self.trusted_device = trust;
|
||||
self.handler.lc.write().unwrap().enable_trusted_devices = false;
|
||||
}
|
||||
Err(error) => {
|
||||
self.handler.on_error(&error.to_string());
|
||||
self.handle_disconnected(round);
|
||||
return;
|
||||
}
|
||||
}
|
||||
// Only WebRTC needs refining: its label names the transport that won the race,
|
||||
// not the family ICE ended up nominating, and it is the one path where the two
|
||||
// can disagree with the address the rendezvous observed.
|
||||
@@ -382,7 +402,7 @@ impl<T: InvokeUiSession> Remote<T> {
|
||||
self.video_threads.iter().for_each(|(_, v)| {
|
||||
*v.frame_count.write().unwrap() = 0;
|
||||
});
|
||||
self.fps_control(direct, fps.clone());
|
||||
self.fps_control(direct, fps.clone(), &mut peer).await;
|
||||
let chroma = self.chroma.read().unwrap().clone();
|
||||
let chroma = match chroma {
|
||||
Some(Chroma::I444) => "4:4:4",
|
||||
@@ -428,6 +448,19 @@ impl<T: InvokeUiSession> Remote<T> {
|
||||
}
|
||||
}
|
||||
self.handle_disconnected(round);
|
||||
#[cfg(target_os = "android")]
|
||||
for job in &mut self.write_jobs {
|
||||
if let Err(error) = job.cancel_document().await {
|
||||
const CLEANUP_ERROR_LOG_INTERVAL: Duration = Duration::from_secs(60);
|
||||
hbb_common::throttled_log!(
|
||||
CLEANUP_ERROR_LOG_INTERVAL,
|
||||
warn,
|
||||
"Failed to clean up document transfer {} on disconnect: {}",
|
||||
job.id(),
|
||||
error
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn handle_disconnected(&self, round: u32) {
|
||||
@@ -729,7 +762,14 @@ impl<T: InvokeUiSession> Remote<T> {
|
||||
}
|
||||
Data::Login((os_username, os_password, password, remember)) => {
|
||||
self.handler
|
||||
.handle_login_from_ui(os_username, os_password, password, remember, peer)
|
||||
.handle_login_from_ui(
|
||||
os_username,
|
||||
os_password,
|
||||
password,
|
||||
remember,
|
||||
&mut self.trusted_device,
|
||||
peer,
|
||||
)
|
||||
.await;
|
||||
}
|
||||
#[cfg(all(target_os = "windows", not(feature = "flutter")))]
|
||||
@@ -758,6 +798,7 @@ impl<T: InvokeUiSession> Remote<T> {
|
||||
}
|
||||
}
|
||||
Data::Message(msg) => {
|
||||
let msg = self.trusted_device.outgoing(msg);
|
||||
// The Flutter clipboard broadcast is process-wide, so a clipboard can reach this
|
||||
// round's queue before the round has logged in; it is dropped here, on the round
|
||||
// itself.
|
||||
@@ -787,6 +828,11 @@ impl<T: InvokeUiSession> Remote<T> {
|
||||
self.initial_clipboard_pending = false;
|
||||
}
|
||||
Some(message::Union::Misc(misc)) => match misc.union {
|
||||
Some(misc::Union::Option(ref option)) => {
|
||||
if option.custom_fps > 0 {
|
||||
self.last_auto_fps = None;
|
||||
}
|
||||
}
|
||||
Some(misc::Union::RefreshVideo(_)) => {
|
||||
self.video_threads.iter().for_each(|(_, v)| {
|
||||
*v.discard_queue.write().unwrap() = true;
|
||||
@@ -838,7 +884,33 @@ impl<T: InvokeUiSession> Remote<T> {
|
||||
.await
|
||||
);
|
||||
} else {
|
||||
match fs::TransferJob::new_read(
|
||||
#[cfg(target_os = "android")]
|
||||
let result = {
|
||||
let source = fs::DataSource::FilePath(PathBuf::from(&path));
|
||||
let destination = to.clone();
|
||||
let read = move || {
|
||||
fs::TransferJob::new_read(
|
||||
id,
|
||||
r#type,
|
||||
destination,
|
||||
source,
|
||||
file_num,
|
||||
include_hidden,
|
||||
is_remote,
|
||||
od,
|
||||
)
|
||||
};
|
||||
if fs::android::is_path(path.as_ref()) {
|
||||
tokio::task::spawn_blocking(read)
|
||||
.await
|
||||
.map_err(hbb_common::anyhow::Error::from)
|
||||
.and_then(|result| result)
|
||||
} else {
|
||||
read()
|
||||
}
|
||||
};
|
||||
#[cfg(not(target_os = "android"))]
|
||||
let result = fs::TransferJob::new_read(
|
||||
id,
|
||||
r#type,
|
||||
to.clone(),
|
||||
@@ -847,7 +919,8 @@ impl<T: InvokeUiSession> Remote<T> {
|
||||
include_hidden,
|
||||
is_remote,
|
||||
od,
|
||||
) {
|
||||
);
|
||||
match result {
|
||||
Err(err) => {
|
||||
self.handle_job_status(id, -1, Some(err.to_string()));
|
||||
}
|
||||
@@ -908,7 +981,33 @@ impl<T: InvokeUiSession> Remote<T> {
|
||||
job.is_last_job = true;
|
||||
self.write_jobs.push(job);
|
||||
} else {
|
||||
match fs::TransferJob::new_read(
|
||||
#[cfg(target_os = "android")]
|
||||
let result = {
|
||||
let source = fs::DataSource::FilePath(PathBuf::from(&path));
|
||||
let destination = to.clone();
|
||||
let read = move || {
|
||||
fs::TransferJob::new_read(
|
||||
id,
|
||||
r#type,
|
||||
destination,
|
||||
source,
|
||||
file_num,
|
||||
include_hidden,
|
||||
is_remote,
|
||||
od,
|
||||
)
|
||||
};
|
||||
if fs::android::is_path(path.as_ref()) {
|
||||
tokio::task::spawn_blocking(read)
|
||||
.await
|
||||
.map_err(hbb_common::anyhow::Error::from)
|
||||
.and_then(|result| result)
|
||||
} else {
|
||||
read()
|
||||
}
|
||||
};
|
||||
#[cfg(not(target_os = "android"))]
|
||||
let result = fs::TransferJob::new_read(
|
||||
id,
|
||||
r#type,
|
||||
to.clone(),
|
||||
@@ -917,7 +1016,8 @@ impl<T: InvokeUiSession> Remote<T> {
|
||||
include_hidden,
|
||||
is_remote,
|
||||
od,
|
||||
) {
|
||||
);
|
||||
match result {
|
||||
Err(err) => {
|
||||
self.handle_job_status(id, -1, Some(err.to_string()));
|
||||
}
|
||||
@@ -1069,7 +1169,21 @@ impl<T: InvokeUiSession> Remote<T> {
|
||||
self.remove_jobs
|
||||
.insert(id, RemoveJob::new(Vec::new(), path, sep, is_remote));
|
||||
} else {
|
||||
match fs::get_recursive_files(&path, include_hidden) {
|
||||
#[cfg(target_os = "android")]
|
||||
let result = if fs::android::is_path(path.as_ref()) {
|
||||
let path = path.clone();
|
||||
tokio::task::spawn_blocking(move || {
|
||||
fs::get_recursive_files(&path, include_hidden)
|
||||
})
|
||||
.await
|
||||
.map_err(hbb_common::anyhow::Error::from)
|
||||
.and_then(|result| result)
|
||||
} else {
|
||||
fs::get_recursive_files(&path, include_hidden)
|
||||
};
|
||||
#[cfg(not(target_os = "android"))]
|
||||
let result = fs::get_recursive_files(&path, include_hidden);
|
||||
match result {
|
||||
Ok(entries) => {
|
||||
self.handler.update_folder_files(
|
||||
id,
|
||||
@@ -1115,7 +1229,18 @@ impl<T: InvokeUiSession> Remote<T> {
|
||||
msg_out.set_file_action(file_action);
|
||||
allow_err!(peer.send(&msg_out).await);
|
||||
} else {
|
||||
match fs::remove_file(&path) {
|
||||
#[cfg(target_os = "android")]
|
||||
let result = if fs::android::is_path(path.as_ref()) {
|
||||
tokio::task::spawn_blocking(move || fs::remove_file(&path))
|
||||
.await
|
||||
.map_err(hbb_common::anyhow::Error::from)
|
||||
.and_then(|result| result)
|
||||
} else {
|
||||
fs::remove_file(&path)
|
||||
};
|
||||
#[cfg(not(target_os = "android"))]
|
||||
let result = fs::remove_file(&path);
|
||||
match result {
|
||||
Err(err) => {
|
||||
self.handle_job_status(id, file_num, Some(err.to_string()));
|
||||
}
|
||||
@@ -1137,7 +1262,18 @@ impl<T: InvokeUiSession> Remote<T> {
|
||||
msg_out.set_file_action(file_action);
|
||||
allow_err!(peer.send(&msg_out).await);
|
||||
} else {
|
||||
match fs::create_dir(&path) {
|
||||
#[cfg(target_os = "android")]
|
||||
let result = if fs::android::is_path(path.as_ref()) {
|
||||
tokio::task::spawn_blocking(move || fs::create_dir(&path))
|
||||
.await
|
||||
.map_err(hbb_common::anyhow::Error::from)
|
||||
.and_then(|result| result)
|
||||
} else {
|
||||
fs::create_dir(&path)
|
||||
};
|
||||
#[cfg(not(target_os = "android"))]
|
||||
let result = fs::create_dir(&path);
|
||||
match result {
|
||||
Err(err) => {
|
||||
self.handle_job_status(id, -1, Some(err.to_string()));
|
||||
}
|
||||
@@ -1160,6 +1296,18 @@ impl<T: InvokeUiSession> Remote<T> {
|
||||
msg_out.set_file_action(file_action);
|
||||
allow_err!(peer.send(&msg_out).await);
|
||||
} else {
|
||||
#[cfg(target_os = "android")]
|
||||
let err = if fs::android::is_path(path.as_ref()) {
|
||||
tokio::task::spawn_blocking(move || fs::rename_file(&path, &new_name))
|
||||
.await
|
||||
.map_err(hbb_common::anyhow::Error::from)
|
||||
.and_then(|result| result)
|
||||
} else {
|
||||
fs::rename_file(&path, &new_name)
|
||||
}
|
||||
.err()
|
||||
.map(|e| e.to_string());
|
||||
#[cfg(not(target_os = "android"))]
|
||||
let err = fs::rename_file(&path, &new_name)
|
||||
.err()
|
||||
.map(|e| e.to_string());
|
||||
@@ -1294,6 +1442,12 @@ impl<T: InvokeUiSession> Remote<T> {
|
||||
msg_out.set_file_action(file_action);
|
||||
allow_err!(peer.send(&msg_out).await);
|
||||
if let Some(job) = fs::remove_job(id, &mut self.write_jobs) {
|
||||
#[cfg(target_os = "android")]
|
||||
let mut job = job;
|
||||
#[cfg(target_os = "android")]
|
||||
if let Err(error) = job.cancel_document().await {
|
||||
self.handle_job_status(id, job.file_num(), Some(error.to_string()));
|
||||
}
|
||||
job.remove_download_file();
|
||||
}
|
||||
let _ = fs::remove_job(id, &mut self.read_jobs);
|
||||
@@ -1386,7 +1540,12 @@ impl<T: InvokeUiSession> Remote<T> {
|
||||
// Currently, this function only considers decoding speed and queue length, not network delay.
|
||||
// The controlled end can consider auto fps as the maximum decoding fps.
|
||||
#[inline]
|
||||
fn fps_control(&mut self, direct: bool, real_fps_map: HashMap<usize, i32>) {
|
||||
async fn fps_control(
|
||||
&mut self,
|
||||
direct: bool,
|
||||
real_fps_map: HashMap<usize, i32>,
|
||||
peer: &mut Stream,
|
||||
) {
|
||||
self.video_threads.iter_mut().for_each(|(k, v)| {
|
||||
let real_fps = real_fps_map.get(k).cloned().unwrap_or_default();
|
||||
if real_fps == 0 {
|
||||
@@ -1426,7 +1585,7 @@ impl<T: InvokeUiSession> Remote<T> {
|
||||
if limited_fps > custom_fps {
|
||||
limited_fps = custom_fps;
|
||||
}
|
||||
let last_auto_fps = self.handler.lc.read().unwrap().last_auto_fps.clone();
|
||||
let last_auto_fps = self.last_auto_fps;
|
||||
let displays = self.video_threads.keys().cloned().collect::<Vec<_>>();
|
||||
let mut fps_trending = |display: usize| {
|
||||
let thread = self.video_threads.get_mut(&display)?;
|
||||
@@ -1472,9 +1631,10 @@ impl<T: InvokeUiSession> Remote<T> {
|
||||
});
|
||||
let mut msg = Message::new();
|
||||
msg.set_misc(misc);
|
||||
self.sender.send(Data::Message(msg)).ok();
|
||||
// Send inline so a queued manual FPS update is applied after this decision.
|
||||
allow_err!(peer.send(&msg).await);
|
||||
log::info!("Set fps to {}", auto_fps);
|
||||
self.handler.lc.write().unwrap().last_auto_fps = Some(auto_fps);
|
||||
self.last_auto_fps = Some(auto_fps);
|
||||
}
|
||||
}
|
||||
// send refresh
|
||||
@@ -1571,18 +1731,24 @@ impl<T: InvokeUiSession> Remote<T> {
|
||||
Some(message::Union::Hash(hash)) => {
|
||||
if !self
|
||||
.handler
|
||||
.handle_hash(&self.handler.password.clone(), hash, peer)
|
||||
.handle_hash(
|
||||
&self.handler.password.clone(),
|
||||
hash,
|
||||
&mut self.trusted_device,
|
||||
peer,
|
||||
)
|
||||
.await
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Some(message::Union::LoginResponse(lr)) => match lr.union {
|
||||
Some(message::Union::LoginResponse(lr)) => match self
|
||||
.trusted_device
|
||||
.respond(lr, &self.handler)
|
||||
.await
|
||||
.union
|
||||
{
|
||||
Some(login_response::Union::Error(err)) => {
|
||||
if err == client::REQUIRE_2FA {
|
||||
self.handler.lc.write().unwrap().enable_trusted_devices =
|
||||
lr.enable_trusted_devices;
|
||||
}
|
||||
if !self.handler.handle_login_error(&err) {
|
||||
return false;
|
||||
}
|
||||
@@ -1895,7 +2061,26 @@ impl<T: InvokeUiSession> Remote<T> {
|
||||
crate::is_support_file_transfer_resume_num(
|
||||
peer_ver,
|
||||
);
|
||||
match job.download_digest(is_support_resume, &digest) {
|
||||
#[cfg(target_os = "android")]
|
||||
let digest_result = if job.is_document() {
|
||||
let path = write_path.clone();
|
||||
let digest = digest.clone();
|
||||
let resume = is_support_resume && job.is_resume;
|
||||
tokio::task::spawn_blocking(move || {
|
||||
fs::is_write_need_confirmation(
|
||||
resume, &path, &digest,
|
||||
)
|
||||
})
|
||||
.await
|
||||
.map_err(hbb_common::anyhow::Error::from)
|
||||
.and_then(|result| result)
|
||||
} else {
|
||||
job.download_digest(is_support_resume, &digest)
|
||||
};
|
||||
#[cfg(not(target_os = "android"))]
|
||||
let digest_result =
|
||||
job.download_digest(is_support_resume, &digest);
|
||||
match digest_result {
|
||||
Ok(res) => match res {
|
||||
DigestCheckResult::IsSame => {
|
||||
let req = FileTransferSendConfirmRequest {
|
||||
@@ -1992,11 +2177,17 @@ impl<T: InvokeUiSession> Remote<T> {
|
||||
let mut job_type = fs::JobType::Generic;
|
||||
let mut printer_data = None;
|
||||
if let Some(job) = fs::remove_job(d.id, &mut self.write_jobs) {
|
||||
#[cfg(target_os = "android")]
|
||||
let mut job = job;
|
||||
err = job
|
||||
.finish_download()
|
||||
.err()
|
||||
.map(|err| err.to_string())
|
||||
.or_else(|| job.job_error());
|
||||
#[cfg(target_os = "android")]
|
||||
if let Err(error) = job.finish_document().await {
|
||||
err = Some(error.to_string());
|
||||
}
|
||||
job_type = job.r#type;
|
||||
printer_data = match job.get_buf_data().await {
|
||||
Ok(d) => d,
|
||||
@@ -2044,6 +2235,20 @@ impl<T: InvokeUiSession> Remote<T> {
|
||||
}
|
||||
}
|
||||
Some(file_response::Union::Error(e)) => {
|
||||
#[cfg(target_os = "android")]
|
||||
if let Some(job) = fs::get_job(e.id, &mut self.write_jobs) {
|
||||
if let Err(error) = job.cancel_document().await {
|
||||
const CLEANUP_ERROR_LOG_INTERVAL: Duration =
|
||||
Duration::from_secs(60);
|
||||
hbb_common::throttled_log!(
|
||||
CLEANUP_ERROR_LOG_INTERVAL,
|
||||
warn,
|
||||
"Failed to clean up document transfer {}: {}",
|
||||
e.id,
|
||||
error
|
||||
);
|
||||
}
|
||||
}
|
||||
let job_type = fs::remove_job(e.id, &mut self.write_jobs)
|
||||
.or_else(|| fs::remove_job(e.id, &mut self.read_jobs))
|
||||
.map(|j| j.r#type)
|
||||
@@ -2387,6 +2592,7 @@ impl<T: InvokeUiSession> Remote<T> {
|
||||
}
|
||||
|
||||
fn set_peer_info(&mut self, pi: &PeerInfo) {
|
||||
self.last_auto_fps = None;
|
||||
self.peer_info.platform = pi.platform.clone();
|
||||
|
||||
// Check features field for terminal support
|
||||
@@ -3019,6 +3225,44 @@ mod tests {
|
||||
"a clipboard after the login was held back"
|
||||
);
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn manual_fps_update_allows_the_same_automatic_limit_again() {
|
||||
let (mut remote, mut peer, mut far) = remote_and_peer().await;
|
||||
let (video_sender, _video_receiver) = std::sync::mpsc::channel();
|
||||
remote.video_threads.insert(
|
||||
0,
|
||||
VideoThread {
|
||||
video_queue: Arc::new(RwLock::new(ArrayQueue::new(client::VIDEO_QUEUE_SIZE))),
|
||||
video_sender,
|
||||
decode_fps: Arc::new(RwLock::new(Some(23))),
|
||||
frame_count: Default::default(),
|
||||
discard_queue: Default::default(),
|
||||
fps_control: Default::default(),
|
||||
},
|
||||
);
|
||||
|
||||
for (manual_fps, expected) in [(None, 20), (Some(90), 90), (None, 20)] {
|
||||
if let Some(fps) = manual_fps {
|
||||
let lc = &remote.handler.lc;
|
||||
let msg = lc.write().unwrap().set_custom_fps(fps, false);
|
||||
remote
|
||||
.handle_msg_from_ui(Data::Message(msg), &mut peer)
|
||||
.await;
|
||||
} else {
|
||||
remote
|
||||
.fps_control(true, HashMap::from([(0, 20)]), &mut peer)
|
||||
.await;
|
||||
}
|
||||
let bytes = timeout(1000, far.next())
|
||||
.await
|
||||
.expect("FPS update was not sent")
|
||||
.unwrap()
|
||||
.unwrap();
|
||||
let msg = Message::parse_from_bytes(&bytes).unwrap();
|
||||
assert_eq!(msg.misc().option().custom_fps, expected);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
||||
@@ -0,0 +1,144 @@
|
||||
use super::*;
|
||||
use hbb_common::tcp::FramedStream;
|
||||
|
||||
#[tokio::test]
|
||||
async fn existing_legacy_consent_is_preserved_across_upgrades() {
|
||||
crate::trusted_devices::tests::initialize_config();
|
||||
let mut login = LoginConfigHandler::default();
|
||||
login.id = uuid::Uuid::new_v4().to_string();
|
||||
login
|
||||
.config
|
||||
.options
|
||||
.insert("trust-this-device".into(), "Y".into());
|
||||
let request = login.create_login_msg(String::new(), String::new(), vec![1; 32]);
|
||||
let Some(message::Union::LoginRequest(request)) = request.union else {
|
||||
panic!("expected a login request");
|
||||
};
|
||||
assert!(
|
||||
request.hwid == crate::get_hwid(),
|
||||
"an existing legacy consent must remain usable with old hosts"
|
||||
);
|
||||
verified_channel_controls_tokens(&login).await;
|
||||
corrupt_credentials_do_not_block_password_login(&login).await;
|
||||
}
|
||||
|
||||
async fn corrupt_credentials_do_not_block_password_login(login: &LoginConfigHandler) {
|
||||
use crate::trusted_devices::client::Session;
|
||||
let path = Config::path(format!("peers/{}.toml", login.id));
|
||||
let saved = std::fs::read(&path).unwrap();
|
||||
std::fs::write(&path, b"invalid cached credential").unwrap();
|
||||
let mut trust = Session::new(login, true, Some(&[1; 32])).unwrap();
|
||||
let request = login.create_login_msg(String::new(), String::new(), vec![1; 32]);
|
||||
let outgoing = trust.login(request.clone()).await;
|
||||
let stored = std::fs::read(&path).unwrap();
|
||||
std::fs::write(&path, saved).unwrap();
|
||||
assert_eq!(outgoing.unwrap(), request);
|
||||
assert_eq!(stored, b"invalid cached credential");
|
||||
let mut response = LoginResponse::new();
|
||||
response.set_error(REQUIRE_2FA.into());
|
||||
response.trusted_device_v2_supported = true;
|
||||
assert!(!trust.response(&response).await.unwrap());
|
||||
let mut auth = Message::new();
|
||||
auth.set_auth_2fa(Auth2FA {
|
||||
trust_this_device: true,
|
||||
..Default::default()
|
||||
});
|
||||
assert!(!trust.outgoing(auth).auth_2fa().trust_this_device);
|
||||
}
|
||||
|
||||
async fn verified_channel_controls_tokens(login: &LoginConfigHandler) {
|
||||
use crate::trusted_devices::client::Session;
|
||||
let token = vec![9; crate::trusted_devices::TOKEN_BYTES];
|
||||
let mut trust = Session::new(login, true, Some(&[1; 32])).unwrap();
|
||||
let mut response = LoginResponse::new();
|
||||
response.set_error(REQUIRE_2FA.into());
|
||||
response.trusted_device_v2_supported = true;
|
||||
assert!(trust.response(&response).await.unwrap());
|
||||
let mut auth = Message::new();
|
||||
auth.set_auth_2fa(Auth2FA {
|
||||
trust_this_device: true,
|
||||
..Default::default()
|
||||
});
|
||||
assert!(trust.outgoing(auth).auth_2fa().trust_this_device);
|
||||
let mut success = LoginResponse::new();
|
||||
success.set_peer_info(PeerInfo {
|
||||
platform: "Windows".into(),
|
||||
..Default::default()
|
||||
});
|
||||
success.trusted_device_v2_token = token.clone().into();
|
||||
trust.response(&success).await.unwrap();
|
||||
assert_eq!(PeerConfig::peers(Some(vec![login.id.clone()])).len(), 1);
|
||||
another_connection_cannot_supply_this_streams_token(&mut trust).await;
|
||||
let request = login.create_login_msg(String::new(), String::new(), vec![1; 32]);
|
||||
assert_eq!(sent_token(&mut trust, &request).await, token);
|
||||
for mut unverified in [
|
||||
Session::new(login, false, Some(&[1; 32])).unwrap(),
|
||||
Session::new(login, true, None).unwrap(),
|
||||
] {
|
||||
assert!(sent_token(&mut unverified, &request).await.is_empty());
|
||||
}
|
||||
response.trusted_device_v2_supported = false;
|
||||
response.enable_trusted_devices = true;
|
||||
assert!(!trust.response(&response).await.unwrap());
|
||||
assert_eq!(sent_token(&mut trust, &request).await, token);
|
||||
response.trusted_device_v2_supported = true;
|
||||
trust.response(&response).await.unwrap();
|
||||
assert_eq!(sent_token(&mut trust, &request).await, token);
|
||||
let mut migration = Session::new(login, true, Some(&[1; 32])).unwrap();
|
||||
let outgoing = migration.login(request).await.unwrap();
|
||||
assert!(outgoing.login_request().trusted_device_v2_supported);
|
||||
success.trusted_device_v2_supported = true;
|
||||
migration.response(&success).await.unwrap();
|
||||
let mut no_consent = Session::new(login, true, Some(&[1; 32])).unwrap();
|
||||
assert!(no_consent.response(&success).await.is_err());
|
||||
}
|
||||
|
||||
async fn another_connection_cannot_supply_this_streams_token(
|
||||
trust: &mut crate::trusted_devices::client::Session,
|
||||
) {
|
||||
let listener = tokio::net::TcpListener::bind("127.0.0.1:0").await.unwrap();
|
||||
let addr = listener.local_addr().unwrap();
|
||||
let socket = tokio::net::TcpStream::connect(addr).await.unwrap();
|
||||
let (remote, _) = listener.accept().await.unwrap();
|
||||
let mut peer = Stream::Tcp(FramedStream::from(socket, addr));
|
||||
let mut remote = Stream::Tcp(FramedStream::from(remote, addr));
|
||||
let login = Arc::new(RwLock::new(LoginConfigHandler::default()));
|
||||
let mut old_connection = crate::trusted_devices::client::Session::new(
|
||||
&login.read().unwrap(),
|
||||
peer.is_secured(),
|
||||
None,
|
||||
)
|
||||
.unwrap();
|
||||
let request = login
|
||||
.read()
|
||||
.unwrap()
|
||||
.create_login_msg(String::new(), String::new(), vec![1; 32]);
|
||||
assert!(!sent_token(trust, &request).await.is_empty());
|
||||
assert!(!peer.is_secured());
|
||||
send_login(
|
||||
login,
|
||||
String::new(),
|
||||
String::new(),
|
||||
vec![1; 32],
|
||||
&mut old_connection,
|
||||
&mut peer,
|
||||
)
|
||||
.await
|
||||
.unwrap();
|
||||
let bytes = remote.next().await.unwrap().unwrap();
|
||||
let message = Message::parse_from_bytes(&bytes).unwrap();
|
||||
assert!(
|
||||
message.login_request().trusted_device_v2_token.is_empty(),
|
||||
"another connection's credential was sent on this unsecured stream"
|
||||
);
|
||||
}
|
||||
|
||||
async fn sent_token(trust: &mut crate::trusted_devices::client::Session, request: &Message) -> Vec<u8> {
|
||||
trust
|
||||
.login(request.clone())
|
||||
.await
|
||||
.unwrap()
|
||||
.login_request()
|
||||
.trusted_device_v2_token
|
||||
.to_vec()
|
||||
}
|
||||
+36
-3
@@ -239,8 +239,7 @@ pub fn need_fs_cm_send_files() -> bool {
|
||||
}
|
||||
}
|
||||
|
||||
/// Android is scoped-storage only: the peer may never touch anything outside the app
|
||||
/// workspace (`Config::get_home()`, i.e. the app-specific external files directory).
|
||||
/// Android peers may access only the current shared file-transfer location.
|
||||
///
|
||||
/// Every peer supplied path must be validated with this before it reaches the
|
||||
/// filesystem, for reads, writes, renames, creations and deletions alike. The path is
|
||||
@@ -253,6 +252,22 @@ pub fn need_fs_cm_send_files() -> bool {
|
||||
pub fn is_peer_path_allowed(path: &str, allow_empty: bool) -> bool {
|
||||
use std::path::{Component, Path, PathBuf};
|
||||
|
||||
if base::fs::android::is_path(Path::new(path)) {
|
||||
return match base::fs::android::allowed(path) {
|
||||
Ok(allowed) => allowed,
|
||||
Err(error) => {
|
||||
const ERROR_LOG_INTERVAL: Duration = Duration::from_secs(60);
|
||||
hbb_common::throttled_log!(
|
||||
ERROR_LOG_INTERVAL,
|
||||
warn,
|
||||
"Document access denied: {}",
|
||||
error
|
||||
);
|
||||
false
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
// Canonicalize the deepest existing ancestor and re-append the missing tail.
|
||||
fn resolve(path: &Path) -> Option<PathBuf> {
|
||||
let mut tail: Vec<std::ffi::OsString> = Vec::new();
|
||||
@@ -279,7 +294,7 @@ pub fn is_peer_path_allowed(path: &str, allow_empty: bool) -> bool {
|
||||
if !path.is_absolute() || path.components().any(|c| c == Component::ParentDir) {
|
||||
return false;
|
||||
}
|
||||
let home = Config::get_home();
|
||||
let home = base::fs::get_path(&base::fs::get_home_as_string());
|
||||
let home = home.canonicalize().unwrap_or(home);
|
||||
if home.as_os_str().is_empty() {
|
||||
return false;
|
||||
@@ -294,6 +309,24 @@ pub fn is_peer_path_allowed(_path: &str, _allow_empty: bool) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
#[cfg(target_os = "android")]
|
||||
pub async fn is_peer_path_allowed_async(path: &str, allow_empty: bool) -> bool {
|
||||
let path = path.to_owned();
|
||||
match tokio::task::spawn_blocking(move || is_peer_path_allowed(&path, allow_empty)).await {
|
||||
Ok(allowed) => allowed,
|
||||
Err(error) => {
|
||||
const ERROR_LOG_INTERVAL: Duration = Duration::from_secs(60);
|
||||
hbb_common::throttled_log!(
|
||||
ERROR_LOG_INTERVAL,
|
||||
error,
|
||||
"File-transfer access check failed: {}",
|
||||
error
|
||||
);
|
||||
false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn is_main() -> bool {
|
||||
*IS_MAIN
|
||||
|
||||
@@ -993,6 +993,19 @@ impl InvokeUiSession for FlutterHandler {
|
||||
fn on_connected(&self, _conn_type: ConnType) {}
|
||||
|
||||
fn msgbox(&self, msgtype: &str, title: &str, text: &str, link: &str, retry: bool) {
|
||||
if msgtype == "custom-error-trusted-device" {
|
||||
const ERROR_DURATION_MS: u32 = 10_000;
|
||||
self.push_event(
|
||||
"toast",
|
||||
&[
|
||||
("type", json!("error")),
|
||||
("text", json!(text)),
|
||||
("dur_msec", json!(ERROR_DURATION_MS)),
|
||||
],
|
||||
&[],
|
||||
);
|
||||
return;
|
||||
}
|
||||
let has_retry = if retry { "true" } else { "" };
|
||||
self.push_event(
|
||||
"msgbox",
|
||||
|
||||
+84
-15
@@ -1,5 +1,8 @@
|
||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||
use crate::keyboard::input_source::{change_input_source, get_cur_session_input_source};
|
||||
use crate::{
|
||||
keyboard::input_source::{change_input_source, get_cur_session_input_source},
|
||||
trusted_devices::authority,
|
||||
};
|
||||
#[cfg(target_os = "linux")]
|
||||
use crate::platform::linux::is_x11;
|
||||
use crate::{
|
||||
@@ -60,7 +63,7 @@ fn initialize(app_dir: &str, custom_client_config: &str) {
|
||||
.with_tag("ffi"), // logs will show under mytag tag
|
||||
);
|
||||
#[cfg(not(debug_assertions))]
|
||||
hbb_common::init_log(false, "");
|
||||
crate::platform::android_log::initialize();
|
||||
#[cfg(feature = "mediacodec")]
|
||||
scrap::mediacodec::check_mediacodec();
|
||||
crate::common::test_rendezvous_server();
|
||||
@@ -854,6 +857,13 @@ pub fn session_read_local_dir_sync(
|
||||
path: String,
|
||||
show_hidden: bool,
|
||||
) -> String {
|
||||
#[cfg(target_os = "android")]
|
||||
if fs::android::is_path(&fs::get_path(&path)) {
|
||||
return match fs::read_dir(&fs::get_path(&path), show_hidden) {
|
||||
Ok(fd) => make_fd_to_json(fd.id, path, &fd.entries),
|
||||
Err(error) => serde_json::json!({"error": error.to_string()}).to_string(),
|
||||
};
|
||||
}
|
||||
if let Ok(fd) = fs::read_dir(&fs::get_path(&path), show_hidden) {
|
||||
return make_fd_to_json(fd.id, path, &fd.entries);
|
||||
}
|
||||
@@ -1009,7 +1019,13 @@ pub fn main_get_error() -> String {
|
||||
get_error()
|
||||
}
|
||||
|
||||
pub fn main_set_option(key: String, value: String) {
|
||||
pub fn main_set_option(key: String, value: String) -> hbb_common::anyhow::Result<()> {
|
||||
if key == "2fa"
|
||||
|| key == keys::OPTION_ENABLE_TRUSTED_DEVICES
|
||||
|| key == keys::OPTION_TRUSTED_DEVICE_EXPIRATION
|
||||
{
|
||||
return set_auth_option(key, value);
|
||||
}
|
||||
#[cfg(target_os = "android")]
|
||||
{
|
||||
let is_permission_option = key.eq(keys::OPTION_ENABLE_CLIPBOARD)
|
||||
@@ -1028,7 +1044,7 @@ pub fn main_set_option(key: String, value: String) {
|
||||
key,
|
||||
value
|
||||
);
|
||||
return;
|
||||
return Ok(());
|
||||
}
|
||||
}
|
||||
#[cfg(target_os = "android")]
|
||||
@@ -1067,6 +1083,7 @@ pub fn main_set_option(key: String, value: String) {
|
||||
} else {
|
||||
set_option(key, value.clone());
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn main_get_options() -> String {
|
||||
@@ -1077,7 +1094,7 @@ pub fn main_get_options_sync() -> SyncReturn<String> {
|
||||
SyncReturn(get_options())
|
||||
}
|
||||
|
||||
pub fn main_set_options(json: String) {
|
||||
pub fn main_set_options(json: String) -> hbb_common::anyhow::Result<()> {
|
||||
let mut map: HashMap<String, String> = serde_json::from_str(&json).unwrap_or(HashMap::new());
|
||||
#[cfg(target_os = "android")]
|
||||
{
|
||||
@@ -1102,8 +1119,9 @@ pub fn main_set_options(json: String) {
|
||||
}
|
||||
}
|
||||
if !map.is_empty() {
|
||||
set_options(map)
|
||||
try_set_options(map)?;
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn main_test_if_valid_server(server: String, test_with_proxy: bool) -> String {
|
||||
@@ -1454,6 +1472,17 @@ pub fn main_peer_exists(id: String) -> bool {
|
||||
peer_exists(&id)
|
||||
}
|
||||
|
||||
// `Config::path` resolves through `APP_DIR` only on mobile, where loading peers before it is set
|
||||
// would read the wrong place. Elsewhere the peer path never consults it, so an unset `APP_DIR`
|
||||
// must not stop the peers from loading.
|
||||
fn peer_config_path_ready() -> bool {
|
||||
if cfg!(any(target_os = "android", target_os = "ios")) {
|
||||
!config::APP_DIR.read().unwrap().is_empty()
|
||||
} else {
|
||||
true
|
||||
}
|
||||
}
|
||||
|
||||
fn load_recent_peers(
|
||||
vec_id_modified_time_path: &Vec<(String, SystemTime, std::path::PathBuf)>,
|
||||
to_end: bool,
|
||||
@@ -1485,7 +1514,7 @@ pub fn main_load_recent_peers() {
|
||||
);
|
||||
};
|
||||
|
||||
if !config::APP_DIR.read().unwrap().is_empty() {
|
||||
if peer_config_path_ready() {
|
||||
let vec_id_modified_time_path = PeerConfig::get_vec_id_modified_time_path(&None);
|
||||
if vec_id_modified_time_path.is_empty() {
|
||||
push_to_flutter("".to_owned(), None);
|
||||
@@ -1533,7 +1562,7 @@ pub fn main_load_recent_peers_for_ab(filter: String) -> String {
|
||||
} else {
|
||||
Some(id_filters)
|
||||
};
|
||||
if !config::APP_DIR.read().unwrap().is_empty() {
|
||||
if peer_config_path_ready() {
|
||||
let peers: Vec<HashMap<&str, String>> = PeerConfig::peers(id_filters)
|
||||
.drain(..)
|
||||
.map(|(id, _, p)| peer_to_map(id, p))
|
||||
@@ -1551,7 +1580,7 @@ pub fn main_load_fav_peers() {
|
||||
serde_json::ser::to_string(&data).unwrap_or("".to_owned()),
|
||||
);
|
||||
};
|
||||
if !config::APP_DIR.read().unwrap().is_empty() {
|
||||
if peer_config_path_ready() {
|
||||
let favs = get_fav();
|
||||
let mut recent = PeerConfig::peers(Some(favs.clone()));
|
||||
let mut lan = config::LanPeers::load()
|
||||
@@ -2651,16 +2680,54 @@ pub fn main_check_hwcodec() {
|
||||
check_hwcodec()
|
||||
}
|
||||
|
||||
pub fn main_get_trusted_devices() -> String {
|
||||
get_trusted_devices()
|
||||
// The bridge uses ordinary worker threads; desktop IPC needs a runtime at this boundary.
|
||||
pub fn main_get_trusted_devices() -> hbb_common::anyhow::Result<String> {
|
||||
#[cfg(any(target_os = "android", target_os = "ios"))]
|
||||
return crate::trusted_devices::devices();
|
||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||
hbb_common::tokio::runtime::Builder::new_current_thread()
|
||||
.enable_all()
|
||||
.build()?
|
||||
.block_on(crate::ipc::trusted_devices(authority::Request::List))
|
||||
}
|
||||
|
||||
pub fn main_remove_trusted_devices(json: String) {
|
||||
remove_trusted_devices(&json)
|
||||
pub fn main_remove_trusted_devices(json: String) -> hbb_common::anyhow::Result<()> {
|
||||
let record_ids = serde_json::from_str::<Vec<[u8; crate::trusted_devices::TOKEN_BYTES]>>(&json)?;
|
||||
#[cfg(any(target_os = "android", target_os = "ios"))]
|
||||
return crate::trusted_devices::remove(&record_ids);
|
||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||
hbb_common::tokio::runtime::Builder::new_current_thread()
|
||||
.enable_all()
|
||||
.build()?
|
||||
.block_on(crate::ipc::trusted_devices(authority::Request::Remove(
|
||||
record_ids,
|
||||
)))
|
||||
.map(|_| ())
|
||||
}
|
||||
|
||||
pub fn main_clear_trusted_devices() {
|
||||
clear_trusted_devices()
|
||||
pub fn main_renew_trusted_devices(json: String) -> hbb_common::anyhow::Result<()> {
|
||||
let record_ids = serde_json::from_str::<Vec<[u8; crate::trusted_devices::TOKEN_BYTES]>>(&json)?;
|
||||
#[cfg(any(target_os = "android", target_os = "ios"))]
|
||||
return crate::trusted_devices::renew(&record_ids);
|
||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||
hbb_common::tokio::runtime::Builder::new_current_thread()
|
||||
.enable_all()
|
||||
.build()?
|
||||
.block_on(crate::ipc::trusted_devices(authority::Request::Renew(
|
||||
record_ids,
|
||||
)))
|
||||
.map(|_| ())
|
||||
}
|
||||
|
||||
pub fn main_clear_trusted_devices() -> hbb_common::anyhow::Result<()> {
|
||||
#[cfg(any(target_os = "android", target_os = "ios"))]
|
||||
return crate::trusted_devices::clear();
|
||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||
hbb_common::tokio::runtime::Builder::new_current_thread()
|
||||
.enable_all()
|
||||
.build()?
|
||||
.block_on(crate::ipc::trusted_devices(authority::Request::Clear))
|
||||
.map(|_| ())
|
||||
}
|
||||
|
||||
pub fn main_max_encrypt_len() -> SyncReturn<usize> {
|
||||
@@ -3023,6 +3090,8 @@ pub mod server_side {
|
||||
if let Ok(home_dir) = env.get_string(&home_dir) {
|
||||
*config::APP_HOME_DIR.write().unwrap() = home_dir.into();
|
||||
}
|
||||
#[cfg(not(debug_assertions))]
|
||||
crate::platform::android_log::initialize();
|
||||
if let Ok(custom_client_config) = env.get_string(&custom_client_config) {
|
||||
if !custom_client_config.is_empty() {
|
||||
let custom_client_config: String = custom_client_config.into();
|
||||
|
||||
+34
-7
@@ -258,6 +258,15 @@ async fn start_hbbs_sync_async() {
|
||||
SENDER.lock().unwrap().send(conns).ok();
|
||||
}
|
||||
}
|
||||
if let Some(strategy) = rsp.remove("strategy") {
|
||||
if let Ok(strategy) = serde_json::from_value::<StrategyOptions>(strategy) {
|
||||
if let Err(error) = handle_config_options(strategy.config_options).await {
|
||||
hbb_common::throttled_log!(API_LOG_INTERVAL, error, "Strategy update rejected: {error}");
|
||||
continue;
|
||||
}
|
||||
log::info!("strategy updated");
|
||||
}
|
||||
}
|
||||
if let Some(rsp_modified_at) = rsp.remove("modified_at") {
|
||||
if let Ok(rsp_modified_at) = serde_json::from_value::<i64>(rsp_modified_at) {
|
||||
if rsp_modified_at != modified_at {
|
||||
@@ -265,12 +274,6 @@ async fn start_hbbs_sync_async() {
|
||||
}
|
||||
}
|
||||
}
|
||||
if let Some(strategy) = rsp.remove("strategy") {
|
||||
if let Ok(strategy) = serde_json::from_value::<StrategyOptions>(strategy) {
|
||||
log::info!("strategy updated");
|
||||
handle_config_options(strategy.config_options);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -289,7 +292,9 @@ fn heartbeat_url() -> String {
|
||||
format!("{}/api/heartbeat", url)
|
||||
}
|
||||
|
||||
fn handle_config_options(config_options: HashMap<String, String>) {
|
||||
async fn handle_config_options(
|
||||
config_options: HashMap<String, String>,
|
||||
) -> hbb_common::ResultType<()> {
|
||||
let mut options = Config::get_options();
|
||||
let default_settings = config::DEFAULT_SETTINGS.read().unwrap().clone();
|
||||
config_options
|
||||
@@ -305,7 +310,29 @@ fn handle_config_options(config_options: HashMap<String, String>) {
|
||||
}
|
||||
})
|
||||
.count();
|
||||
if crate::trusted_devices::config::changes_authentication(&options) {
|
||||
let current = Config::get_options();
|
||||
let mut non_auth_options = options.clone();
|
||||
for key in [
|
||||
"2fa",
|
||||
keys::OPTION_ENABLE_TRUSTED_DEVICES,
|
||||
keys::OPTION_TRUSTED_DEVICE_EXPIRATION,
|
||||
] {
|
||||
match current.get(key) {
|
||||
Some(value) => {
|
||||
non_auth_options.insert(key.to_owned(), value.clone());
|
||||
}
|
||||
None => {
|
||||
non_auth_options.remove(key);
|
||||
}
|
||||
}
|
||||
}
|
||||
// Authentication update failures must not block unrelated strategy options.
|
||||
Config::set_options(non_auth_options);
|
||||
return crate::trusted_devices::config::update_options(options).await;
|
||||
}
|
||||
Config::set_options(options);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[allow(unused)]
|
||||
|
||||
+160
-36
@@ -24,6 +24,7 @@ use crate::{
|
||||
privacy_mode,
|
||||
privacy_mode::PrivacyModeState,
|
||||
rendezvous_mediator::RendezvousMediator,
|
||||
trusted_devices::authority,
|
||||
ui_interface::{get_local_option, set_local_option},
|
||||
};
|
||||
use bytes::Bytes;
|
||||
@@ -137,6 +138,19 @@ pub async fn connect_service(ms_timeout: u64) -> ResultType<ConnectionTmpl<ConnC
|
||||
connect(ms_timeout, crate::POSTFIX_SERVICE).await
|
||||
}
|
||||
|
||||
#[cfg(any(target_os = "linux", target_os = "macos"))]
|
||||
pub(crate) async fn connect_trusted_device_service(
|
||||
ms_timeout: u64,
|
||||
) -> ResultType<ConnectionTmpl<ConnClient>> {
|
||||
let connection = connect_service(ms_timeout)
|
||||
.await
|
||||
.map_err(crate::trusted_devices::authority::Unavailable)?;
|
||||
if connection.peer_uid() != Some(0) {
|
||||
bail!("Trusted-device system service is not an authenticated root peer");
|
||||
}
|
||||
Ok(connection)
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Clone)]
|
||||
#[serde(tag = "t", content = "c")]
|
||||
pub enum FS {
|
||||
@@ -482,8 +496,9 @@ pub enum Data {
|
||||
// Although the key is not necessary, it is used to avoid hardcoding the key.
|
||||
WaylandScreencastRestoreToken((String, String)),
|
||||
HwCodecConfig(Option<String>),
|
||||
RemoveTrustedDevices(Vec<Bytes>),
|
||||
ClearTrustedDevices,
|
||||
TrustedDeviceManagement(Box<authority::Request>),
|
||||
TrustedDeviceResponse(Result<crate::trusted_devices::authority::Response, String>),
|
||||
SecurityConfigError(String),
|
||||
#[cfg(all(target_os = "windows", feature = "flutter"))]
|
||||
PrinterData(Vec<u8>),
|
||||
InstallOption(Option<(String, String)>),
|
||||
@@ -986,8 +1001,6 @@ async fn handle(data: Data, stream: &mut Connection) {
|
||||
value = crate::audio_service::get_voice_call_input_device();
|
||||
} else if name == "unlock-pin" {
|
||||
value = Some(Config::get_unlock_pin());
|
||||
} else if name == "trusted-devices" {
|
||||
value = Some(Config::get_trusted_devices_json());
|
||||
} else {
|
||||
value = None;
|
||||
}
|
||||
@@ -1011,7 +1024,19 @@ async fn handle(data: Data, stream: &mut Connection) {
|
||||
log::warn!("Changing permanent password is disabled");
|
||||
updated = false;
|
||||
} else {
|
||||
updated = Config::set_permanent_password(&value);
|
||||
let affected = crate::trusted_devices::config::changes_password(&value);
|
||||
updated =
|
||||
match crate::trusted_devices::config::update_auth(affected, move || {
|
||||
crate::trusted_devices::config::set_password(&value)
|
||||
})
|
||||
.await
|
||||
{
|
||||
Ok(updated) => updated,
|
||||
Err(error) => {
|
||||
log::error!("Password change rejected: {error}");
|
||||
false
|
||||
}
|
||||
};
|
||||
}
|
||||
// Explicitly ACK/NACK permanent-password writes. This allows UIs/FFI to
|
||||
// distinguish "accepted by daemon" vs "IPC send succeeded" without
|
||||
@@ -1019,7 +1044,21 @@ async fn handle(data: Data, stream: &mut Connection) {
|
||||
let ack = if updated { "Y" } else { "N" }.to_owned();
|
||||
allow_err!(stream.send(&Data::Config((name.clone(), Some(ack)))).await);
|
||||
} else if name == "salt" {
|
||||
Config::set_salt(&value);
|
||||
let affected =
|
||||
Config::get_local_permanent_password_storage_and_salt().1 != value;
|
||||
if let Err(error) =
|
||||
crate::trusted_devices::config::update_auth(affected, move || {
|
||||
crate::trusted_devices::config::set_salt(&value)
|
||||
})
|
||||
.await
|
||||
{
|
||||
allow_err!(
|
||||
stream
|
||||
.send(&Data::SecurityConfigError(error.to_string()))
|
||||
.await
|
||||
);
|
||||
return;
|
||||
}
|
||||
} else if name == "voice-call-input" {
|
||||
crate::audio_service::set_voice_call_input_device(Some(value), true);
|
||||
} else if name == "unlock-pin" {
|
||||
@@ -1043,7 +1082,14 @@ async fn handle(data: Data, stream: &mut Connection) {
|
||||
if let Some(v) = value.get("privacy-mode-impl-key") {
|
||||
crate::privacy_mode::switch(v);
|
||||
}
|
||||
Config::set_options(value);
|
||||
if let Err(error) = crate::trusted_devices::config::update_options(value).await {
|
||||
allow_err!(
|
||||
stream
|
||||
.send(&Data::SecurityConfigError(error.to_string()))
|
||||
.await
|
||||
);
|
||||
return;
|
||||
}
|
||||
allow_err!(stream.send(&Data::Options(None)).await);
|
||||
}
|
||||
},
|
||||
@@ -1054,16 +1100,47 @@ async fn handle(data: Data, stream: &mut Connection) {
|
||||
Data::SyncConfig(Some(configs)) => {
|
||||
let (config, config2) = *configs;
|
||||
let _chk = CheckIfRestart::new();
|
||||
Config::set(config);
|
||||
Config2::set(config2);
|
||||
if let Err(error) = crate::trusted_devices::config::update(move || {
|
||||
#[cfg(any(target_os = "linux", target_os = "macos"))]
|
||||
{
|
||||
crate::trusted_devices::config::sync_config(config, config2)
|
||||
}
|
||||
#[cfg(not(any(target_os = "linux", target_os = "macos")))]
|
||||
{
|
||||
crate::trusted_devices::config::set_config(config)
|
||||
.and_then(|_| crate::trusted_devices::config::set_config2(config2))
|
||||
}
|
||||
})
|
||||
.await
|
||||
{
|
||||
allow_err!(
|
||||
stream
|
||||
.send(&Data::SecurityConfigError(error.to_string()))
|
||||
.await
|
||||
);
|
||||
return;
|
||||
}
|
||||
allow_err!(stream.send(&Data::SyncConfig(None)).await);
|
||||
}
|
||||
Data::SyncConfig(None) => {
|
||||
#[cfg(any(target_os = "windows", target_os = "linux", target_os = "macos"))]
|
||||
let config2 = match crate::trusted_devices::config::update(Config2::get_for_sync).await
|
||||
{
|
||||
Ok(config2) => config2,
|
||||
Err(error) => {
|
||||
allow_err!(
|
||||
stream
|
||||
.send(&Data::SecurityConfigError(error.to_string()))
|
||||
.await
|
||||
);
|
||||
return;
|
||||
}
|
||||
};
|
||||
#[cfg(not(any(target_os = "windows", target_os = "linux", target_os = "macos")))]
|
||||
let config2 = Config2::get();
|
||||
allow_err!(
|
||||
stream
|
||||
.send(&Data::SyncConfig(Some(
|
||||
(Config::get(), Config2::get()).into()
|
||||
)))
|
||||
.send(&Data::SyncConfig(Some((Config::get(), config2).into())))
|
||||
.await
|
||||
);
|
||||
}
|
||||
@@ -1214,11 +1291,11 @@ async fn handle(data: Data, stream: &mut Connection) {
|
||||
);
|
||||
}
|
||||
}
|
||||
Data::RemoveTrustedDevices(v) => {
|
||||
Config::remove_trusted_devices(&v);
|
||||
}
|
||||
Data::ClearTrustedDevices => {
|
||||
Config::clear_trusted_devices();
|
||||
Data::TrustedDeviceManagement(request) => {
|
||||
let result = authority::request(*request)
|
||||
.await
|
||||
.map_err(|error| error.to_string());
|
||||
allow_err!(stream.send(&Data::TrustedDeviceResponse(result)).await);
|
||||
}
|
||||
Data::InstallOption(opt) => match opt {
|
||||
Some((_k, _v)) => {
|
||||
@@ -1708,6 +1785,7 @@ pub fn sync_permanent_password_storage_from_daemon() -> ResultType<()> {
|
||||
apply_permanent_password_storage_and_salt_payload(v.as_deref())
|
||||
}
|
||||
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
async fn sync_permanent_password_storage_from_daemon_async() -> ResultType<()> {
|
||||
let ms_timeout = 1_000;
|
||||
let v = get_config_async("permanent-password-storage-and-salt", ms_timeout).await?;
|
||||
@@ -1771,8 +1849,11 @@ async fn set_permanent_password_with_ack_async(v: String) -> ResultType<bool> {
|
||||
let v = v.trim();
|
||||
let ok = v == "Y";
|
||||
if ok {
|
||||
#[cfg(target_os = "windows")]
|
||||
sync_security_config_from_server(&mut c).await?;
|
||||
// Ensure the hashed permanent password storage is written to the user config file.
|
||||
// This sync must not affect the daemon ACK outcome.
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
if let Err(err) = sync_permanent_password_storage_from_daemon_async().await {
|
||||
log::warn!("Failed to sync permanent password storage from daemon: {err}");
|
||||
}
|
||||
@@ -1823,26 +1904,54 @@ pub fn get_unlock_pin() -> String {
|
||||
|
||||
#[cfg(feature = "flutter")]
|
||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||
pub fn get_trusted_devices() -> String {
|
||||
if let Ok(Some(v)) = get_config("trusted-devices") {
|
||||
v
|
||||
} else {
|
||||
Config::get_trusted_devices_json()
|
||||
pub async fn trusted_devices(request: authority::Request) -> ResultType<String> {
|
||||
const TIMEOUT_MS: u64 = 1000;
|
||||
let list = matches!(request, authority::Request::List);
|
||||
let mut connection = connect(TIMEOUT_MS, "").await?;
|
||||
connection
|
||||
.send(&Data::TrustedDeviceManagement(Box::new(request)))
|
||||
.await?;
|
||||
let response = match connection.next_timeout(TIMEOUT_MS).await? {
|
||||
Some(Data::TrustedDeviceResponse(result)) => {
|
||||
match result.map_err(|error| hbb_common::anyhow::anyhow!(error))? {
|
||||
authority::Response::Devices(devices) if list => devices,
|
||||
authority::Response::Done if !list => String::new(),
|
||||
_ => bail!("Invalid trusted-device management response"),
|
||||
}
|
||||
}
|
||||
_ => bail!("The host did not confirm the trusted-device operation"),
|
||||
};
|
||||
#[cfg(target_os = "windows")]
|
||||
if !list {
|
||||
sync_security_config_from_server(&mut connection).await?;
|
||||
}
|
||||
Ok(response)
|
||||
}
|
||||
|
||||
#[cfg(feature = "flutter")]
|
||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||
pub fn remove_trusted_devices(hwids: Vec<Bytes>) {
|
||||
Config::remove_trusted_devices(&hwids);
|
||||
allow_err!(set_data(&Data::RemoveTrustedDevices(hwids)));
|
||||
}
|
||||
#[cfg(target_os = "windows")]
|
||||
async fn sync_security_config_from_server(
|
||||
connection: &mut ConnectionTmpl<ConnClient>,
|
||||
) -> ResultType<()> {
|
||||
use hbb_common::anyhow::Context;
|
||||
|
||||
#[cfg(feature = "flutter")]
|
||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||
pub fn clear_trusted_devices() {
|
||||
Config::clear_trusted_devices();
|
||||
allow_err!(set_data(&Data::ClearTrustedDevices));
|
||||
const TIMEOUT_MS: u64 = 1000;
|
||||
// MSI removal can reactivate this user copy without running our uninstall hooks.
|
||||
async {
|
||||
connection.send(&Data::SyncConfig(None)).await?;
|
||||
match connection.next_timeout(TIMEOUT_MS).await? {
|
||||
Some(Data::SyncConfig(Some(configs))) => {
|
||||
let (config, config2) = *configs;
|
||||
crate::trusted_devices::config::update(move || {
|
||||
crate::trusted_devices::config::sync_config(config, config2)
|
||||
})
|
||||
.await
|
||||
}
|
||||
Some(Data::SecurityConfigError(error)) => bail!(error),
|
||||
_ => bail!("The host did not provide its current configuration"),
|
||||
}
|
||||
}
|
||||
.await
|
||||
.context("Host security update succeeded, but updating the local configuration failed")
|
||||
}
|
||||
|
||||
pub fn get_id() -> String {
|
||||
@@ -1915,16 +2024,31 @@ pub fn set_option(key: &str, value: &str) {
|
||||
} else {
|
||||
options.insert(key.to_owned(), value.to_owned());
|
||||
}
|
||||
set_options(options).ok();
|
||||
allow_err!(set_options(options));
|
||||
}
|
||||
|
||||
#[tokio::main(flavor = "current_thread")]
|
||||
pub async fn set_options(value: HashMap<String, String>) -> ResultType<()> {
|
||||
let _nat = CheckTestNatType::new();
|
||||
if let Ok(mut c) = connect(1000, "").await {
|
||||
let affected = crate::trusted_devices::config::changes_authentication(&value);
|
||||
let connection = connect(1000, "").await;
|
||||
if affected && connection.is_err() {
|
||||
bail!("The host is unavailable; authentication settings were not changed");
|
||||
}
|
||||
if let Ok(mut c) = connection {
|
||||
c.send(&Data::Options(Some(value.clone()))).await?;
|
||||
// do not put below before connect, because we need to check should_exit
|
||||
c.next_timeout(1000).await.ok();
|
||||
match c.next_timeout(1000).await {
|
||||
#[cfg(target_os = "windows")]
|
||||
Ok(Some(Data::Options(None))) if affected => {
|
||||
sync_security_config_from_server(&mut c).await?;
|
||||
}
|
||||
Ok(Some(Data::Options(None))) => {}
|
||||
Ok(Some(Data::SecurityConfigError(error))) => bail!(error),
|
||||
Err(error) if affected => return Err(error),
|
||||
_ if affected => bail!("The host did not confirm the configuration update"),
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
Config::set_options(value);
|
||||
Ok(())
|
||||
|
||||
+4
-1
@@ -659,9 +659,12 @@ async fn probe_existing_listener(postfix: &str) -> bool {
|
||||
if stream.send(&Data::SyncConfig(None)).await.is_err() {
|
||||
return false;
|
||||
}
|
||||
// A configuration error still confirms that the service is alive.
|
||||
matches!(
|
||||
stream.next_timeout(1000).await,
|
||||
Ok(Some(Data::SyncConfig(Some(_))))
|
||||
Ok(Some(
|
||||
Data::SyncConfig(Some(_)) | Data::SecurityConfigError(_)
|
||||
))
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
+45
@@ -143,6 +143,10 @@ fn resolve_lang(saved_lang: &str, locale: &str, cjk_fallback: bool) -> String {
|
||||
"zh-cn"
|
||||
})
|
||||
.to_owned();
|
||||
// Hong Kong, Macao and the Hant script use Traditional Chinese.
|
||||
if !locale.contains("hans") && ["hk", "mo", "hant"].iter().any(|x| locale.contains(x)) {
|
||||
lang = "zh-tw".to_owned();
|
||||
}
|
||||
}
|
||||
}
|
||||
if lang.is_empty() {
|
||||
@@ -167,6 +171,12 @@ fn resolve_lang(saved_lang: &str, locale: &str, cjk_fallback: bool) -> String {
|
||||
.map(|x| x.split("_").next().unwrap_or_default())
|
||||
.unwrap_or_default()
|
||||
.to_owned();
|
||||
// The Kazakh and Georgian tables are keyed by country code, not by language code.
|
||||
if lang == "kk" {
|
||||
lang = "kz".to_owned();
|
||||
} else if lang == "ka" {
|
||||
lang = "ge".to_owned();
|
||||
}
|
||||
}
|
||||
if cjk_fallback && is_cjk_lang(&lang) {
|
||||
"en".to_owned()
|
||||
@@ -365,4 +375,39 @@ mod test {
|
||||
assert_eq!(f("", "pt-AO", false), "pt-pt");
|
||||
assert_eq!(f("", "pt-MZ", false), "pt-pt");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_resolve_lang_detects_kazakh_and_georgian_from_locale() {
|
||||
use super::resolve_lang as f;
|
||||
|
||||
assert_eq!(f("", "kk_KZ.UTF-8", false), "kz");
|
||||
assert_eq!(f("", "kk-KZ", false), "kz");
|
||||
assert_eq!(f("", "ka_GE.UTF-8", false), "ge");
|
||||
assert_eq!(f("", "ka-GE", false), "ge");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_resolve_lang_detects_traditional_chinese_for_hong_kong_and_macao() {
|
||||
use super::resolve_lang as f;
|
||||
|
||||
assert_eq!(f("", "zh_HK.UTF-8", false), "zh-tw");
|
||||
assert_eq!(f("", "zh-Hant-HK", false), "zh-tw");
|
||||
assert_eq!(f("", "zh-Hant", false), "zh-tw");
|
||||
assert_eq!(f("", "zh_MO", false), "zh-tw");
|
||||
assert_eq!(f("", "zh-Hans-HK", false), "zh-cn");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_translations_keep_the_placeholder_of_their_key() {
|
||||
use super::*;
|
||||
|
||||
// translate() puts the caller's value where `{}` is, so a translation without `{}` drops it.
|
||||
for table in [&*ru::T, &*sc::T, &*vi::T] {
|
||||
for (key, value) in table.iter() {
|
||||
if key.contains("{}") && !value.is_empty() {
|
||||
assert!(value.contains("{}"), "{key:?} => {value:?}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+45
-37
@@ -763,8 +763,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Lock canvas", "قفل اللوحة"),
|
||||
("Sync clipboard between sessions", "مزامنة الحافظة بين الجلسات"),
|
||||
("sync-clipboard-between-sessions-tip", "النص أو الصور المنسوخة في جلسة بعيدة واحدة تُرسَل أيضًا إلى حافظة جلساتك المتصلة الأخرى."),
|
||||
("terminal-clipboard-write-tip", ""),
|
||||
("Allow terminal apps to copy to clipboard", ""),
|
||||
("terminal-clipboard-write-tip", "يريد تطبيق في الطرفية نسخ نص إلى حافظة هذا الجهاز. عند منح هذا الإذن، يُطبَّق على تطبيقات الطرفية في جميع الاتصالات حتى تقوم بإيقافه في الإعدادات. لا يتأثر النسخ واللصق اليدوي."),
|
||||
("Allow terminal apps to copy to clipboard", "السماح لتطبيقات الطرفية بالنسخ إلى الحافظة"),
|
||||
("Enable", "تفعيل"),
|
||||
("Reuse one connection for port forwarding", "إعادة استخدام اتصال واحد لإعادة توجيه المنافذ"),
|
||||
("port-forward-mux-tip", "تمرير جميع اتصالات إعادة توجيه المنافذ عبر اتصال واحد بالجهاز الآخر، بدلاً من الاتصال وتسجيل الدخول من جديد لكل اتصال."),
|
||||
@@ -780,40 +780,48 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("RustDesk could not load a GStreamer component needed for screen capture ({})", "تعذّر على RustDesk تحميل مكوّن GStreamer اللازم لالتقاط الشاشة ({})"),
|
||||
("Relay fallback delay in seconds", "مهلة التراجع إلى الترحيل بالثواني"),
|
||||
("relay-fallback-delay-tip", "المدة التي ينتظرها اتصال الترحيل القائم بالفعل الاتصالَ المباشر عبر WebRTC قبل أن يُستخدم بدلًا منه. زِدها لمنح الاتصال المباشر البطيء فرصة أكبر للفوز؛ وقلّلها للاستقرار على الترحيل أسرع في الشبكات التي يتعذر فيها الاتصال المباشر. اتركها فارغة للقيمة الافتراضية 2.5 ثانية."),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", ""),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "لبدء مكالمة صوتية، فعّل «لقط الصوت» في صفحة «مشاركة الشاشة»."),
|
||||
("Keyboard shortcuts", "اختصارات لوحة المفاتيح"),
|
||||
("Configure shortcuts...", "تهيئة الاختصارات..."),
|
||||
("Enable keyboard shortcuts in remote session", "تفعيل اختصارات لوحة المفاتيح في الجلسة عن بُعد"),
|
||||
("shortcut-page-description", "اربط مجموعة مفاتيح بكل إجراء من إجراءات الجلسة أدناه. يجب أن يتضمن كل ربط مفتاح تعديل واحدًا على الأقل."),
|
||||
("shortcut-passthrough-tip", "عند التشغيل، تُمرَّر كل مجموعات المفاتيح المربوطة إلى الجهاز البعيد. يفيد ذلك عندما يتعارض ربط ما مع شيء تحتاجه على الجهاز البعيد."),
|
||||
("Pass-through to remote", "تمرير إلى الجهاز البعيد"),
|
||||
("Reset to defaults", "إعادة التعيين إلى الافتراضي"),
|
||||
("shortcut-reset-confirm-tip", "سيؤدي هذا إلى استبدال جميع الروابط الحالية بالمجموعة الافتراضية. هل تريد المتابعة؟"),
|
||||
("Monitor", "الشاشة"),
|
||||
("Keyboard", "لوحة المفاتيح"),
|
||||
("Toggle fullscreen", "تبديل ملء الشاشة"),
|
||||
("Switch to next display", "التبديل إلى الشاشة التالية"),
|
||||
("Switch to previous display", "التبديل إلى الشاشة السابقة"),
|
||||
("Switch to next tab", "التبديل إلى التبويب التالي"),
|
||||
("Switch to previous tab", "التبديل إلى التبويب السابق"),
|
||||
("Toggle session recording", "تبديل تسجيل الجلسة"),
|
||||
("Close tab", "إغلاق التبويب"),
|
||||
("Toggle toolbar", "تبديل شريط الأدوات"),
|
||||
("Toggle input source", "تبديل مصدر الإدخال"),
|
||||
("Edit", "تعديل"),
|
||||
("Save", "حفظ"),
|
||||
("Set shortcut", "تعيين اختصار"),
|
||||
("shortcut-recording-instruction", "اضغط على مجموعة المفاتيح التي تريد استخدامها."),
|
||||
("shortcut-recording-press-keys-tip", "اضغط على مجموعة مفاتيح..."),
|
||||
("shortcut-must-include-modifiers", "يجب أن يتضمن مفتاح تعديل واحدًا على الأقل: {}"),
|
||||
("shortcut-already-bound-to", "مرتبط بالفعل بالإجراء"),
|
||||
("Replace", "استبدال"),
|
||||
("Valid", "صالح"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "يتطلب تسجيل الاختصار لوحة مفاتيح فعلية. لوحات المفاتيح الافتراضية غير مدعومة."),
|
||||
("shortcut-key-not-supported", "لا يمكن استخدام «{}» كاختصار."),
|
||||
("On", "تشغيل"),
|
||||
("Off", "إيقاف"),
|
||||
("api_server_connection_tip", "يستخدم خادمك المخصص HTTP غير المشفر. تواصل مع المسؤول لتفعيل HTTPS."),
|
||||
("api_server_empty_tip", "عندما يكون «خادم API» فارغًا، يستخدم خادمك المخصص HTTP افتراضيًا. تواصل مع المسؤول لتفعيل HTTPS."),
|
||||
("RustDesk storage", "تخزين RustDesk"),
|
||||
("Other folders", "مجلدات أخرى"),
|
||||
("Choose which folder remote devices can access.", "اختر المجلد الذي يمكن للأجهزة البعيدة الوصول إليه."),
|
||||
("android-logs-folder-tip", "اختر Android → media لتخزين ملفات السجل."),
|
||||
("Choose folder", "اختيار مجلد"),
|
||||
("Please select Android → media.", "الرجاء اختيار Android → media."),
|
||||
("Trust duration (days)", "مدة الثقة (بالأيام)"),
|
||||
("Renew trust", "تجديد الثقة"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+51
-43
@@ -770,50 +770,58 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("port-forward-mux-tip", "Port yönləndirmə xəritələnməsinin hər əlaqəsini qarşı tərəfə açılan tək əlaqə üzərindən daşıyır, hər biri üçün yenidən qoşulub giriş etmək əvəzinə."),
|
||||
("Enable WebRTC P2P connection", "WebRTC P2P əlaqəsini aktivləşdir"),
|
||||
("Enable TCP hole punching", "TCP deşik açmanı aktivləşdir"),
|
||||
("The screen sharing request was declined on the remote device", ""),
|
||||
("The screen sharing request timed out on the remote device", ""),
|
||||
("RustDesk cannot reach the desktop session on the remote device, check that a desktop session is running and that RustDesk can use it", ""),
|
||||
("The desktop portal on the remote device is missing a capability needed for screen sharing or remote control, its backend may not be installed", ""),
|
||||
("Screen sharing was approved on the remote device, but the PipeWire connection could not be opened", ""),
|
||||
("The screen sharing request ended without completing on the remote device", ""),
|
||||
("RustDesk could not obtain a usable screen from the XDG Desktop Portal, the PipeWire library may be too old", ""),
|
||||
("RustDesk could not load a GStreamer component needed for screen capture ({})", ""),
|
||||
("The screen sharing request was declined on the remote device", "Ekran paylaşımı sorğusu uzaq cihazda rədd edildi"),
|
||||
("The screen sharing request timed out on the remote device", "Uzaq cihazda ekran paylaşımı sorğusunun vaxtı bitdi"),
|
||||
("RustDesk cannot reach the desktop session on the remote device, check that a desktop session is running and that RustDesk can use it", "RustDesk uzaq cihazdakı masaüstü sessiyasına çata bilmir, masaüstü sessiyasının işlədiyini və RustDesk-in ondan istifadə edə bildiyini yoxlayın"),
|
||||
("The desktop portal on the remote device is missing a capability needed for screen sharing or remote control, its backend may not be installed", "Uzaq cihazdakı masaüstü portalında ekran paylaşımı və ya uzaqdan idarəetmə üçün lazım olan imkan yoxdur, onun backend-i quraşdırılmamış ola bilər"),
|
||||
("Screen sharing was approved on the remote device, but the PipeWire connection could not be opened", "Ekran paylaşımı uzaq cihazda təsdiqləndi, lakin PipeWire əlaqəsini açmaq alınmadı"),
|
||||
("The screen sharing request ended without completing on the remote device", "Ekran paylaşımı sorğusu uzaq cihazda tamamlanmadan sona çatdı"),
|
||||
("RustDesk could not obtain a usable screen from the XDG Desktop Portal, the PipeWire library may be too old", "RustDesk XDG Desktop Portal-dan istifadəyə yararlı ekran əldə edə bilmədi, PipeWire kitabxanası çox köhnə ola bilər"),
|
||||
("RustDesk could not load a GStreamer component needed for screen capture ({})", "RustDesk ekran çəkilişi üçün lazım olan GStreamer komponentini yükləyə bilmədi ({})"),
|
||||
("Relay fallback delay in seconds", "Ötürücüyə keçid gecikməsi, saniyə"),
|
||||
("relay-fallback-delay-tip", "Artıq qurulmuş ötürücü bağlantı birbaşa WebRTC bağlantısını nə qədər gözləyir, sonra onun əvəzinə istifadə olunur. Yavaş birbaşa bağlantıya daha çox vaxt vermək üçün artırın; birbaşa bağlantının mümkün olmadığı şəbəkələrdə ötürücüyə daha tez keçmək üçün azaldın. Standart 2.5 saniyə üçün boş buraxın."),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", ""),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "Səsli zəngə başlamaq üçün «Ekranı paylaş» səhifəsində «Audio çəkilişi» seçimini aktivləşdirin."),
|
||||
("Keyboard shortcuts", "Klaviatura qısayolları"),
|
||||
("Configure shortcuts...", "Qısayolları tənzimlə..."),
|
||||
("Enable keyboard shortcuts in remote session", "Uzaq sessiyada klaviatura qısayollarını aktivləşdir"),
|
||||
("shortcut-page-description", "Aşağıdakı hər sessiya əməliyyatına düymə kombinasiyası təyin edin. Hər təyinatda ən azı bir modifikator düyməsi olmalıdır."),
|
||||
("shortcut-passthrough-tip", "Aktiv olduqda, təyin edilmiş bütün kombinasiyalar uzaq tərəfə ötürülür. Təyinat uzaq tərəfdə sizə lazım olan nə iləsə toqquşduqda faydalıdır."),
|
||||
("Pass-through to remote", "Uzaq tərəfə ötür"),
|
||||
("Reset to defaults", "Standartlara sıfırla"),
|
||||
("shortcut-reset-confirm-tip", "Bu, bütün cari təyinatları standart dəstlə əvəz edəcək. Davam edilsin?"),
|
||||
("Monitor", "Monitor"),
|
||||
("Keyboard", "Klaviatura"),
|
||||
("Toggle fullscreen", "Tam ekranı aç/bağla"),
|
||||
("Switch to next display", "Növbəti ekrana keç"),
|
||||
("Switch to previous display", "Əvvəlki ekrana keç"),
|
||||
("Switch to next tab", "Növbəti taba keç"),
|
||||
("Switch to previous tab", "Əvvəlki taba keç"),
|
||||
("Toggle session recording", "Sessiya yazısını başlat/dayandır"),
|
||||
("Close tab", "Tabı bağla"),
|
||||
("Toggle toolbar", "Alətlər panelini göstər/gizlət"),
|
||||
("Toggle input source", "Giriş mənbəyini dəyiş"),
|
||||
("Edit", "Redaktə et"),
|
||||
("Save", "Yadda saxla"),
|
||||
("Set shortcut", "Qısayol təyin et"),
|
||||
("shortcut-recording-instruction", "İstifadə etmək istədiyiniz düymə kombinasiyasını basın."),
|
||||
("shortcut-recording-press-keys-tip", "Düymə kombinasiyasını basın..."),
|
||||
("shortcut-must-include-modifiers", "Ən azı bir modifikator düyməsi olmalıdır: {}"),
|
||||
("shortcut-already-bound-to", "Artıq təyin edilib:"),
|
||||
("Replace", "Əvəz et"),
|
||||
("Valid", "Keçərlidir"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "Qısayolu qeydə almaq üçün fiziki klaviatura tələb olunur. Ekran klaviaturaları dəstəklənmir."),
|
||||
("shortcut-key-not-supported", "«{}» qısayol kimi istifadə edilə bilməz."),
|
||||
("On", "Açıq"),
|
||||
("Off", "Bağlı"),
|
||||
("api_server_connection_tip", "Fərdi serveriniz şifrələnməmiş HTTP istifadə edir. HTTPS-i aktivləşdirmək üçün administratorunuzla əlaqə saxlayın."),
|
||||
("api_server_empty_tip", "«API serveri» boş olduqda fərdi serveriniz standart olaraq HTTP istifadə edir. HTTPS-i aktivləşdirmək üçün administratorunuzla əlaqə saxlayın."),
|
||||
("RustDesk storage", "RustDesk yaddaşı"),
|
||||
("Other folders", "Digər qovluqlar"),
|
||||
("Choose which folder remote devices can access.", "Uzaq cihazların hansı qovluğa giriş edə biləcəyini seçin."),
|
||||
("android-logs-folder-tip", "Jurnal fayllarını saxlamaq üçün Android → media seçin."),
|
||||
("Choose folder", "Qovluq seç"),
|
||||
("Please select Android → media.", "Zəhmət olmasa, Android → media seçin."),
|
||||
("Trust duration (days)", "Etibar müddəti (gün)"),
|
||||
("Renew trust", "Etibarı yenilə"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+45
-37
@@ -763,8 +763,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Lock canvas", "Заблакіраваць палатно"),
|
||||
("Sync clipboard between sessions", "Сінхранізаваць буфер абмену паміж сеансамі"),
|
||||
("sync-clipboard-between-sessions-tip", "Тэкст або відарысы, скапіяваныя ў адным аддаленым сеансе, таксама адпраўляюцца ў буфер абмену іншых вашых падключаных сеансаў."),
|
||||
("terminal-clipboard-write-tip", ""),
|
||||
("Allow terminal apps to copy to clipboard", ""),
|
||||
("terminal-clipboard-write-tip", "Праграма ў тэрмінале хоча скапіяваць тэкст у буфер абмену гэтай прылады. Калі даць дазвол, ён будзе дзейнічаць для праграм у тэрмінале ва ўсіх падключэннях, пакуль вы не адключыце яго ў наладах. Ручное капіраванне і ўстаўка не закранаюцца."),
|
||||
("Allow terminal apps to copy to clipboard", "Дазволіць праграмам у тэрмінале капіраваць у буфер абмену"),
|
||||
("Enable", "Уключыць"),
|
||||
("Reuse one connection for port forwarding", "Выкарыстоўваць адно злучэнне для перанакіравання партоў"),
|
||||
("port-forward-mux-tip", "Перадаваць усе злучэнні аднаго перанакіравання партоў праз адно злучэнне з аддаленай прыладай замест паўторнага падлучэння і ўваходу для кожнага з іх."),
|
||||
@@ -780,40 +780,48 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("RustDesk could not load a GStreamer component needed for screen capture ({})", "RustDesk не змог загрузіць кампанент GStreamer, патрэбны для захопу экрана ({})"),
|
||||
("Relay fallback delay in seconds", "Затрымка пераходу на рэтранслятар у секундах"),
|
||||
("relay-fallback-delay-tip", "Колькі часу ўжо ўсталяванае злучэнне праз рэтранслятар чакае прамога злучэння WebRTC, перш чым будзе выкарыстана замест яго. Павялічце, каб даць павольнаму прамому злучэнню больш часу; паменшыце, каб хутчэй пераходзіць на рэтранслятар у сетках, дзе прамое злучэнне немагчымае. Пакіньце пустым для значэння па змаўчанні 2.5 секунды."),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", ""),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "Каб пачаць галасавы выклік, уключыце «Захоп аўдыя» на старонцы «Дэманстрацыя экрана»."),
|
||||
("Keyboard shortcuts", "Спалучэнні клавіш"),
|
||||
("Configure shortcuts...", "Наладзіць спалучэнні клавіш..."),
|
||||
("Enable keyboard shortcuts in remote session", "Выкарыстоўваць спалучэнні клавіш у аддаленым сеансе"),
|
||||
("shortcut-page-description", "Прызначце спалучэнне клавіш кожнаму дзеянню сеанса ніжэй. Кожнае прызначэнне павінна ўключаць хаця б адзін мадыфікатар."),
|
||||
("shortcut-passthrough-tip", "Калі ўключана, кожнае прызначанае спалучэнне клавіш перадаецца на аддаленую прыладу. Карысна, калі прызначэнне канфліктуе з чымсьці, што вам патрэбна на аддаленай прыладзе."),
|
||||
("Pass-through to remote", "Перадаваць на аддаленую прыладу"),
|
||||
("Reset to defaults", "Скінуць да стандартных"),
|
||||
("shortcut-reset-confirm-tip", "Усе бягучыя прызначэнні будуць заменены стандартным наборам. Працягнуць?"),
|
||||
("Monitor", "Манітор"),
|
||||
("Keyboard", "Клавіятура"),
|
||||
("Toggle fullscreen", "Пераключыць поўнаэкранны рэжым"),
|
||||
("Switch to next display", "Пераключыцца на наступны дысплэй"),
|
||||
("Switch to previous display", "Пераключыцца на папярэдні дысплэй"),
|
||||
("Switch to next tab", "Пераключыцца на наступную ўкладку"),
|
||||
("Switch to previous tab", "Пераключыцца на папярэднюю ўкладку"),
|
||||
("Toggle session recording", "Пераключыць запіс сеанса"),
|
||||
("Close tab", "Закрыць укладку"),
|
||||
("Toggle toolbar", "Пераключыць панэль інструментаў"),
|
||||
("Toggle input source", "Пераключыць крыніцу ўводу"),
|
||||
("Edit", "Змяніць"),
|
||||
("Save", "Захаваць"),
|
||||
("Set shortcut", "Прызначыць спалучэнне клавіш"),
|
||||
("shortcut-recording-instruction", "Націсніце спалучэнне клавіш, якое хочаце выкарыстоўваць."),
|
||||
("shortcut-recording-press-keys-tip", "Націсніце спалучэнне клавіш..."),
|
||||
("shortcut-must-include-modifiers", "Павінна ўключаць хаця б адзін мадыфікатар: {}"),
|
||||
("shortcut-already-bound-to", "Ужо прызначана для"),
|
||||
("Replace", "Замяніць"),
|
||||
("Valid", "Дапушчальна"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "Для запісу патрэбна фізічная клавіятура. Экранныя клавіятуры не падтрымліваюцца."),
|
||||
("shortcut-key-not-supported", "«{}» нельга выкарыстоўваць як спалучэнне клавіш."),
|
||||
("On", "Укл."),
|
||||
("Off", "Выкл."),
|
||||
("api_server_connection_tip", "Ваш уласны сервер выкарыстоўвае незашыфраваны HTTP. Звярніцеся да адміністратара, каб уключыць HTTPS."),
|
||||
("api_server_empty_tip", "Калі поле «Сервер API» пустое, ваш уласны сервер па змаўчанні выкарыстоўвае HTTP. Звярніцеся да адміністратара, каб уключыць HTTPS."),
|
||||
("RustDesk storage", "Сховішча RustDesk"),
|
||||
("Other folders", "Іншыя папкі"),
|
||||
("Choose which folder remote devices can access.", "Выберыце папку, да якой аддаленыя прылады змогуць атрымаць доступ."),
|
||||
("android-logs-folder-tip", "Выберыце Android → media для захоўвання файлаў журналаў."),
|
||||
("Choose folder", "Выбраць папку"),
|
||||
("Please select Android → media.", "Выберыце Android → media."),
|
||||
("Trust duration (days)", "Тэрмін даверу (у днях)"),
|
||||
("Renew trust", "Падоўжыць давер"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+45
-37
@@ -763,8 +763,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Lock canvas", "Заключване на платното"),
|
||||
("Sync clipboard between sessions", "Синхронизиране на клипборда между сесиите"),
|
||||
("sync-clipboard-between-sessions-tip", "Текст или изображения, копирани в една отдалечена сесия, се изпращат и към клипборда на другите ви свързани сесии."),
|
||||
("terminal-clipboard-write-tip", ""),
|
||||
("Allow terminal apps to copy to clipboard", ""),
|
||||
("terminal-clipboard-write-tip", "Приложение в терминала иска да копира текст в клипборда на това устройство. Ако бъде дадено, това разрешение важи за терминалните приложения във всички връзки, докато не го изключите от Настройки. Ръчното копиране и поставяне не се засягат."),
|
||||
("Allow terminal apps to copy to clipboard", "Позволяване на терминалните приложения да копират в клипборда"),
|
||||
("Enable", "Активирай"),
|
||||
("Reuse one connection for port forwarding", "Използване на една връзка за пренасочване на портове"),
|
||||
("port-forward-mux-tip", "Всички връзки на едно пренасочване на портове минават през една връзка към отсрещния компютър, вместо да се свързвате и влизате отново за всяка от тях."),
|
||||
@@ -780,40 +780,48 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("RustDesk could not load a GStreamer component needed for screen capture ({})", "RustDesk не можа да зареди компонент на GStreamer, необходим за заснемане на екрана ({})"),
|
||||
("Relay fallback delay in seconds", "Забавяне преди преминаване към препредаване в секунди"),
|
||||
("relay-fallback-delay-tip", "Колко време вече установената връзка чрез препредаване изчаква директната WebRTC връзка, преди да бъде използвана вместо нея. Увеличете, за да дадете повече време на бавна директна връзка; намалете, за да се премине по-бързо към препредаване в мрежи, където директна връзка е невъзможна. Оставете празно за стойността по подразбиране 2.5 секунди."),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", ""),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "За да започнете гласово обаждане, включете „Аудиозапис“ на страницата „Сподели екран“."),
|
||||
("Keyboard shortcuts", "Клавишни комбинации"),
|
||||
("Configure shortcuts...", "Настройка на клавишните комбинации..."),
|
||||
("Enable keyboard shortcuts in remote session", "Позволяване на клавишни комбинации в отдалечена сесия"),
|
||||
("shortcut-page-description", "Задайте клавишна комбинация за всяко от действията в сесията по-долу. Всяка комбинация трябва да включва поне един модифициращ клавиш."),
|
||||
("shortcut-passthrough-tip", "Когато е включено, всяка зададена комбинация се препраща към отдалеченото устройство. Полезно е, когато комбинация съвпада с нещо, което ви трябва на отдалеченото устройство."),
|
||||
("Pass-through to remote", "Препращане към отдалеченото устройство"),
|
||||
("Reset to defaults", "Възстановяване по подразбиране"),
|
||||
("shortcut-reset-confirm-tip", "Всички текущи комбинации ще бъдат заменени с тези по подразбиране. Да се продължи ли?"),
|
||||
("Monitor", "Монитор"),
|
||||
("Keyboard", "Клавиатура"),
|
||||
("Toggle fullscreen", "Превключване на цял екран"),
|
||||
("Switch to next display", "Превключване към следващия екран"),
|
||||
("Switch to previous display", "Превключване към предишния екран"),
|
||||
("Switch to next tab", "Превключване към следващия раздел"),
|
||||
("Switch to previous tab", "Превключване към предишния раздел"),
|
||||
("Toggle session recording", "Превключване на записа на сесията"),
|
||||
("Close tab", "Затваряне на раздела"),
|
||||
("Toggle toolbar", "Превключване на лентата с инструменти"),
|
||||
("Toggle input source", "Превключване на източника на въвеждане"),
|
||||
("Edit", "Редактиране"),
|
||||
("Save", "Запазване"),
|
||||
("Set shortcut", "Задаване на комбинация"),
|
||||
("shortcut-recording-instruction", "Натиснете клавишната комбинация, която искате да използвате."),
|
||||
("shortcut-recording-press-keys-tip", "Натиснете клавишна комбинация..."),
|
||||
("shortcut-must-include-modifiers", "Трябва да включва поне един модифициращ клавиш: {}"),
|
||||
("shortcut-already-bound-to", "Вече е зададена за"),
|
||||
("Replace", "Замяна"),
|
||||
("Valid", "Валидна"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "Записването изисква физическа клавиатура. Екранните клавиатури не се поддържат."),
|
||||
("shortcut-key-not-supported", "„{}“ не може да се използва като клавишна комбинация."),
|
||||
("On", "Вкл."),
|
||||
("Off", "Изкл."),
|
||||
("api_server_connection_tip", "Вашият собствен сървър използва некриптиран HTTP. Свържете се с администратора си, за да включи HTTPS."),
|
||||
("api_server_empty_tip", "Когато полето „API сървър“ е празно, вашият собствен сървър по подразбиране използва HTTP. Свържете се с администратора си, за да включи HTTPS."),
|
||||
("RustDesk storage", "Хранилище на RustDesk"),
|
||||
("Other folders", "Други папки"),
|
||||
("Choose which folder remote devices can access.", "Изберете до коя папка да имат достъп отдалечените устройства."),
|
||||
("android-logs-folder-tip", "Изберете Android → media за съхраняване на файловете с дневници."),
|
||||
("Choose folder", "Избор на папка"),
|
||||
("Please select Android → media.", "Моля, изберете Android → media."),
|
||||
("Trust duration (days)", "Срок на доверие (дни)"),
|
||||
("Renew trust", "Подновяване на доверието"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+45
-37
@@ -763,8 +763,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Lock canvas", "Bloca el llenç"),
|
||||
("Sync clipboard between sessions", "Sincronitza el porta-retalls entre sessions"),
|
||||
("sync-clipboard-between-sessions-tip", "El text o les imatges copiats en una sessió remota també s'envien al porta-retalls de les altres sessions connectades."),
|
||||
("terminal-clipboard-write-tip", ""),
|
||||
("Allow terminal apps to copy to clipboard", ""),
|
||||
("terminal-clipboard-write-tip", "Una aplicació del terminal vol copiar text al porta-retalls d'aquest dispositiu. Si ho permeteu, aquest permís s'aplica a les aplicacions de terminal en totes les connexions fins que el desactiveu a Configuració. Copiar i enganxar manualment no es veu afectat."),
|
||||
("Allow terminal apps to copy to clipboard", "Permet que les aplicacions de terminal copiïn al porta-retalls"),
|
||||
("Enable", "Habilita"),
|
||||
("Reuse one connection for port forwarding", "Reutilitza una connexió per a la redirecció de ports"),
|
||||
("port-forward-mux-tip", "Fa passar totes les connexions d'una redirecció de ports per una única connexió amb l'altre equip, en lloc de connectar i iniciar la sessió de nou per a cadascuna."),
|
||||
@@ -780,40 +780,48 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("RustDesk could not load a GStreamer component needed for screen capture ({})", "El RustDesk no ha pogut carregar un component del GStreamer necessari per capturar la pantalla ({})"),
|
||||
("Relay fallback delay in seconds", "Retard abans de recórrer al relé en segons"),
|
||||
("relay-fallback-delay-tip", "Quant de temps espera una connexió de relé ja establerta la connexió directa WebRTC abans d'utilitzar-se en lloc seu. Augmenteu-lo per donar més temps a una connexió directa lenta; reduïu-lo per passar abans al relé en xarxes on no es pot fer una connexió directa. Deixeu-lo buit per al valor predeterminat de 2.5 segons."),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", ""),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "Per iniciar una trucada de veu, habiliteu «Captura d'àudio» a la pàgina «Compartició de pantalla»."),
|
||||
("Keyboard shortcuts", "Dreceres de teclat"),
|
||||
("Configure shortcuts...", "Configura les dreceres..."),
|
||||
("Enable keyboard shortcuts in remote session", "Habilita les dreceres de teclat a la sessió remota"),
|
||||
("shortcut-page-description", "Assigneu una combinació de tecles a cadascuna de les accions de sessió següents. Cada assignació ha d'incloure almenys una tecla modificadora."),
|
||||
("shortcut-passthrough-tip", "Quan està activat, totes les combinacions assignades s'envien al dispositiu remot. És útil quan una assignació entra en conflicte amb alguna cosa que necessiteu al dispositiu remot."),
|
||||
("Pass-through to remote", "Envia al dispositiu remot"),
|
||||
("Reset to defaults", "Restableix els valors per defecte"),
|
||||
("shortcut-reset-confirm-tip", "Això substituirà totes les assignacions actuals per les predeterminades. Voleu continuar?"),
|
||||
("Monitor", "Monitor"),
|
||||
("Keyboard", "Teclat"),
|
||||
("Toggle fullscreen", "Commuta la pantalla completa"),
|
||||
("Switch to next display", "Canvia a la pantalla següent"),
|
||||
("Switch to previous display", "Canvia a la pantalla anterior"),
|
||||
("Switch to next tab", "Canvia a la pestanya següent"),
|
||||
("Switch to previous tab", "Canvia a la pestanya anterior"),
|
||||
("Toggle session recording", "Inicia/atura la gravació de la sessió"),
|
||||
("Close tab", "Tanca la pestanya"),
|
||||
("Toggle toolbar", "Mostra/amaga la barra d'eines"),
|
||||
("Toggle input source", "Commuta la font d'entrada"),
|
||||
("Edit", "Edita"),
|
||||
("Save", "Desa"),
|
||||
("Set shortcut", "Defineix la drecera"),
|
||||
("shortcut-recording-instruction", "Premeu la combinació de tecles que voleu utilitzar."),
|
||||
("shortcut-recording-press-keys-tip", "Premeu una combinació de tecles..."),
|
||||
("shortcut-must-include-modifiers", "Ha d'incloure almenys una tecla modificadora: {}"),
|
||||
("shortcut-already-bound-to", "Ja assignada a"),
|
||||
("Replace", "Substitueix"),
|
||||
("Valid", "Vàlida"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "Per gravar una drecera cal un teclat físic. Els teclats virtuals no són compatibles."),
|
||||
("shortcut-key-not-supported", "«{}» no es pot utilitzar com a drecera."),
|
||||
("On", "Activat"),
|
||||
("Off", "Desactivat"),
|
||||
("api_server_connection_tip", "El vostre servidor personalitzat utilitza HTTP sense xifrar. Contacteu amb l'administrador per habilitar HTTPS."),
|
||||
("api_server_empty_tip", "Si el camp «Clau API del servidor» és buit, el vostre servidor personalitzat utilitza HTTP per defecte. Contacteu amb l'administrador per habilitar HTTPS."),
|
||||
("RustDesk storage", "Emmagatzematge del RustDesk"),
|
||||
("Other folders", "Altres carpetes"),
|
||||
("Choose which folder remote devices can access.", "Trieu a quina carpeta poden accedir els dispositius remots."),
|
||||
("android-logs-folder-tip", "Trieu Android → media per desar els fitxers de registre."),
|
||||
("Choose folder", "Tria una carpeta"),
|
||||
("Please select Android → media.", "Seleccioneu Android → media."),
|
||||
("Trust duration (days)", "Durada de la confiança (dies)"),
|
||||
("Renew trust", "Renova la confiança"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
@@ -815,5 +815,13 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Off", "关"),
|
||||
("api_server_connection_tip", "自定义服务器正在使用未加密的 HTTP。请联系管理员启用 HTTPS。"),
|
||||
("api_server_empty_tip", "API 服务器留空时,自定义服务器默认使用 HTTP。请联系管理员启用 HTTPS。"),
|
||||
("RustDesk storage", "RustDesk 存储空间"),
|
||||
("Other folders", "其他文件夹"),
|
||||
("Choose which folder remote devices can access.", "选择允许远程设备访问的文件夹。"),
|
||||
("android-logs-folder-tip", "请选择 Android → media,用于保存日志。"),
|
||||
("Choose folder", "选择文件夹"),
|
||||
("Please select Android → media.", "请选择 Android → media。"),
|
||||
("Trust duration (days)", "信任有效期(天)"),
|
||||
("Renew trust", "延长信任有效期"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+45
-37
@@ -763,8 +763,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Lock canvas", "Zamknout zobrazení"),
|
||||
("Sync clipboard between sessions", "Synchronizovat schránku mezi relacemi"),
|
||||
("sync-clipboard-between-sessions-tip", "Text nebo obrázky zkopírované v jedné vzdálené relaci se odešlou i do schránky ostatních připojených relací."),
|
||||
("terminal-clipboard-write-tip", ""),
|
||||
("Allow terminal apps to copy to clipboard", ""),
|
||||
("terminal-clipboard-write-tip", "Aplikace v terminálu chce zkopírovat text do schránky tohoto zařízení. Pokud to povolíte, toto oprávnění bude platit pro terminálové aplikace ve všech připojeních, dokud ho nevypnete v Nastavení. Ruční kopírování a vkládání tím není ovlivněno."),
|
||||
("Allow terminal apps to copy to clipboard", "Povolit terminálovým aplikacím kopírovat do schránky"),
|
||||
("Enable", "Povolit"),
|
||||
("Reuse one connection for port forwarding", "Znovu použít jedno připojení pro přesměrování portů"),
|
||||
("port-forward-mux-tip", "Vede všechna připojení jednoho přesměrování portů přes jediné připojení k protějšku místo opakovaného připojování a přihlašování pro každé z nich."),
|
||||
@@ -780,40 +780,48 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("RustDesk could not load a GStreamer component needed for screen capture ({})", "RustDesk nemohl načíst komponentu GStreameru potřebnou k zachycení obrazovky ({})"),
|
||||
("Relay fallback delay in seconds", "Prodleva před přepnutím na přenos v sekundách"),
|
||||
("relay-fallback-delay-tip", "Jak dlouho již navázané spojení přes přenos čeká na přímé spojení WebRTC, než bude použito místo něj. Zvyšte, aby pomalé přímé spojení mělo více času uspět; snižte, aby se v sítích, kde přímé spojení není možné, dříve přešlo na přenos. Ponechte prázdné pro výchozí hodnotu 2.5 sekundy."),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", ""),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "Pro zahájení hlasového volání povolte „Zachytávání zvuku“ na stránce „Sdílet obrazovku“."),
|
||||
("Keyboard shortcuts", "Klávesové zkratky"),
|
||||
("Configure shortcuts...", "Nastavit zkratky..."),
|
||||
("Enable keyboard shortcuts in remote session", "Povolit klávesové zkratky ve vzdálené relaci"),
|
||||
("shortcut-page-description", "Přiřaďte kombinaci kláves ke každé z níže uvedených akcí relace. Každá zkratka musí obsahovat alespoň jednu modifikační klávesu."),
|
||||
("shortcut-passthrough-tip", "Je-li zapnuto, každá přiřazená kombinace se předá vzdálené straně. Hodí se, když zkratka koliduje s něčím, co potřebujete na vzdálené straně."),
|
||||
("Pass-through to remote", "Předávat vzdálené straně"),
|
||||
("Reset to defaults", "Obnovit výchozí"),
|
||||
("shortcut-reset-confirm-tip", "Všechna aktuální přiřazení budou nahrazena výchozí sadou. Pokračovat?"),
|
||||
("Monitor", "Monitor"),
|
||||
("Keyboard", "Klávesnice"),
|
||||
("Toggle fullscreen", "Přepnout celou obrazovku"),
|
||||
("Switch to next display", "Přepnout na další obrazovku"),
|
||||
("Switch to previous display", "Přepnout na předchozí obrazovku"),
|
||||
("Switch to next tab", "Přepnout na další kartu"),
|
||||
("Switch to previous tab", "Přepnout na předchozí kartu"),
|
||||
("Toggle session recording", "Spustit/zastavit záznam relace"),
|
||||
("Close tab", "Zavřít kartu"),
|
||||
("Toggle toolbar", "Zobrazit/skrýt panel nástrojů"),
|
||||
("Toggle input source", "Přepnout zdroj vstupu"),
|
||||
("Edit", "Upravit"),
|
||||
("Save", "Uložit"),
|
||||
("Set shortcut", "Nastavit zkratku"),
|
||||
("shortcut-recording-instruction", "Stiskněte kombinaci kláves, kterou chcete použít."),
|
||||
("shortcut-recording-press-keys-tip", "Stiskněte kombinaci kláves..."),
|
||||
("shortcut-must-include-modifiers", "Musí obsahovat alespoň jednu modifikační klávesu: {}"),
|
||||
("shortcut-already-bound-to", "Již přiřazeno akci"),
|
||||
("Replace", "Nahradit"),
|
||||
("Valid", "Platná"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "Záznam vyžaduje fyzickou klávesnici. Softwarové klávesnice nejsou podporovány."),
|
||||
("shortcut-key-not-supported", "„{}“ nelze použít jako zkratku."),
|
||||
("On", "Zapnuto"),
|
||||
("Off", "Vypnuto"),
|
||||
("api_server_connection_tip", "Váš vlastní server používá nešifrovaný HTTP. Pro povolení HTTPS kontaktujte svého správce."),
|
||||
("api_server_empty_tip", "Pokud je API Server prázdný, váš vlastní server ve výchozím nastavení používá HTTP. Pro povolení HTTPS kontaktujte svého správce."),
|
||||
("RustDesk storage", "Úložiště RustDesk"),
|
||||
("Other folders", "Jiné složky"),
|
||||
("Choose which folder remote devices can access.", "Vyberte složku, ke které mohou mít vzdálená zařízení přístup."),
|
||||
("android-logs-folder-tip", "Pro ukládání souborů protokolu vyberte Android → media."),
|
||||
("Choose folder", "Vybrat složku"),
|
||||
("Please select Android → media.", "Vyberte prosím Android → media."),
|
||||
("Trust duration (days)", "Doba důvěry (dny)"),
|
||||
("Renew trust", "Obnovit důvěru"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+45
-37
@@ -763,8 +763,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Lock canvas", "Lås lærred"),
|
||||
("Sync clipboard between sessions", "Synkroniser udklipsholder mellem sessioner"),
|
||||
("sync-clipboard-between-sessions-tip", "Tekst eller billeder, der kopieres i én fjernsession, sendes også til udklipsholderen i dine andre forbundne sessioner."),
|
||||
("terminal-clipboard-write-tip", ""),
|
||||
("Allow terminal apps to copy to clipboard", ""),
|
||||
("terminal-clipboard-write-tip", "En app i terminalen vil kopiere tekst til denne enheds udklipsholder. Hvis du giver tilladelse, gælder den for terminalapps i alle forbindelser, indtil du slår den fra i Indstillinger. Manuel kopiering og indsættelse påvirkes ikke."),
|
||||
("Allow terminal apps to copy to clipboard", "Tillad terminalapps at kopiere til udklipsholderen"),
|
||||
("Enable", "Aktivér"),
|
||||
("Reuse one connection for port forwarding", "Genbrug én forbindelse til portvideresendelse"),
|
||||
("port-forward-mux-tip", "Fører alle forbindelser i en portvideresendelse gennem én enkelt forbindelse til modparten i stedet for at forbinde og logge ind igen for hver enkelt."),
|
||||
@@ -780,40 +780,48 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("RustDesk could not load a GStreamer component needed for screen capture ({})", "RustDesk kunne ikke indlæse en GStreamer-komponent, der kræves til skærmoptagelse ({})"),
|
||||
("Relay fallback delay in seconds", "Forsinkelse før brug af relæ i sekunder"),
|
||||
("relay-fallback-delay-tip", "Hvor længe en allerede oprettet relæforbindelse venter på den direkte WebRTC-forbindelse, før den bruges i stedet. Forøg for at give en langsom direkte forbindelse mere tid; sænk for hurtigere at falde tilbage til relæet på netværk, hvor en direkte forbindelse ikke kan oprettes. Lad feltet stå tomt for standardværdien 2.5 sekunder."),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", ""),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "Aktivér \"Lydoptagelse\" på siden \"Del skærmen\" for at starte et stemmeopkald."),
|
||||
("Keyboard shortcuts", "Tastaturgenveje"),
|
||||
("Configure shortcuts...", "Konfigurér genveje..."),
|
||||
("Enable keyboard shortcuts in remote session", "Aktivér tastaturgenveje i fjernsessionen"),
|
||||
("shortcut-page-description", "Tildel en tastekombination til hver sessionshandling nedenfor. Hver tildeling skal indeholde mindst én modifikatortast."),
|
||||
("shortcut-passthrough-tip", "Når denne er slået til, videresendes alle tildelte kombinationer til fjernenheden. Nyttigt, når en tildeling kolliderer med noget, du har brug for på fjernenheden."),
|
||||
("Pass-through to remote", "Videresend til fjernenheden"),
|
||||
("Reset to defaults", "Nulstil til standard"),
|
||||
("shortcut-reset-confirm-tip", "Dette erstatter alle nuværende tildelinger med standardsættet. Vil du fortsætte?"),
|
||||
("Monitor", "Skærm"),
|
||||
("Keyboard", "Tastatur"),
|
||||
("Toggle fullscreen", "Slå fuld skærm til/fra"),
|
||||
("Switch to next display", "Skift til næste skærm"),
|
||||
("Switch to previous display", "Skift til forrige skærm"),
|
||||
("Switch to next tab", "Skift til næste fane"),
|
||||
("Switch to previous tab", "Skift til forrige fane"),
|
||||
("Toggle session recording", "Slå sessionsoptagelse til/fra"),
|
||||
("Close tab", "Luk fane"),
|
||||
("Toggle toolbar", "Vis/skjul værktøjslinje"),
|
||||
("Toggle input source", "Skift inputkilde"),
|
||||
("Edit", "Redigér"),
|
||||
("Save", "Gem"),
|
||||
("Set shortcut", "Angiv genvej"),
|
||||
("shortcut-recording-instruction", "Tryk på den tastekombination, du vil bruge."),
|
||||
("shortcut-recording-press-keys-tip", "Tryk på en tastekombination..."),
|
||||
("shortcut-must-include-modifiers", "Skal indeholde mindst én modifikatortast: {}"),
|
||||
("shortcut-already-bound-to", "Allerede tildelt til"),
|
||||
("Replace", "Erstat"),
|
||||
("Valid", "Gyldig"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "Optagelse kræver et fysisk tastatur. Skærmtastaturer understøttes ikke."),
|
||||
("shortcut-key-not-supported", "\"{}\" kan ikke bruges som genvej."),
|
||||
("On", "Til"),
|
||||
("Off", "Fra"),
|
||||
("api_server_connection_tip", "Din brugerdefinerede server bruger ukrypteret HTTP. Kontakt din administrator for at aktivere HTTPS."),
|
||||
("api_server_empty_tip", "Når API Server er tom, bruger din brugerdefinerede server HTTP som standard. Kontakt din administrator for at aktivere HTTPS."),
|
||||
("RustDesk storage", "RustDesk-lager"),
|
||||
("Other folders", "Andre mapper"),
|
||||
("Choose which folder remote devices can access.", "Vælg, hvilken mappe fjernenheder kan få adgang til."),
|
||||
("android-logs-folder-tip", "Vælg Android → media for at gemme logfiler."),
|
||||
("Choose folder", "Vælg mappe"),
|
||||
("Please select Android → media.", "Vælg Android → media."),
|
||||
("Trust duration (days)", "Tillidsperiode (dage)"),
|
||||
("Renew trust", "Forny tillid"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+45
-37
@@ -763,8 +763,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Lock canvas", "Sichtfeld sperren"),
|
||||
("Sync clipboard between sessions", "Zwischenablage zwischen Sitzungen synchronisieren"),
|
||||
("sync-clipboard-between-sessions-tip", "In einer Remote-Sitzung kopierter Text oder kopierte Bilder werden auch an die Zwischenablage Ihrer anderen verbundenen Sitzungen gesendet."),
|
||||
("terminal-clipboard-write-tip", ""),
|
||||
("Allow terminal apps to copy to clipboard", ""),
|
||||
("terminal-clipboard-write-tip", "Eine App im Terminal möchte Text in die Zwischenablage dieses Geräts kopieren. Wenn Sie dies erlauben, gilt diese Berechtigung für Terminal-Apps in allen Verbindungen, bis Sie sie in den Einstellungen deaktivieren. Manuelles Kopieren und Einfügen ist davon nicht betroffen."),
|
||||
("Allow terminal apps to copy to clipboard", "Terminal-Apps das Kopieren in die Zwischenablage erlauben"),
|
||||
("Enable", "Aktivieren"),
|
||||
("Reuse one connection for port forwarding", "Eine Verbindung für die Portweiterleitung wiederverwenden"),
|
||||
("port-forward-mux-tip", "Alle Verbindungen einer Portweiterleitung über eine einzige Verbindung zur Gegenstelle führen, statt sich für jede einzelne neu zu verbinden und anzumelden."),
|
||||
@@ -780,40 +780,48 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("RustDesk could not load a GStreamer component needed for screen capture ({})", "RustDesk konnte eine für die Bildschirmaufnahme benötigte GStreamer-Komponente nicht laden ({})"),
|
||||
("Relay fallback delay in seconds", "Verzögerung bis zum Relais in Sekunden"),
|
||||
("relay-fallback-delay-tip", "Wie lange eine bereits aufgebaute Relaisverbindung auf die direkte WebRTC-Verbindung wartet, bevor sie stattdessen verwendet wird. Erhöhen Sie den Wert, um einer langsamen direkten Verbindung mehr Zeit zu geben; verringern Sie ihn, um in Netzwerken ohne mögliche Direktverbindung schneller auf das Relais zurückzufallen. Leer lassen für den Standardwert von 2.5 Sekunden."),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", ""),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "Um einen Sprachanruf zu starten, aktivieren Sie \"Audioaufnahme\" auf der Seite \"Bildschirm freigeben\"."),
|
||||
("Keyboard shortcuts", "Tastenkürzel"),
|
||||
("Configure shortcuts...", "Tastenkürzel konfigurieren …"),
|
||||
("Enable keyboard shortcuts in remote session", "Tastenkürzel in der Remote-Sitzung aktivieren"),
|
||||
("shortcut-page-description", "Weisen Sie jeder der folgenden Sitzungsaktionen eine Tastenkombination zu. Jede Belegung muss mindestens eine Modifikatortaste enthalten."),
|
||||
("shortcut-passthrough-tip", "Wenn aktiviert, werden alle belegten Tastenkombinationen an die Gegenstelle weitergeleitet. Nützlich, wenn eine Belegung mit etwas kollidiert, das Sie auf der Gegenstelle benötigen."),
|
||||
("Pass-through to remote", "An Gegenstelle weiterleiten"),
|
||||
("Reset to defaults", "Auf Standard zurücksetzen"),
|
||||
("shortcut-reset-confirm-tip", "Dadurch werden alle aktuellen Belegungen durch die Standardbelegung ersetzt. Fortfahren?"),
|
||||
("Monitor", "Monitor"),
|
||||
("Keyboard", "Tastatur"),
|
||||
("Toggle fullscreen", "Vollbild umschalten"),
|
||||
("Switch to next display", "Zum nächsten Bildschirm wechseln"),
|
||||
("Switch to previous display", "Zum vorherigen Bildschirm wechseln"),
|
||||
("Switch to next tab", "Zum nächsten Tab wechseln"),
|
||||
("Switch to previous tab", "Zum vorherigen Tab wechseln"),
|
||||
("Toggle session recording", "Sitzungsaufzeichnung starten/beenden"),
|
||||
("Close tab", "Tab schließen"),
|
||||
("Toggle toolbar", "Symbolleiste ein-/ausblenden"),
|
||||
("Toggle input source", "Eingangsquelle umschalten"),
|
||||
("Edit", "Bearbeiten"),
|
||||
("Save", "Speichern"),
|
||||
("Set shortcut", "Tastenkürzel festlegen"),
|
||||
("shortcut-recording-instruction", "Drücken Sie die Tastenkombination, die Sie verwenden möchten."),
|
||||
("shortcut-recording-press-keys-tip", "Tastenkombination drücken …"),
|
||||
("shortcut-must-include-modifiers", "Muss mindestens eine Modifikatortaste enthalten: {}"),
|
||||
("shortcut-already-bound-to", "Bereits zugewiesen an"),
|
||||
("Replace", "Ersetzen"),
|
||||
("Valid", "Gültig"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "Zum Erfassen ist eine physische Tastatur erforderlich. Bildschirmtastaturen werden nicht unterstützt."),
|
||||
("shortcut-key-not-supported", "\"{}\" kann nicht als Tastenkürzel verwendet werden."),
|
||||
("On", "Ein"),
|
||||
("Off", "Aus"),
|
||||
("api_server_connection_tip", "Ihr benutzerdefinierter Server verwendet unverschlüsseltes HTTP. Wenden Sie sich an Ihren Administrator, um HTTPS zu aktivieren."),
|
||||
("api_server_empty_tip", "Wenn der API-Server leer ist, verwendet Ihr benutzerdefinierter Server standardmäßig HTTP. Wenden Sie sich an Ihren Administrator, um HTTPS zu aktivieren."),
|
||||
("RustDesk storage", "RustDesk-Speicher"),
|
||||
("Other folders", "Andere Ordner"),
|
||||
("Choose which folder remote devices can access.", "Wählen Sie, auf welchen Ordner entfernte Geräte zugreifen können."),
|
||||
("android-logs-folder-tip", "Wählen Sie Android → media, um Protokolldateien zu speichern."),
|
||||
("Choose folder", "Ordner auswählen"),
|
||||
("Please select Android → media.", "Bitte wählen Sie Android → media."),
|
||||
("Trust duration (days)", "Vertrauensdauer (Tage)"),
|
||||
("Renew trust", "Vertrauen erneuern"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+45
-37
@@ -763,8 +763,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Lock canvas", "Κλείδωμα καμβά"),
|
||||
("Sync clipboard between sessions", "Συγχρονισμός προχείρου μεταξύ συνεδριών"),
|
||||
("sync-clipboard-between-sessions-tip", "Κείμενο ή εικόνες που αντιγράφονται σε μία απομακρυσμένη συνεδρία αποστέλλονται και στο πρόχειρο των άλλων συνδεδεμένων συνεδριών σας."),
|
||||
("terminal-clipboard-write-tip", ""),
|
||||
("Allow terminal apps to copy to clipboard", ""),
|
||||
("terminal-clipboard-write-tip", "Μια εφαρμογή στο τερματικό θέλει να αντιγράψει κείμενο στο πρόχειρο αυτής της συσκευής. Αν επιτραπεί, αυτή η άδεια ισχύει για τις εφαρμογές τερματικού σε όλες τις συνδέσεις μέχρι να την απενεργοποιήσετε στις Ρυθμίσεις. Η χειροκίνητη αντιγραφή και επικόλληση δεν επηρεάζονται."),
|
||||
("Allow terminal apps to copy to clipboard", "Να επιτρέπεται στις εφαρμογές τερματικού η αντιγραφή στο πρόχειρο"),
|
||||
("Enable", "Ενεργοποίηση"),
|
||||
("Reuse one connection for port forwarding", "Επαναχρησιμοποίηση μίας σύνδεσης για την προώθηση θυρών"),
|
||||
("port-forward-mux-tip", "Όλες οι συνδέσεις μιας προώθησης θυρών περνούν από μία μόνο σύνδεση προς τον απομακρυσμένο υπολογιστή, αντί να πραγματοποιείται νέα σύνδεση και ταυτοποίηση για κάθε μία."),
|
||||
@@ -780,40 +780,48 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("RustDesk could not load a GStreamer component needed for screen capture ({})", "Το RustDesk δεν μπόρεσε να φορτώσει ένα στοιχείο του GStreamer που απαιτείται για την καταγραφή οθόνης ({})"),
|
||||
("Relay fallback delay in seconds", "Καθυστέρηση πριν από τη χρήση αναμεταδότη σε δευτερόλεπτα"),
|
||||
("relay-fallback-delay-tip", "Πόσο χρόνο περιμένει μια ήδη ενεργή σύνδεση αναμεταδότη την απευθείας σύνδεση WebRTC πριν χρησιμοποιηθεί στη θέση της. Αυξήστε το για να δώσετε σε μια αργή απευθείας σύνδεση περισσότερο χρόνο. Μειώστε το για ταχύτερη επιστροφή στον αναμεταδότη σε δίκτυα όπου δεν είναι δυνατή η απευθείας σύνδεση. Αφήστε το κενό για την προεπιλογή των 2.5 δευτερολέπτων."),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", ""),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "Για να ξεκινήσετε φωνητική κλήση, ενεργοποιήστε την «Εγγραφή ήχου» στη σελίδα «Κοινή χρήση οθόνης»."),
|
||||
("Keyboard shortcuts", "Συντομεύσεις πληκτρολογίου"),
|
||||
("Configure shortcuts...", "Διαμόρφωση συντομεύσεων..."),
|
||||
("Enable keyboard shortcuts in remote session", "Ενεργοποίηση συντομεύσεων πληκτρολογίου στην απομακρυσμένη συνεδρία"),
|
||||
("shortcut-page-description", "Αντιστοιχίστε έναν συνδυασμό πλήκτρων σε κάθε ενέργεια συνεδρίας παρακάτω. Κάθε αντιστοίχιση πρέπει να περιλαμβάνει τουλάχιστον ένα πλήκτρο τροποποίησης."),
|
||||
("shortcut-passthrough-tip", "Όταν είναι ενεργό, κάθε αντιστοιχισμένος συνδυασμός προωθείται στον απομακρυσμένο υπολογιστή. Χρήσιμο όταν μια αντιστοίχιση συγκρούεται με κάτι που χρειάζεστε στον απομακρυσμένο υπολογιστή."),
|
||||
("Pass-through to remote", "Προώθηση στον απομακρυσμένο υπολογιστή"),
|
||||
("Reset to defaults", "Επαναφορά προεπιλογών"),
|
||||
("shortcut-reset-confirm-tip", "Όλες οι τρέχουσες αντιστοιχίσεις θα αντικατασταθούν με τις προεπιλεγμένες. Συνέχεια;"),
|
||||
("Monitor", "Οθόνη"),
|
||||
("Keyboard", "Πληκτρολόγιο"),
|
||||
("Toggle fullscreen", "Εναλλαγή πλήρους οθόνης"),
|
||||
("Switch to next display", "Μετάβαση στην επόμενη οθόνη"),
|
||||
("Switch to previous display", "Μετάβαση στην προηγούμενη οθόνη"),
|
||||
("Switch to next tab", "Μετάβαση στην επόμενη καρτέλα"),
|
||||
("Switch to previous tab", "Μετάβαση στην προηγούμενη καρτέλα"),
|
||||
("Toggle session recording", "Εναλλαγή εγγραφής συνεδρίας"),
|
||||
("Close tab", "Κλείσιμο καρτέλας"),
|
||||
("Toggle toolbar", "Εναλλαγή γραμμής εργαλείων"),
|
||||
("Toggle input source", "Εναλλαγή πηγής εισόδου"),
|
||||
("Edit", "Επεξεργασία"),
|
||||
("Save", "Αποθήκευση"),
|
||||
("Set shortcut", "Ορισμός συντόμευσης"),
|
||||
("shortcut-recording-instruction", "Πατήστε τον συνδυασμό πλήκτρων που θέλετε να χρησιμοποιήσετε."),
|
||||
("shortcut-recording-press-keys-tip", "Πατήστε έναν συνδυασμό πλήκτρων..."),
|
||||
("shortcut-must-include-modifiers", "Πρέπει να περιλαμβάνει τουλάχιστον ένα πλήκτρο τροποποίησης: {}"),
|
||||
("shortcut-already-bound-to", "Έχει ήδη αντιστοιχιστεί σε"),
|
||||
("Replace", "Αντικατάσταση"),
|
||||
("Valid", "Έγκυρο"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "Η καταγραφή συντομεύσεων απαιτεί φυσικό πληκτρολόγιο. Τα πληκτρολόγια οθόνης δεν υποστηρίζονται."),
|
||||
("shortcut-key-not-supported", "Το «{}» δεν μπορεί να χρησιμοποιηθεί ως συντόμευση."),
|
||||
("On", "Ενεργό"),
|
||||
("Off", "Ανενεργό"),
|
||||
("api_server_connection_tip", "Ο προσαρμοσμένος διακομιστής σας χρησιμοποιεί μη κρυπτογραφημένο HTTP. Επικοινωνήστε με τον διαχειριστή σας για να ενεργοποιήσει το HTTPS."),
|
||||
("api_server_empty_tip", "Όταν το πεδίο «Διακομιστής API» είναι κενό, ο προσαρμοσμένος διακομιστής σας χρησιμοποιεί από προεπιλογή HTTP. Επικοινωνήστε με τον διαχειριστή σας για να ενεργοποιήσει το HTTPS."),
|
||||
("RustDesk storage", "Χώρος αποθήκευσης RustDesk"),
|
||||
("Other folders", "Άλλοι φάκελοι"),
|
||||
("Choose which folder remote devices can access.", "Επιλέξτε σε ποιον φάκελο μπορούν να έχουν πρόσβαση οι απομακρυσμένες συσκευές."),
|
||||
("android-logs-folder-tip", "Επιλέξτε Android → media για την αποθήκευση των αρχείων καταγραφής."),
|
||||
("Choose folder", "Επιλογή φακέλου"),
|
||||
("Please select Android → media.", "Παρακαλώ επιλέξτε Android → media."),
|
||||
("Trust duration (days)", "Διάρκεια εμπιστοσύνης (ημέρες)"),
|
||||
("Renew trust", "Ανανέωση εμπιστοσύνης"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
@@ -290,5 +290,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("shortcut-key-not-supported", "\"{}\" can't be used as a shortcut."),
|
||||
("api_server_connection_tip", "Your custom server uses unencrypted HTTP. Contact your administrator to enable HTTPS."),
|
||||
("api_server_empty_tip", "With API Server empty, your custom server defaults to HTTP. Contact your administrator to enable HTTPS."),
|
||||
("android-logs-folder-tip", "Choose Android → media to store log files."),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+45
-37
@@ -763,8 +763,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Lock canvas", "Ŝlosi kanvason"),
|
||||
("Sync clipboard between sessions", "Sinkronigi poŝon inter seancoj"),
|
||||
("sync-clipboard-between-sessions-tip", "Teksto aŭ bildoj kopiitaj en unu fora seanco ankaŭ sendiĝas al la poŝo de viaj aliaj konektitaj seancoj."),
|
||||
("terminal-clipboard-write-tip", ""),
|
||||
("Allow terminal apps to copy to clipboard", ""),
|
||||
("terminal-clipboard-write-tip", "Aplikaĵo en la terminalo volas kopii tekston al la poŝo de ĉi tiu aparato. Se vi permesas, ĉi tiu permeso validas por terminalaj aplikaĵoj en ĉiuj konektoj, ĝis vi malŝaltos ĝin en Agordoj. Mana kopiado kaj algluado ne estas tuŝitaj."),
|
||||
("Allow terminal apps to copy to clipboard", "Permesi al terminalaj aplikaĵoj kopii al la poŝo"),
|
||||
("Enable", "Ebligi"),
|
||||
("Reuse one connection for port forwarding", "Reuzi unu konekton por pordo-plusendado"),
|
||||
("port-forward-mux-tip", "Ĉiuj konektoj de unu pordo-plusendado iras tra unu sola konekto al la alia komputilo, anstataŭ konekti kaj ensaluti denove por ĉiu el ili."),
|
||||
@@ -780,40 +780,48 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("RustDesk could not load a GStreamer component needed for screen capture ({})", "RustDesk ne povis ŝargi komponanton de GStreamer necesan por ekrankapto ({})"),
|
||||
("Relay fallback delay in seconds", "Prokrasto antaŭ retransmisio en sekundoj"),
|
||||
("relay-fallback-delay-tip", "Kiom longe jam establita retransmisia konekto atendas la rektan WebRTC-konekton antaŭ ol esti uzata anstataŭe. Pligrandigu ĝin por doni al malrapida rekta konekto pli da tempo; malpligrandigu ĝin por pli frue uzi la retransmision en retoj kie rekta konekto ne eblas. Lasu malplena por la defaŭlta valoro de 2.5 sekundoj."),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", ""),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "Por komenci voĉvokon, ebligu \"Sonkontrolo\" en la paĝo \"Kunhavigi Ekranon\"."),
|
||||
("Keyboard shortcuts", "Fulmoklavoj"),
|
||||
("Configure shortcuts...", "Agordi fulmoklavojn..."),
|
||||
("Enable keyboard shortcuts in remote session", "Ebligi fulmoklavojn en fora sesio"),
|
||||
("shortcut-page-description", "Asignu klavkombinon al ĉiu suba sesia ago. Ĉiu asigno devas enhavi almenaŭ unu modifklavon."),
|
||||
("shortcut-passthrough-tip", "Kiam ŝaltita, ĉiu asignita kombino estas plusendata al la fora aparato. Utila, kiam asigno konfliktas kun io, kion vi bezonas ĉe la fora aparato."),
|
||||
("Pass-through to remote", "Plusendi al la fora aparato"),
|
||||
("Reset to defaults", "Restarigi implicitajn valorojn"),
|
||||
("shortcut-reset-confirm-tip", "Ĉi tio anstataŭigos ĉiujn nunajn asignojn per la implicita aro. Ĉu daŭrigi?"),
|
||||
("Monitor", "Ekrano"),
|
||||
("Keyboard", "Klavaro"),
|
||||
("Toggle fullscreen", "Baskuligi plenekranon"),
|
||||
("Switch to next display", "Iri al la sekva ekrano"),
|
||||
("Switch to previous display", "Iri al la antaŭa ekrano"),
|
||||
("Switch to next tab", "Iri al la sekva langeto"),
|
||||
("Switch to previous tab", "Iri al la antaŭa langeto"),
|
||||
("Toggle session recording", "Baskuligi sesian registradon"),
|
||||
("Close tab", "Fermi langeton"),
|
||||
("Toggle toolbar", "Baskuligi ilobreton"),
|
||||
("Toggle input source", "Baskuligi enigan fonton"),
|
||||
("Edit", "Redakti"),
|
||||
("Save", "Konservi"),
|
||||
("Set shortcut", "Agordi fulmoklavon"),
|
||||
("shortcut-recording-instruction", "Premu la klavkombinon, kiun vi volas uzi."),
|
||||
("shortcut-recording-press-keys-tip", "Premu klavkombinon..."),
|
||||
("shortcut-must-include-modifiers", "Devas enhavi almenaŭ unu modifklavon: {}"),
|
||||
("shortcut-already-bound-to", "Jam asignita al"),
|
||||
("Replace", "Anstataŭigi"),
|
||||
("Valid", "Valida"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "Registrado postulas fizikan klavaron. Ekranaj klavaroj ne estas subtenataj."),
|
||||
("shortcut-key-not-supported", "\"{}\" ne uzeblas kiel fulmoklavo."),
|
||||
("On", "Ŝaltita"),
|
||||
("Off", "Malŝaltita"),
|
||||
("api_server_connection_tip", "Via propra servilo uzas neĉifritan HTTP. Kontaktu vian administranton por ebligi HTTPS."),
|
||||
("api_server_empty_tip", "Kiam \"Servilo de API\" estas malplena, via propra servilo implicite uzas HTTP. Kontaktu vian administranton por ebligi HTTPS."),
|
||||
("RustDesk storage", "Konservejo de RustDesk"),
|
||||
("Other folders", "Aliaj dosierujoj"),
|
||||
("Choose which folder remote devices can access.", "Elektu, al kiu dosierujo foraj aparatoj povas aliri."),
|
||||
("android-logs-folder-tip", "Elektu Android → media por konservi protokolajn dosierojn."),
|
||||
("Choose folder", "Elekti dosierujon"),
|
||||
("Please select Android → media.", "Bonvolu elekti Android → media."),
|
||||
("Trust duration (days)", "Daŭro de fido (tagoj)"),
|
||||
("Renew trust", "Renovigi fidon"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+44
-36
@@ -763,8 +763,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Lock canvas", "Bloquear lienzo"),
|
||||
("Sync clipboard between sessions", "Sincronizar portapapeles entre sesiones"),
|
||||
("sync-clipboard-between-sessions-tip", "El texto o las imágenes copiados en una sesión remota también se envían al portapapeles de tus otras sesiones conectadas."),
|
||||
("terminal-clipboard-write-tip", ""),
|
||||
("Allow terminal apps to copy to clipboard", ""),
|
||||
("terminal-clipboard-write-tip", "Una aplicación del terminal quiere copiar texto al portapapeles de este dispositivo. Si lo permite, este permiso se aplica a las aplicaciones de terminal en todas las conexiones hasta que lo desactive en Ajustes. Copiar y pegar manualmente no se ve afectado."),
|
||||
("Allow terminal apps to copy to clipboard", "Permitir que las aplicaciones de terminal copien al portapapeles"),
|
||||
("Enable", "Habilitar"),
|
||||
("Reuse one connection for port forwarding", "Reutilizar una conexión para la redirección de puertos"),
|
||||
("port-forward-mux-tip", "Llevar todas las conexiones de una redirección de puertos por una única conexión con el otro equipo, en lugar de conectar e iniciar sesión de nuevo para cada una."),
|
||||
@@ -781,39 +781,47 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Relay fallback delay in seconds", "Retardo antes de usar el relé en segundos"),
|
||||
("relay-fallback-delay-tip", "Cuánto tiempo espera una conexión de relé ya establecida a la conexión directa WebRTC antes de usarse en su lugar. Auméntelo para dar más tiempo a una conexión directa lenta; redúzcalo para recurrir antes al relé en redes donde no es posible una conexión directa. Déjelo vacío para el valor predeterminado de 2.5 segundos."),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "Para comenzar una llamada de voz activar \"Captura de audio\" en la página \"Compartir pantalla\"."),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("Keyboard shortcuts", "Atajos de teclado"),
|
||||
("Configure shortcuts...", "Configurar atajos..."),
|
||||
("Enable keyboard shortcuts in remote session", "Habilitar atajos de teclado en la sesión remota"),
|
||||
("shortcut-page-description", "Asigne una combinación de teclas a cada una de las siguientes acciones de sesión. Cada asignación debe incluir al menos una tecla modificadora."),
|
||||
("shortcut-passthrough-tip", "Si está activado, todas las combinaciones asignadas se envían al dispositivo remoto. Útil cuando una asignación coincide con algo que necesita en el dispositivo remoto."),
|
||||
("Pass-through to remote", "Enviar al dispositivo remoto"),
|
||||
("Reset to defaults", "Restablecer valores predeterminados"),
|
||||
("shortcut-reset-confirm-tip", "Esto reemplazará todas las asignaciones actuales por las predeterminadas. ¿Continuar?"),
|
||||
("Monitor", "Monitor"),
|
||||
("Keyboard", "Teclado"),
|
||||
("Toggle fullscreen", "Alternar pantalla completa"),
|
||||
("Switch to next display", "Cambiar a la pantalla siguiente"),
|
||||
("Switch to previous display", "Cambiar a la pantalla anterior"),
|
||||
("Switch to next tab", "Cambiar a la pestaña siguiente"),
|
||||
("Switch to previous tab", "Cambiar a la pestaña anterior"),
|
||||
("Toggle session recording", "Iniciar/detener grabación de sesión"),
|
||||
("Close tab", "Cerrar pestaña"),
|
||||
("Toggle toolbar", "Mostrar/ocultar barra de herramientas"),
|
||||
("Toggle input source", "Alternar fuente de entrada"),
|
||||
("Edit", "Editar"),
|
||||
("Save", "Guardar"),
|
||||
("Set shortcut", "Establecer atajo"),
|
||||
("shortcut-recording-instruction", "Pulse la combinación de teclas que desea usar."),
|
||||
("shortcut-recording-press-keys-tip", "Pulse una combinación de teclas..."),
|
||||
("shortcut-must-include-modifiers", "Debe incluir al menos una tecla modificadora: {}"),
|
||||
("shortcut-already-bound-to", "Ya asignado a"),
|
||||
("Replace", "Reemplazar"),
|
||||
("Valid", "Válido"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "Para grabar un atajo se necesita un teclado físico. Los teclados virtuales no son compatibles."),
|
||||
("shortcut-key-not-supported", "\"{}\" no se puede usar como atajo."),
|
||||
("On", "Activado"),
|
||||
("Off", "Desactivado"),
|
||||
("api_server_connection_tip", "Su servidor personalizado usa HTTP sin cifrar. Contacte con su administrador para habilitar HTTPS."),
|
||||
("api_server_empty_tip", "Con el Servidor API vacío, su servidor personalizado usa HTTP de forma predeterminada. Contacte con su administrador para habilitar HTTPS."),
|
||||
("RustDesk storage", "Almacenamiento de RustDesk"),
|
||||
("Other folders", "Otras carpetas"),
|
||||
("Choose which folder remote devices can access.", "Elija a qué carpeta pueden acceder los dispositivos remotos."),
|
||||
("android-logs-folder-tip", "Elija Android → media para guardar los archivos de registro."),
|
||||
("Choose folder", "Elegir carpeta"),
|
||||
("Please select Android → media.", "Seleccione Android → media."),
|
||||
("Trust duration (days)", "Duración de la confianza (días)"),
|
||||
("Renew trust", "Renovar confianza"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+45
-37
@@ -763,8 +763,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Lock canvas", "Lukusta lõuend"),
|
||||
("Sync clipboard between sessions", "Sünkrooni lõikelaud seansside vahel"),
|
||||
("sync-clipboard-between-sessions-tip", "Ühes kaugseansis kopeeritud tekst või pildid saadetakse ka teiste ühendatud seansside lõikelauale."),
|
||||
("terminal-clipboard-write-tip", ""),
|
||||
("Allow terminal apps to copy to clipboard", ""),
|
||||
("terminal-clipboard-write-tip", "Terminalis olev rakendus soovib kopeerida teksti selle seadme lõikelauale. Loa andmisel kehtib see kõigi ühenduste terminalirakendustele, kuni lülitad selle jaotises Seaded välja. Käsitsi kopeerimist ja kleepimist see ei mõjuta."),
|
||||
("Allow terminal apps to copy to clipboard", "Luba terminalirakendustel lõikelauale kopeerida"),
|
||||
("Enable", "Luba"),
|
||||
("Reuse one connection for port forwarding", "Kasuta pordi suunamiseks üht ühendust"),
|
||||
("port-forward-mux-tip", "Juhib ühe pordisuunamise kõik ühendused ühe teise arvutiga loodud ühenduse kaudu, selle asemel et iga ühenduse jaoks uuesti ühenduda ja sisse logida."),
|
||||
@@ -780,40 +780,48 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("RustDesk could not load a GStreamer component needed for screen capture ({})", "RustDesk ei suutnud laadida ekraani jäädvustamiseks vajalikku GStreameri komponenti ({})"),
|
||||
("Relay fallback delay in seconds", "Viivitus enne relee kasutamist sekundites"),
|
||||
("relay-fallback-delay-tip", "Kui kaua juba loodud releeühendus ootab otsest WebRTC-ühendust, enne kui seda selle asemel kasutatakse. Suurendage, et anda aeglasele otseühendusele rohkem aega; vähendage, et võrkudes, kus otseühendust luua ei saa, releele kiiremini üle minna. Jätke tühjaks vaikeväärtuse 2.5 sekundit kasutamiseks."),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", ""),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "Häälkõne alustamiseks luba lehel „Jaga ekraani“ valik „Helisalvestus“."),
|
||||
("Keyboard shortcuts", "Kiirklahvid"),
|
||||
("Configure shortcuts...", "Seadista kiirklahve..."),
|
||||
("Enable keyboard shortcuts in remote session", "Luba kiirklahvid kaugseansis"),
|
||||
("shortcut-page-description", "Seo allolevate seansitoimingutega klahvikombinatsioonid. Iga kombinatsioon peab sisaldama vähemalt ühte muuteklahvi."),
|
||||
("shortcut-passthrough-tip", "Kui see on sees, edastatakse kõik seotud kombinatsioonid kaugseadmesse. Kasulik, kui mõni kombinatsioon on vastuolus millegagi, mida kaugseadmes vajad."),
|
||||
("Pass-through to remote", "Edasta kaugseadmesse"),
|
||||
("Reset to defaults", "Lähtesta vaikeväärtustele"),
|
||||
("shortcut-reset-confirm-tip", "See asendab kõik praegused kiirklahvid vaikekomplektiga. Kas jätkata?"),
|
||||
("Monitor", "Kuvar"),
|
||||
("Keyboard", "Klaviatuur"),
|
||||
("Toggle fullscreen", "Täisekraan sisse/välja"),
|
||||
("Switch to next display", "Lülitu järgmisele kuvarile"),
|
||||
("Switch to previous display", "Lülitu eelmisele kuvarile"),
|
||||
("Switch to next tab", "Lülitu järgmisele kaardile"),
|
||||
("Switch to previous tab", "Lülitu eelmisele kaardile"),
|
||||
("Toggle session recording", "Seansisalvestus sisse/välja"),
|
||||
("Close tab", "Sulge kaart"),
|
||||
("Toggle toolbar", "Kuva/peida tööriistariba"),
|
||||
("Toggle input source", "Vaheta sisendallikat"),
|
||||
("Edit", "Muuda"),
|
||||
("Save", "Salvesta"),
|
||||
("Set shortcut", "Määra kiirklahv"),
|
||||
("shortcut-recording-instruction", "Vajuta klahvikombinatsiooni, mida soovid kasutada."),
|
||||
("shortcut-recording-press-keys-tip", "Vajuta klahvikombinatsiooni..."),
|
||||
("shortcut-must-include-modifiers", "Peab sisaldama vähemalt ühte muuteklahvi: {}"),
|
||||
("shortcut-already-bound-to", "Juba seotud toiminguga"),
|
||||
("Replace", "Asenda"),
|
||||
("Valid", "Kehtiv"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "Salvestamiseks on vaja füüsilist klaviatuuri. Ekraaniklaviatuure ei toetata."),
|
||||
("shortcut-key-not-supported", "„{}“ ei saa kiirklahvina kasutada."),
|
||||
("On", "Sees"),
|
||||
("Off", "Väljas"),
|
||||
("api_server_connection_tip", "Sinu kohandatud server kasutab krüpteerimata HTTP-d. HTTPS-i lubamiseks võta ühendust administraatoriga."),
|
||||
("api_server_empty_tip", "Kui väli „Rakendusliidese server“ on tühi, kasutab sinu kohandatud server vaikimisi HTTP-d. HTTPS-i lubamiseks võta ühendust administraatoriga."),
|
||||
("RustDesk storage", "RustDeski salvestusruum"),
|
||||
("Other folders", "Muud kaustad"),
|
||||
("Choose which folder remote devices can access.", "Vali, millisele kaustale kaugseadmetel on juurdepääs."),
|
||||
("android-logs-folder-tip", "Logifailide salvestamiseks vali Android → media."),
|
||||
("Choose folder", "Vali kaust"),
|
||||
("Please select Android → media.", "Palun vali Android → media."),
|
||||
("Trust duration (days)", "Usalduse kestus (päevades)"),
|
||||
("Renew trust", "Uuenda usaldust"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+45
-37
@@ -763,8 +763,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Lock canvas", "Blokeatu oihala"),
|
||||
("Sync clipboard between sessions", "Sinkronizatu arbela saioen artean"),
|
||||
("sync-clipboard-between-sessions-tip", "Urruneko saio batean kopiatutako testua edo irudiak konektatutako beste saioen arbelera ere bidaltzen dira."),
|
||||
("terminal-clipboard-write-tip", ""),
|
||||
("Allow terminal apps to copy to clipboard", ""),
|
||||
("terminal-clipboard-write-tip", "Terminaleko aplikazio batek testua gailu honen arbelera kopiatu nahi du. Baimena ematen baduzu, terminaleko aplikazioei aplikatuko zaie konexio guztietan, Ezarpenetan desgaitzen duzun arte. Eskuzko kopiatu eta itsatsi eragiketei ez die eragiten."),
|
||||
("Allow terminal apps to copy to clipboard", "Baimendu terminaleko aplikazioei arbelera kopiatzea"),
|
||||
("Enable", "Gaitu"),
|
||||
("Reuse one connection for port forwarding", "Berrerabili konexio bakarra portuen birbideratzerako"),
|
||||
("port-forward-mux-tip", "Portu-birbideratze baten konexio guztiak beste ordenagailurako konexio bakar batetik eramaten ditu, bakoitzerako berriro konektatu eta saioa hasi beharrean."),
|
||||
@@ -780,40 +780,48 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("RustDesk could not load a GStreamer component needed for screen capture ({})", "RustDesk-ek ezin izan du pantaila kapturatzeko beharrezkoa den GStreamer osagai bat kargatu ({})"),
|
||||
("Relay fallback delay in seconds", "Errelera itzultzeko atzerapena segundotan"),
|
||||
("relay-fallback-delay-tip", "Dagoeneko ezarritako errele-konexio batek WebRTC konexio zuzenari zenbat denbora itxaroten dion, haren ordez erabili aurretik. Handitu konexio zuzen motel bati denbora gehiago emateko; txikitu konexio zuzena egin ezin den sareetan lehenago errelera itzultzeko. Utzi hutsik 2.5 segundoko balio lehenetsirako."),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", ""),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "Ahots-dei bat hasteko, gaitu \"Audio-grabazioa\" \"Partekatu pantaila\" orrian."),
|
||||
("Keyboard shortcuts", "Laster-teklak"),
|
||||
("Configure shortcuts...", "Konfiguratu laster-teklak..."),
|
||||
("Enable keyboard shortcuts in remote session", "Gaitu laster-teklak urruneko saioan"),
|
||||
("shortcut-page-description", "Esleitu tekla-konbinazio bat beheko saio-ekintza bakoitzari. Esleipen bakoitzak gutxienez tekla aldatzaile bat izan behar du."),
|
||||
("shortcut-passthrough-tip", "Aktibatuta dagoenean, esleitutako konbinazio guztiak urruneko gailura bidaltzen dira. Erabilgarria da esleipen batek urruneko gailuan behar duzun zerbaitekin talka egiten duenean."),
|
||||
("Pass-through to remote", "Bidali urruneko gailura"),
|
||||
("Reset to defaults", "Berrezarri lehenetsiak"),
|
||||
("shortcut-reset-confirm-tip", "Uneko esleipen guztiak lehenetsiekin ordeztuko dira. Jarraitu?"),
|
||||
("Monitor", "Monitorea"),
|
||||
("Keyboard", "Teklatua"),
|
||||
("Toggle fullscreen", "Txandakatu pantaila osoa"),
|
||||
("Switch to next display", "Aldatu hurrengo pantailara"),
|
||||
("Switch to previous display", "Aldatu aurreko pantailara"),
|
||||
("Switch to next tab", "Aldatu hurrengo fitxara"),
|
||||
("Switch to previous tab", "Aldatu aurreko fitxara"),
|
||||
("Toggle session recording", "Hasi/gelditu saioaren grabaketa"),
|
||||
("Close tab", "Itxi fitxa"),
|
||||
("Toggle toolbar", "Erakutsi/ezkutatu tresna-barra"),
|
||||
("Toggle input source", "Txandakatu sarrera-iturria"),
|
||||
("Edit", "Editatu"),
|
||||
("Save", "Gorde"),
|
||||
("Set shortcut", "Ezarri laster-tekla"),
|
||||
("shortcut-recording-instruction", "Sakatu erabili nahi duzun tekla-konbinazioa."),
|
||||
("shortcut-recording-press-keys-tip", "Sakatu tekla-konbinazio bat..."),
|
||||
("shortcut-must-include-modifiers", "Gutxienez tekla aldatzaile bat izan behar du: {}"),
|
||||
("shortcut-already-bound-to", "Dagoeneko esleituta"),
|
||||
("Replace", "Ordeztu"),
|
||||
("Valid", "Baliozkoa"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "Laster-tekla grabatzeko teklatu fisikoa behar da. Pantailako teklatuak ez dira onartzen."),
|
||||
("shortcut-key-not-supported", "\"{}\" ezin da laster-tekla gisa erabili."),
|
||||
("On", "Aktibatuta"),
|
||||
("Off", "Desaktibatuta"),
|
||||
("api_server_connection_tip", "Zure zerbitzari pertsonalizatuak zifratu gabeko HTTP erabiltzen du. Jarri harremanetan administratzailearekin HTTPS gaitzeko."),
|
||||
("api_server_empty_tip", "API zerbitzaria hutsik badago, zure zerbitzari pertsonalizatuak HTTP erabiltzen du lehenespenez. Jarri harremanetan administratzailearekin HTTPS gaitzeko."),
|
||||
("RustDesk storage", "RustDesk biltegiratzea"),
|
||||
("Other folders", "Beste karpeta batzuk"),
|
||||
("Choose which folder remote devices can access.", "Aukeratu urruneko gailuek zein karpeta atzi dezaketen."),
|
||||
("android-logs-folder-tip", "Aukeratu Android → media erregistro-fitxategiak gordetzeko."),
|
||||
("Choose folder", "Aukeratu karpeta"),
|
||||
("Please select Android → media.", "Hautatu Android → media."),
|
||||
("Trust duration (days)", "Konfiantzaren iraupena (egunak)"),
|
||||
("Renew trust", "Berritu konfiantza"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+12
-2
@@ -763,8 +763,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Lock canvas", "قفل کردن صفحه"),
|
||||
("Sync clipboard between sessions", "همگامسازی کلیپبورد بین نشستها"),
|
||||
("sync-clipboard-between-sessions-tip", "متن یا تصاویری که در یک نشست راه دور کپی میشوند به کلیپبورد سایر نشستهای متصل شما نیز ارسال میشوند."),
|
||||
("terminal-clipboard-write-tip", ""),
|
||||
("Allow terminal apps to copy to clipboard", ""),
|
||||
("terminal-clipboard-write-tip", "یک برنامه در ترمینال میخواهد متنی را در کلیپبورد این دستگاه کپی کند. در صورت اجازه، این مجوز برای برنامههای ترمینال در همه اتصالها اعمال میشود تا زمانی که آن را در تنظیمات خاموش کنید. کپی و درج دستی تحت تأثیر قرار نمیگیرد."),
|
||||
("Allow terminal apps to copy to clipboard", "اجازه کپی در کلیپبورد به برنامههای ترمینال"),
|
||||
("Enable", "فعالسازی"),
|
||||
("Reuse one connection for port forwarding", "استفاده مجدد از یک اتصال برای هدایت پورت"),
|
||||
("port-forward-mux-tip", "همه اتصالهای یک هدایت پورت از یک اتصال واحد به دستگاه مقابل عبور میکنند، بهجای اتصال و ورود دوباره برای هر کدام."),
|
||||
@@ -813,5 +813,15 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("shortcut-key-not-supported", "این کلید برای میانبر پشتیبانی نمیشود."),
|
||||
("On", "روشن"),
|
||||
("Off", "خاموش"),
|
||||
("api_server_connection_tip", "سرور سفارشی شما از HTTP رمزنگارینشده استفاده میکند. برای فعالسازی HTTPS با مدیر سیستم خود تماس بگیرید."),
|
||||
("api_server_empty_tip", "وقتی «API سرور» خالی باشد، سرور سفارشی شما بهطور پیشفرض از HTTP استفاده میکند. برای فعالسازی HTTPS با مدیر سیستم خود تماس بگیرید."),
|
||||
("RustDesk storage", "حافظه RustDesk"),
|
||||
("Other folders", "پوشههای دیگر"),
|
||||
("Choose which folder remote devices can access.", "انتخاب کنید دستگاههای راه دور به کدام پوشه دسترسی داشته باشند."),
|
||||
("android-logs-folder-tip", "برای ذخیره فایلهای گزارش، Android → media را انتخاب کنید."),
|
||||
("Choose folder", "انتخاب پوشه"),
|
||||
("Please select Android → media.", "لطفاً Android → media را انتخاب کنید."),
|
||||
("Trust duration (days)", "مدت اعتماد (روز)"),
|
||||
("Renew trust", "تمدید اعتماد"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+45
-37
@@ -763,8 +763,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Lock canvas", "Lukitse näkymä"),
|
||||
("Sync clipboard between sessions", "Synkronoi leikepöytä istuntojen välillä"),
|
||||
("sync-clipboard-between-sessions-tip", "Yhdessä etäistunnossa kopioitu teksti tai kuvat lähetetään myös muiden yhdistettyjen istuntojen leikepöydälle."),
|
||||
("terminal-clipboard-write-tip", ""),
|
||||
("Allow terminal apps to copy to clipboard", ""),
|
||||
("terminal-clipboard-write-tip", "Päätteessä toimiva sovellus haluaa kopioida tekstiä tämän laitteen leikepöydälle. Jos sallit sen, lupa koskee päätesovelluksia kaikissa yhteyksissä, kunnes poistat sen käytöstä kohdassa Asetukset. Manuaaliseen kopiointiin ja liittämiseen tämä ei vaikuta."),
|
||||
("Allow terminal apps to copy to clipboard", "Salli päätesovellusten kopioida leikepöydälle"),
|
||||
("Enable", "Ota käyttöön"),
|
||||
("Reuse one connection for port forwarding", "Käytä yhtä yhteyttä portin edelleenohjaukseen"),
|
||||
("port-forward-mux-tip", "Välittää kaikki yhden portin edelleenohjauksen yhteydet yhden vastapuoleen avatun yhteyden kautta sen sijaan, että jokaista varten muodostettaisiin yhteys ja kirjauduttaisiin uudelleen."),
|
||||
@@ -780,40 +780,48 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("RustDesk could not load a GStreamer component needed for screen capture ({})", "RustDesk ei voinut ladata näytön kaappaukseen tarvittavaa GStreamer-osaa ({})"),
|
||||
("Relay fallback delay in seconds", "Viive ennen välitykseen siirtymistä sekunteina"),
|
||||
("relay-fallback-delay-tip", "Kuinka kauan jo muodostettu välitysyhteys odottaa suoraa WebRTC-yhteyttä ennen kuin sitä käytetään sen sijaan. Kasvata arvoa antaaksesi hitaalle suoralle yhteydelle enemmän aikaa; pienennä sitä siirtyäksesi nopeammin välitykseen verkoissa, joissa suoraa yhteyttä ei voi muodostaa. Jätä tyhjäksi käyttääksesi oletusarvoa 2.5 sekuntia."),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", ""),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "Aloita äänipuhelu ottamalla ”Äänen tallennus” käyttöön sivulla ”Jaa näyttö”."),
|
||||
("Keyboard shortcuts", "Pikanäppäimet"),
|
||||
("Configure shortcuts...", "Määritä pikanäppäimet..."),
|
||||
("Enable keyboard shortcuts in remote session", "Ota pikanäppäimet käyttöön etäistunnossa"),
|
||||
("shortcut-page-description", "Määritä alla oleville istuntotoiminnoille näppäinyhdistelmät. Jokaisessa yhdistelmässä on oltava vähintään yksi muokkausnäppäin."),
|
||||
("shortcut-passthrough-tip", "Kun tämä on päällä, kaikki määritetyt yhdistelmät välitetään etälaitteelle. Hyödyllinen, kun yhdistelmä on ristiriidassa jonkin etälaitteella tarvitsemasi toiminnon kanssa."),
|
||||
("Pass-through to remote", "Välitä etälaitteelle"),
|
||||
("Reset to defaults", "Palauta oletukset"),
|
||||
("shortcut-reset-confirm-tip", "Tämä korvaa kaikki nykyiset pikanäppäimet oletusasetuksilla. Jatketaanko?"),
|
||||
("Monitor", "Näyttö"),
|
||||
("Keyboard", "Näppäimistö"),
|
||||
("Toggle fullscreen", "Koko näyttö päälle/pois"),
|
||||
("Switch to next display", "Siirry seuraavaan näyttöön"),
|
||||
("Switch to previous display", "Siirry edelliseen näyttöön"),
|
||||
("Switch to next tab", "Siirry seuraavaan välilehteen"),
|
||||
("Switch to previous tab", "Siirry edelliseen välilehteen"),
|
||||
("Toggle session recording", "Istunnon tallennus päälle/pois"),
|
||||
("Close tab", "Sulje välilehti"),
|
||||
("Toggle toolbar", "Näytä/piilota työkalupalkki"),
|
||||
("Toggle input source", "Vaihda syötelähde"),
|
||||
("Edit", "Muokkaa"),
|
||||
("Save", "Tallenna"),
|
||||
("Set shortcut", "Aseta pikanäppäin"),
|
||||
("shortcut-recording-instruction", "Paina näppäinyhdistelmää, jota haluat käyttää."),
|
||||
("shortcut-recording-press-keys-tip", "Paina näppäinyhdistelmää..."),
|
||||
("shortcut-must-include-modifiers", "Yhdistelmässä on oltava vähintään yksi muokkausnäppäin: {}"),
|
||||
("shortcut-already-bound-to", "Jo määritetty toiminnolle"),
|
||||
("Replace", "Korvaa"),
|
||||
("Valid", "Kelvollinen"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "Tallennus vaatii fyysisen näppäimistön. Näyttönäppäimistöjä ei tueta."),
|
||||
("shortcut-key-not-supported", "Näppäintä ”{}” ei voi käyttää pikanäppäimenä."),
|
||||
("On", "Päällä"),
|
||||
("Off", "Pois"),
|
||||
("api_server_connection_tip", "Mukautettu palvelimesi käyttää salaamatonta HTTP-yhteyttä. Pyydä järjestelmänvalvojaa ottamaan HTTPS käyttöön."),
|
||||
("api_server_empty_tip", "Kun ”API palvelin” on tyhjä, mukautettu palvelimesi käyttää oletuksena HTTP:tä. Pyydä järjestelmänvalvojaa ottamaan HTTPS käyttöön."),
|
||||
("RustDesk storage", "RustDesk-tallennustila"),
|
||||
("Other folders", "Muut kansiot"),
|
||||
("Choose which folder remote devices can access.", "Valitse, mihin kansioon etälaitteet pääsevät."),
|
||||
("android-logs-folder-tip", "Valitse Android → media lokitiedostojen tallennusta varten."),
|
||||
("Choose folder", "Valitse kansio"),
|
||||
("Please select Android → media.", "Valitse Android → media."),
|
||||
("Trust duration (days)", "Luottamuksen kesto (päivää)"),
|
||||
("Renew trust", "Jatka luottamusta"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+45
-37
@@ -763,8 +763,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Lock canvas", "Verrouiller la vue"),
|
||||
("Sync clipboard between sessions", "Synchroniser le presse-papiers entre les sessions"),
|
||||
("sync-clipboard-between-sessions-tip", "Le texte ou les images copiés dans une session distante sont également envoyés au presse-papiers de vos autres sessions connectées."),
|
||||
("terminal-clipboard-write-tip", ""),
|
||||
("Allow terminal apps to copy to clipboard", ""),
|
||||
("terminal-clipboard-write-tip", "Une application du terminal souhaite copier du texte dans le presse-papier de cet appareil. Si vous l’autorisez, cette permission s’applique aux applications du terminal dans toutes les connexions jusqu’à ce que vous la désactiviez dans les paramètres. Le copier-coller manuel n’est pas affecté."),
|
||||
("Allow terminal apps to copy to clipboard", "Autoriser les applications du terminal à copier dans le presse-papier"),
|
||||
("Enable", "Activer"),
|
||||
("Reuse one connection for port forwarding", "Réutiliser une seule connexion pour la redirection de ports"),
|
||||
("port-forward-mux-tip", "Faire passer toutes les connexions d'une redirection de ports par une seule connexion vers le pair, au lieu de se connecter et de s'authentifier à nouveau pour chacune."),
|
||||
@@ -780,40 +780,48 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("RustDesk could not load a GStreamer component needed for screen capture ({})", "RustDesk n'a pas pu charger un composant GStreamer nécessaire à la capture d'écran ({})"),
|
||||
("Relay fallback delay in seconds", "Délai avant bascule vers le relais en secondes"),
|
||||
("relay-fallback-delay-tip", "Durée pendant laquelle une connexion relais déjà établie attend la connexion directe WebRTC avant d'être utilisée à sa place. Augmentez-la pour laisser plus de temps à une connexion directe lente ; diminuez-la pour basculer plus tôt vers le relais sur les réseaux où une connexion directe est impossible. Laissez vide pour la valeur par défaut de 2.5 secondes."),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", ""),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "Pour démarrer un appel vocal, activez « Capture de l’audio » dans la page « Partage d’écran »."),
|
||||
("Keyboard shortcuts", "Raccourcis clavier"),
|
||||
("Configure shortcuts...", "Configurer les raccourcis…"),
|
||||
("Enable keyboard shortcuts in remote session", "Activer les raccourcis clavier dans la session distante"),
|
||||
("shortcut-page-description", "Associez une combinaison de touches à chacune des actions de session ci-dessous. Chaque raccourci doit inclure au moins une touche de modification."),
|
||||
("shortcut-passthrough-tip", "Lorsque cette option est activée, toutes les combinaisons associées sont transmises à l’appareil distant. Utile lorsqu’un raccourci entre en conflit avec une fonction dont vous avez besoin sur l’appareil distant."),
|
||||
("Pass-through to remote", "Transmettre à l’appareil distant"),
|
||||
("Reset to defaults", "Rétablir les valeurs par défaut"),
|
||||
("shortcut-reset-confirm-tip", "Tous les raccourcis actuels seront remplacés par ceux par défaut. Continuer ?"),
|
||||
("Monitor", "Écran"),
|
||||
("Keyboard", "Clavier"),
|
||||
("Toggle fullscreen", "Activer/désactiver le plein écran"),
|
||||
("Switch to next display", "Passer à l’écran suivant"),
|
||||
("Switch to previous display", "Passer à l’écran précédent"),
|
||||
("Switch to next tab", "Passer à l’onglet suivant"),
|
||||
("Switch to previous tab", "Passer à l’onglet précédent"),
|
||||
("Toggle session recording", "Démarrer/arrêter l’enregistrement de la session"),
|
||||
("Close tab", "Fermer l’onglet"),
|
||||
("Toggle toolbar", "Afficher/masquer la barre d’outils"),
|
||||
("Toggle input source", "Changer de source d’entrée"),
|
||||
("Edit", "Modifier"),
|
||||
("Save", "Enregistrer"),
|
||||
("Set shortcut", "Définir le raccourci"),
|
||||
("shortcut-recording-instruction", "Appuyez sur la combinaison de touches que vous souhaitez utiliser."),
|
||||
("shortcut-recording-press-keys-tip", "Appuyez sur une combinaison de touches…"),
|
||||
("shortcut-must-include-modifiers", "Doit inclure au moins une touche de modification : {}"),
|
||||
("shortcut-already-bound-to", "Déjà associé à"),
|
||||
("Replace", "Remplacer"),
|
||||
("Valid", "Valide"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "La saisie d’un raccourci nécessite un clavier physique. Les claviers virtuels ne sont pas pris en charge."),
|
||||
("shortcut-key-not-supported", "« {} » ne peut pas être utilisé comme raccourci."),
|
||||
("On", "Activé"),
|
||||
("Off", "Désactivé"),
|
||||
("api_server_connection_tip", "Votre serveur personnalisé utilise HTTP non chiffré. Contactez votre administrateur pour activer HTTPS."),
|
||||
("api_server_empty_tip", "Lorsque le champ Serveur API est vide, votre serveur personnalisé utilise HTTP par défaut. Contactez votre administrateur pour activer HTTPS."),
|
||||
("RustDesk storage", "Stockage RustDesk"),
|
||||
("Other folders", "Autres dossiers"),
|
||||
("Choose which folder remote devices can access.", "Choisissez le dossier auquel les appareils distants peuvent accéder."),
|
||||
("android-logs-folder-tip", "Choisissez Android → media pour stocker les fichiers journaux."),
|
||||
("Choose folder", "Choisir un dossier"),
|
||||
("Please select Android → media.", "Veuillez sélectionner Android → media."),
|
||||
("Trust duration (days)", "Durée de confiance (jours)"),
|
||||
("Renew trust", "Renouveler la confiance"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+45
-37
@@ -763,8 +763,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Lock canvas", "ტილოს დაბლოკვა"),
|
||||
("Sync clipboard between sessions", "გაცვლის ბუფერის სინქრონიზაცია სესიებს შორის"),
|
||||
("sync-clipboard-between-sessions-tip", "ერთ დაშორებულ სესიაში დაკოპირებული ტექსტი ან სურათები ასევე იგზავნება თქვენი სხვა დაკავშირებული სესიების გაცვლის ბუფერში."),
|
||||
("terminal-clipboard-write-tip", ""),
|
||||
("Allow terminal apps to copy to clipboard", ""),
|
||||
("terminal-clipboard-write-tip", "ტერმინალში არსებულ აპლიკაციას სურს ტექსტის კოპირება ამ მოწყობილობის გაცვლის ბუფერში. თუ ნებას დართავთ, ეს ნებართვა გავრცელდება ტერმინალის აპლიკაციებზე ყველა კავშირში, სანამ მას პარამეტრებში არ გამორთავთ. ხელით კოპირებასა და ჩასმაზე ეს გავლენას არ ახდენს."),
|
||||
("Allow terminal apps to copy to clipboard", "ტერმინალის აპლიკაციებისთვის გაცვლის ბუფერში კოპირების დაშვება"),
|
||||
("Enable", "ჩართვა"),
|
||||
("Reuse one connection for port forwarding", "პორტის გადამისამართებისთვის ერთი კავშირის ხელახლა გამოყენება"),
|
||||
("port-forward-mux-tip", "ერთი პორტის გადამისამართების ყველა კავშირი გადის მეორე კომპიუტერთან დამყარებული ერთი კავშირით, ნაცვლად იმისა, რომ თითოეულისთვის თავიდან დაუკავშირდეს და შევიდეს სისტემაში."),
|
||||
@@ -780,40 +780,48 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("RustDesk could not load a GStreamer component needed for screen capture ({})", "RustDesk-მა ვერ ჩატვირთა ეკრანის ჩაწერისთვის საჭირო GStreamer-ის კომპონენტი ({})"),
|
||||
("Relay fallback delay in seconds", "რელეზე გადასვლის დაყოვნება წამებში"),
|
||||
("relay-fallback-delay-tip", "რამდენ ხანს ელოდება უკვე დამყარებული რელე-კავშირი პირდაპირ WebRTC კავშირს, სანამ მის ნაცვლად გამოიყენება. გაზარდეთ, რომ ნელ პირდაპირ კავშირს მეტი დრო მისცეთ; შეამცირეთ, რომ ქსელებში, სადაც პირდაპირი კავშირი შეუძლებელია, უფრო სწრაფად გადავიდეს რელეზე. დატოვეთ ცარიელი ნაგულისხმევი 2.5 წამისთვის."),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", ""),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "ხმოვანი ზარის დასაწყებად ჩართეთ „აუდიოს ჩაწერა“ გვერდზე „ეკრანის დემონსტრაცია“."),
|
||||
("Keyboard shortcuts", "კლავიატურის მალსახმობები"),
|
||||
("Configure shortcuts...", "მალსახმობების კონფიგურაცია..."),
|
||||
("Enable keyboard shortcuts in remote session", "კლავიატურის მალსახმობების ჩართვა დისტანციურ სესიაში"),
|
||||
("shortcut-page-description", "ქვემოთ მოცემულ სესიის თითოეულ მოქმედებას მიანიჭეთ კლავიშების კომბინაცია. თითოეული კომბინაცია უნდა შეიცავდეს მინიმუმ ერთ მოდიფიკატორ კლავიშს."),
|
||||
("shortcut-passthrough-tip", "ჩართვისას ყველა მინიჭებული კომბინაცია გადაეგზავნება დისტანციურ მოწყობილობას. სასარგებლოა, როცა კომბინაცია ემთხვევა რამეს, რაც დისტანციურ მოწყობილობაზე გჭირდებათ."),
|
||||
("Pass-through to remote", "დისტანციურ მოწყობილობაზე გადაცემა"),
|
||||
("Reset to defaults", "ნაგულისხმევზე დაბრუნება"),
|
||||
("shortcut-reset-confirm-tip", "ეს ყველა მიმდინარე კომბინაციას ნაგულისხმევი ნაკრებით ჩაანაცვლებს. გავაგრძელოთ?"),
|
||||
("Monitor", "მონიტორი"),
|
||||
("Keyboard", "კლავიატურა"),
|
||||
("Toggle fullscreen", "სრული ეკრანის ჩართვა/გამორთვა"),
|
||||
("Switch to next display", "შემდეგ ეკრანზე გადართვა"),
|
||||
("Switch to previous display", "წინა ეკრანზე გადართვა"),
|
||||
("Switch to next tab", "შემდეგ ჩანართზე გადართვა"),
|
||||
("Switch to previous tab", "წინა ჩანართზე გადართვა"),
|
||||
("Toggle session recording", "სესიის ჩაწერის ჩართვა/გამორთვა"),
|
||||
("Close tab", "ჩანართის დახურვა"),
|
||||
("Toggle toolbar", "ხელსაწყოთა პანელის ჩვენება/დამალვა"),
|
||||
("Toggle input source", "შეყვანის წყაროს გადართვა"),
|
||||
("Edit", "რედაქტირება"),
|
||||
("Save", "შენახვა"),
|
||||
("Set shortcut", "მალსახმობის დაყენება"),
|
||||
("shortcut-recording-instruction", "დააჭირეთ კლავიშების კომბინაციას, რომლის გამოყენებაც გსურთ."),
|
||||
("shortcut-recording-press-keys-tip", "დააჭირეთ კლავიშების კომბინაციას..."),
|
||||
("shortcut-must-include-modifiers", "უნდა შეიცავდეს მინიმუმ ერთ მოდიფიკატორს: {}"),
|
||||
("shortcut-already-bound-to", "უკვე მინიჭებულია:"),
|
||||
("Replace", "ჩანაცვლება"),
|
||||
("Valid", "სწორია"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "მალსახმობის ჩასაწერად საჭიროა ფიზიკური კლავიატურა. პროგრამული კლავიატურები მხარდაჭერილი არ არის."),
|
||||
("shortcut-key-not-supported", "„{}“ ვერ იქნება გამოყენებული მალსახმობად."),
|
||||
("On", "ჩართული"),
|
||||
("Off", "გამორთული"),
|
||||
("api_server_connection_tip", "თქვენი მორგებული სერვერი იყენებს დაუშიფრავ HTTP-ს. HTTPS-ის ჩასართავად დაუკავშირდით თქვენს ადმინისტრატორს."),
|
||||
("api_server_empty_tip", "როცა „API სერვერი“ ცარიელია, თქვენი მორგებული სერვერი ნაგულისხმევად იყენებს HTTP-ს. HTTPS-ის ჩასართავად დაუკავშირდით თქვენს ადმინისტრატორს."),
|
||||
("RustDesk storage", "RustDesk-ის საცავი"),
|
||||
("Other folders", "სხვა საქაღალდეები"),
|
||||
("Choose which folder remote devices can access.", "აირჩიეთ, რომელ საქაღალდეზე ექნებათ წვდომა დისტანციურ მოწყობილობებს."),
|
||||
("android-logs-folder-tip", "ჟურნალის ფაილების შესანახად აირჩიეთ Android → media."),
|
||||
("Choose folder", "საქაღალდის არჩევა"),
|
||||
("Please select Android → media.", "გთხოვთ, აირჩიოთ Android → media."),
|
||||
("Trust duration (days)", "ნდობის ხანგრძლივობა (დღე)"),
|
||||
("Renew trust", "ნდობის განახლება"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+43
-35
@@ -780,40 +780,48 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("RustDesk could not load a GStreamer component needed for screen capture ({})", "RustDesk non puido cargar un compoñente de GStreamer necesario para capturar a pantalla ({})"),
|
||||
("Relay fallback delay in seconds", "Atraso antes de usar o relé en segundos"),
|
||||
("relay-fallback-delay-tip", "Canto tempo agarda unha conexión de relé xa establecida pola conexión directa WebRTC antes de usarse no seu lugar. Auménteo para darlle máis tempo a unha conexión directa lenta; redúzao para recorrer antes ao relé en redes onde non é posible unha conexión directa. Déixeo baleiro para o valor predeterminado de 2.5 segundos."),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", ""),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "Para iniciar unha chamada de voz, activa «Captura de audio» na páxina «Compartir pantalla»."),
|
||||
("Keyboard shortcuts", "Atallos de teclado"),
|
||||
("Configure shortcuts...", "Configurar atallos..."),
|
||||
("Enable keyboard shortcuts in remote session", "Activar os atallos de teclado na sesión remota"),
|
||||
("shortcut-page-description", "Asigna unha combinación de teclas a cada unha das seguintes accións de sesión. Cada asignación debe incluír polo menos unha tecla modificadora."),
|
||||
("shortcut-passthrough-tip", "Cando está activado, todas as combinacións asignadas envíanse ao dispositivo remoto. Útil cando unha asignación entra en conflito con algo que precisas no dispositivo remoto."),
|
||||
("Pass-through to remote", "Enviar ao dispositivo remoto"),
|
||||
("Reset to defaults", "Restablecer os valores predeterminados"),
|
||||
("shortcut-reset-confirm-tip", "Isto substituirá todas as asignacións actuais polas predeterminadas. Continuar?"),
|
||||
("Monitor", "Monitor"),
|
||||
("Keyboard", "Teclado"),
|
||||
("Toggle fullscreen", "Alternar pantalla completa"),
|
||||
("Switch to next display", "Cambiar á pantalla seguinte"),
|
||||
("Switch to previous display", "Cambiar á pantalla anterior"),
|
||||
("Switch to next tab", "Cambiar á pestana seguinte"),
|
||||
("Switch to previous tab", "Cambiar á pestana anterior"),
|
||||
("Toggle session recording", "Iniciar/deter a gravación da sesión"),
|
||||
("Close tab", "Pechar pestana"),
|
||||
("Toggle toolbar", "Amosar/agochar a barra de ferramentas"),
|
||||
("Toggle input source", "Alternar a fonte de entrada"),
|
||||
("Edit", "Editar"),
|
||||
("Save", "Gardar"),
|
||||
("Set shortcut", "Definir atallo"),
|
||||
("shortcut-recording-instruction", "Preme a combinación de teclas que queres usar."),
|
||||
("shortcut-recording-press-keys-tip", "Preme unha combinación de teclas..."),
|
||||
("shortcut-must-include-modifiers", "Debe incluír polo menos unha tecla modificadora: {}"),
|
||||
("shortcut-already-bound-to", "Xa asignado a"),
|
||||
("Replace", "Substituír"),
|
||||
("Valid", "Válido"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "Para gravar un atallo cómpre un teclado físico. Os teclados virtuais non son compatibles."),
|
||||
("shortcut-key-not-supported", "«{}» non se pode usar como atallo."),
|
||||
("On", "Activado"),
|
||||
("Off", "Desactivado"),
|
||||
("api_server_connection_tip", "O teu servidor personalizado usa HTTP sen cifrar. Contacta co teu administrador para activar HTTPS."),
|
||||
("api_server_empty_tip", "Co Servidor de API baleiro, o teu servidor personalizado usa HTTP de forma predeterminada. Contacta co teu administrador para activar HTTPS."),
|
||||
("RustDesk storage", "Almacenamento de RustDesk"),
|
||||
("Other folders", "Outros cartafoles"),
|
||||
("Choose which folder remote devices can access.", "Elixe a que cartafol poden acceder os dispositivos remotos."),
|
||||
("android-logs-folder-tip", "Elixe Android → media para gardar os ficheiros de rexistro."),
|
||||
("Choose folder", "Elixir cartafol"),
|
||||
("Please select Android → media.", "Selecciona Android → media."),
|
||||
("Trust duration (days)", "Duración da confianza (días)"),
|
||||
("Renew trust", "Renovar a confianza"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+45
-37
@@ -763,8 +763,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Lock canvas", "કેનવાસ લોક કરો"),
|
||||
("Sync clipboard between sessions", "સત્રો વચ્ચે ક્લિપબોર્ડ સિંક કરો"),
|
||||
("sync-clipboard-between-sessions-tip", "એક રિમોટ સત્રમાં કૉપિ કરેલ ટેક્સ્ટ કે છબીઓ તમારા અન્ય જોડાયેલા સત્રોના ક્લિપબોર્ડ પર પણ મોકલવામાં આવે છે."),
|
||||
("terminal-clipboard-write-tip", ""),
|
||||
("Allow terminal apps to copy to clipboard", ""),
|
||||
("terminal-clipboard-write-tip", "ટર્મિનલમાંની એક એપ આ ઉપકરણના ક્લિપબોર્ડમાં ટેક્સ્ટ કોપી કરવા માંગે છે. મંજૂરી આપશો તો, જ્યાં સુધી તમે તેને સેટિંગ્સમાં બંધ ન કરો ત્યાં સુધી આ પરવાનગી બધા કનેક્શનમાં ટર્મિનલ એપ્સ પર લાગુ રહેશે. મેન્યુઅલ કોપી અને પેસ્ટ પર કોઈ અસર થતી નથી."),
|
||||
("Allow terminal apps to copy to clipboard", "ટર્મિનલ એપ્સને ક્લિપબોર્ડમાં કોપી કરવાની મંજૂરી આપો"),
|
||||
("Enable", "સક્ષમ કરો"),
|
||||
("Reuse one connection for port forwarding", "પોર્ટ ફોરવર્ડિંગ માટે એક જ કનેક્શન ફરી વાપરો"),
|
||||
("port-forward-mux-tip", "એક પોર્ટ ફોરવર્ડિંગનાં બધાં કનેક્શન સામેના કમ્પ્યુટર સાથેના એક જ કનેક્શન મારફતે જાય છે, દરેક માટે ફરીથી કનેક્ટ અને લોગિન કરવાને બદલે."),
|
||||
@@ -780,40 +780,48 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("RustDesk could not load a GStreamer component needed for screen capture ({})", "RustDesk સ્ક્રીન કૅપ્ચર માટે જરૂરી GStreamer ઘટક લોડ કરી શક્યું નથી ({})"),
|
||||
("Relay fallback delay in seconds", "રિલે પર પાછા ફરવામાં વિલંબ સેકન્ડમાં"),
|
||||
("relay-fallback-delay-tip", "પહેલેથી સ્થાપિત રિલે કનેક્શન સીધા WebRTC કનેક્શનની કેટલો સમય રાહ જુએ છે, ત્યાર બાદ તેના બદલે વપરાય છે. ધીમા સીધા કનેક્શનને વધુ સમય આપવા માટે વધારો; જ્યાં સીધું કનેક્શન શક્ય નથી તેવા નેટવર્ક પર વહેલા રિલે પર જવા માટે ઘટાડો. મૂળભૂત 2.5 સેકન્ડ માટે ખાલી રાખો."),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", ""),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "વોઇસ કોલ શરૂ કરવા માટે, “સ્ક્રીન શેર કરો” પેજ પર “ઓડિયો કેપ્ચર” સક્ષમ કરો."),
|
||||
("Keyboard shortcuts", "કીબોર્ડ શોર્ટકટ"),
|
||||
("Configure shortcuts...", "શોર્ટકટ ગોઠવો..."),
|
||||
("Enable keyboard shortcuts in remote session", "રિમોટ સત્રમાં કીબોર્ડ શોર્ટકટ સક્ષમ કરો"),
|
||||
("shortcut-page-description", "નીચેની દરેક સત્ર ક્રિયા માટે એક કી સંયોજન સોંપો. દરેક સંયોજનમાં ઓછામાં ઓછી એક મોડિફાયર કી હોવી જોઈએ."),
|
||||
("shortcut-passthrough-tip", "ચાલુ હોય ત્યારે, દરેક સોંપેલ સંયોજન રિમોટને મોકલવામાં આવે છે. જ્યારે કોઈ શોર્ટકટ રિમોટ પર તમને જરૂરી કોઈ શોર્ટકટ સાથે ટકરાય ત્યારે ઉપયોગી."),
|
||||
("Pass-through to remote", "રિમોટને સીધું મોકલો"),
|
||||
("Reset to defaults", "ડિફોલ્ટ પર રીસેટ કરો"),
|
||||
("shortcut-reset-confirm-tip", "આ બધા વર્તમાન શોર્ટકટને ડિફોલ્ટ સેટથી બદલી દેશે. ચાલુ રાખવું છે?"),
|
||||
("Monitor", "મોનિટર"),
|
||||
("Keyboard", "કીબોર્ડ"),
|
||||
("Toggle fullscreen", "ફુલસ્ક્રીન ટૉગલ કરો"),
|
||||
("Switch to next display", "આગલા ડિસ્પ્લે પર જાઓ"),
|
||||
("Switch to previous display", "પાછલા ડિસ્પ્લે પર જાઓ"),
|
||||
("Switch to next tab", "આગલી ટેબ પર જાઓ"),
|
||||
("Switch to previous tab", "પાછલી ટેબ પર જાઓ"),
|
||||
("Toggle session recording", "સત્ર રેકોર્ડિંગ ટૉગલ કરો"),
|
||||
("Close tab", "ટેબ બંધ કરો"),
|
||||
("Toggle toolbar", "ટૂલબાર ટૉગલ કરો"),
|
||||
("Toggle input source", "ઇનપુટ સ્રોત ટૉગલ કરો"),
|
||||
("Edit", "ફેરફાર કરો"),
|
||||
("Save", "સાચવો"),
|
||||
("Set shortcut", "શોર્ટકટ સેટ કરો"),
|
||||
("shortcut-recording-instruction", "તમે જે કી સંયોજનનો ઉપયોગ કરવા માંગો છો તે દબાવો."),
|
||||
("shortcut-recording-press-keys-tip", "કોઈ કી સંયોજન દબાવો..."),
|
||||
("shortcut-must-include-modifiers", "ઓછામાં ઓછી એક મોડિફાયર કી શામેલ હોવી જોઈએ: {}"),
|
||||
("shortcut-already-bound-to", "પહેલેથી આને સોંપેલ છે"),
|
||||
("Replace", "બદલો"),
|
||||
("Valid", "માન્ય"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "શોર્ટકટ રેકોર્ડ કરવા માટે ભૌતિક કીબોર્ડ જરૂરી છે. સોફ્ટ કીબોર્ડ સમર્થિત નથી."),
|
||||
("shortcut-key-not-supported", "“{}” નો શોર્ટકટ તરીકે ઉપયોગ કરી શકાતો નથી."),
|
||||
("On", "ચાલુ"),
|
||||
("Off", "બંધ"),
|
||||
("api_server_connection_tip", "તમારું કસ્ટમ સર્વર અનએન્ક્રિપ્ટેડ HTTP વાપરે છે. HTTPS સક્ષમ કરવા માટે તમારા એડમિનિસ્ટ્રેટરનો સંપર્ક કરો."),
|
||||
("api_server_empty_tip", "API સર્વર ખાલી હોય ત્યારે, તમારું કસ્ટમ સર્વર ડિફોલ્ટ રૂપે HTTP વાપરે છે. HTTPS સક્ષમ કરવા માટે તમારા એડમિનિસ્ટ્રેટરનો સંપર્ક કરો."),
|
||||
("RustDesk storage", "RustDesk સ્ટોરેજ"),
|
||||
("Other folders", "અન્ય ફોલ્ડર્સ"),
|
||||
("Choose which folder remote devices can access.", "રિમોટ ઉપકરણો કયા ફોલ્ડરને ઍક્સેસ કરી શકે તે પસંદ કરો."),
|
||||
("android-logs-folder-tip", "લોગ ફાઇલો સંગ્રહવા માટે Android → media પસંદ કરો."),
|
||||
("Choose folder", "ફોલ્ડર પસંદ કરો"),
|
||||
("Please select Android → media.", "કૃપા કરીને Android → media પસંદ કરો."),
|
||||
("Trust duration (days)", "વિશ્વાસ અવધિ (દિવસો)"),
|
||||
("Renew trust", "વિશ્વાસ નવીકરણ કરો"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+52
-44
@@ -53,7 +53,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Audio Input", "קלט שמע"),
|
||||
("Enhancements", "שיפורים"),
|
||||
("Hardware Codec", "Hardware Codec"),
|
||||
("Adaptive bitrate", "Adaptive bitrate"),
|
||||
("Adaptive bitrate", "קצב סיביות מותאם"),
|
||||
("ID Server", "שרת ID"),
|
||||
("Relay Server", "שרת Relay"),
|
||||
("API Server", "שרת API"),
|
||||
@@ -119,7 +119,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Adjust Window", "התאם חלון"),
|
||||
("Original", "מקורי"),
|
||||
("Shrink", "הקטן"),
|
||||
("Stretch", "מתח"),
|
||||
("Stretch", "מתיחה"),
|
||||
("Scrollbar", "פס גלילה"),
|
||||
("ScrollAuto", "גלילה אוטומטית"),
|
||||
("Good image quality", "איכות תמונה טובה"),
|
||||
@@ -604,7 +604,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Power", "הפעלה"),
|
||||
("Telegram bot", "בוט טלגרם"),
|
||||
("enable-bot-tip", "אפשר שליטה או קבלת התראות דרך בוט טלגרם"),
|
||||
("enable-bot-desc", "אפשרות זו תאפשר לבוט טלגרם לבצע פעולות או לשלוח התראות עבור חשבונך"),
|
||||
("enable-bot-desc", "פתח שיחה עם @BotFather ושלח את הפקודה \"/newbot\" כדי לקבל אסימון.\nאחר כך שלח לבוט החדש הודעה שמתחילה בלוכסן,\nלמשל \"/hello\", כדי להפעיל אותו.\n"),
|
||||
("cancel-2fa-confirm-tip", "האם אתה בטוח שברצונך לבטל את האימות הדו-שלבי?"),
|
||||
("cancel-bot-confirm-tip", "האם אתה בטוח שברצונך לבטל את קישור הבוט?"),
|
||||
("About RustDesk", "אודות RustDesk"),
|
||||
@@ -667,9 +667,9 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Downloading {}", "מוריד את {}"),
|
||||
("{} Update", "עדכון {}"),
|
||||
("{}-to-update-tip", "קיימת גרסה חדשה של {} – מומלץ לעדכן"),
|
||||
("download-new-version-failed-tip", "נכשל בהורדת הגרסה החדשה"),
|
||||
("download-new-version-failed-tip", "הורדת הגרסה נכשלה. תוכל לנסות שוב או ללחוץ על הלחצן \"הורדה\" כדי להוריד את הגרסה מדף ההפצות ולעדכן ידנית."),
|
||||
("Auto update", "עדכון אוטומטי"),
|
||||
("update-failed-check-msi-tip", "העדכון נכשל – בדוק אם קובץ ה־MSI מותקן או הוסר"),
|
||||
("update-failed-check-msi-tip", "בדיקת שיטת ההתקנה נכשלה. אנא לחץ על הלחצן \"הורדה\" כדי להוריד את הגרסה מדף ההפצות ולעדכן ידנית."),
|
||||
("websocket_tip", "אפשר שימוש בפרוטוקול WebSocket לחיבורים"),
|
||||
("Use WebSocket", "השתמש ב־WebSocket"),
|
||||
("Trackpad speed", "מהירות משטח מגע"),
|
||||
@@ -692,7 +692,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("The user is not an administrator.", "המשתמש אינו מנהל"),
|
||||
("Failed to check if the user is an administrator.", "נכשל בבדיקה אם המשתמש הוא מנהל"),
|
||||
("Supported only in the installed version.", "נתמך רק בגרסה המותקנת"),
|
||||
("elevation_username_tip", "רמז_ליוזר_להעלאת_הרשאה"),
|
||||
("elevation_username_tip", "הזן שם משתמש או דומיין\\שם משתמש"),
|
||||
("Preparing for installation ...", "הכנה להתקנה..."),
|
||||
("Show my cursor", "הצג את הסמן שלי"),
|
||||
("Scale custom", "קנה מידה מותאם אישית"),
|
||||
@@ -739,7 +739,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("wayland-keyboard-input-disabled-tip", "לאפשר קלט מקלדת?"),
|
||||
("wayland-keyboard-input-consent-tip", "מה שאתה מקליד במחשב המרוחק הזה (כולל סיסמאות) עלול להיקרא על-ידי אפליקציות אחרות בו."),
|
||||
("wayland-keyboard-input-applies-to-tip", "בחירה זו חלה על:"),
|
||||
("wayland-soft-keyboard-input-label", "קלט מקלדת רכה"),
|
||||
("wayland-soft-keyboard-input-label", "קלט מהמקלדת הווירטואלית"),
|
||||
("wayland-keyboard-input-reset-choice-tip", "אפס את בחירת קלט המקלדת"),
|
||||
("remember-wayland-keyboard-choice-tip", "אל תשאל שוב עבור מחשב מרוחק זה"),
|
||||
("Why this happens", "מדוע זה קורה"),
|
||||
@@ -763,8 +763,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Lock canvas", "נעל לוח ציור"),
|
||||
("Sync clipboard between sessions", "סנכרן לוח בין סשנים"),
|
||||
("sync-clipboard-between-sessions-tip", "טקסט או תמונות שהועתקו בסשן מרוחק אחד נשלחים גם ללוח של שאר הסשנים המחוברים שלך."),
|
||||
("terminal-clipboard-write-tip", ""),
|
||||
("Allow terminal apps to copy to clipboard", ""),
|
||||
("terminal-clipboard-write-tip", "אפליקציה בטרמינל רוצה להעתיק טקסט ללוח הגזירים של המכשיר הזה. אם תאשר, ההרשאה תחול על אפליקציות טרמינל בכל החיבורים עד שתכבה אותה בהגדרות. העתקה והדבקה ידניות לא יושפעו."),
|
||||
("Allow terminal apps to copy to clipboard", "אפשר לאפליקציות טרמינל להעתיק ללוח הגזירים"),
|
||||
("Enable", "הפעל"),
|
||||
("Reuse one connection for port forwarding", "שימוש חוזר בחיבור אחד להעברת פורטים"),
|
||||
("port-forward-mux-tip", "כל החיבורים של העברת פורטים אחת עוברים דרך חיבור יחיד למחשב המרוחק, במקום ליצור חיבור חדש ולהיכנס מחדש עבור כל אחד מהם."),
|
||||
@@ -780,40 +780,48 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("RustDesk could not load a GStreamer component needed for screen capture ({})", "RustDesk לא הצליח לטעון רכיב GStreamer הדרוש ללכידת מסך ({})"),
|
||||
("Relay fallback delay in seconds", "השהיה לפני מעבר לממסר בשניות"),
|
||||
("relay-fallback-delay-tip", "כמה זמן חיבור ממסר שכבר נוצר ממתין לחיבור WebRTC הישיר לפני שישמש במקומו. הגדל כדי לתת לחיבור ישיר איטי יותר זמן; הקטן כדי לעבור מהר יותר לממסר ברשתות שבהן לא ניתן ליצור חיבור ישיר. השאר ריק לערך ברירת המחדל של 2.5 שניות."),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", ""),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "כדי להתחיל שיחה קולית, הפעל את האפשרות \"לכידת שמע\" בדף \"שיתוף מסך\"."),
|
||||
("Keyboard shortcuts", "קיצורי מקשים"),
|
||||
("Configure shortcuts...", "הגדר קיצורי מקשים..."),
|
||||
("Enable keyboard shortcuts in remote session", "הפעל קיצורי מקשים בהפעלה המרוחקת"),
|
||||
("shortcut-page-description", "שייך צירוף מקשים לכל אחת מפעולות ההפעלה שבהמשך. כל צירוף חייב לכלול לפחות מקש משנה אחד."),
|
||||
("shortcut-passthrough-tip", "כשהאפשרות מופעלת, כל צירופי המקשים שהגדרת יישלחו למחשב המרוחק. שימושי כשצירוף מתנגש עם קיצור שאתה צריך במחשב המרוחק."),
|
||||
("Pass-through to remote", "העבר קיצורי מקשים למחשב המרוחק"),
|
||||
("Reset to defaults", "אפס לברירות מחדל"),
|
||||
("shortcut-reset-confirm-tip", "פעולה זו תחליף את כל הצירופים שהגדרת בקבוצת ברירת המחדל. להמשיך?"),
|
||||
("Monitor", "מסך"),
|
||||
("Keyboard", "מקלדת"),
|
||||
("Toggle fullscreen", "הפעל או בטל מצב מסך מלא"),
|
||||
("Switch to next display", "עבור למסך הבא"),
|
||||
("Switch to previous display", "עבור למסך הקודם"),
|
||||
("Switch to next tab", "עבור לכרטיסייה הבאה"),
|
||||
("Switch to previous tab", "עבור לכרטיסייה הקודמת"),
|
||||
("Toggle session recording", "הפעל או הפסק את הקלטת ההפעלה"),
|
||||
("Close tab", "סגור כרטיסייה"),
|
||||
("Toggle toolbar", "הצג או הסתר את סרגל הכלים"),
|
||||
("Toggle input source", "החלף את מקור הקלט"),
|
||||
("Edit", "ערוך"),
|
||||
("Save", "שמור"),
|
||||
("Set shortcut", "הגדר קיצור מקשים"),
|
||||
("shortcut-recording-instruction", "לחץ על צירוף המקשים שבו תרצה להשתמש."),
|
||||
("shortcut-recording-press-keys-tip", "לחץ על צירוף מקשים..."),
|
||||
("shortcut-must-include-modifiers", "חובה לכלול לפחות מקש משנה אחד: {}"),
|
||||
("shortcut-already-bound-to", "צירוף המקשים כבר משויך לפעולה אחרת:"),
|
||||
("Replace", "החלף"),
|
||||
("Valid", "תקין"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "ההקלטה דורשת מקלדת פיזית. אין תמיכה במקלדת וירטואלית."),
|
||||
("shortcut-key-not-supported", "לא תוכל להשתמש ב-\"{}\" כקיצור מקשים."),
|
||||
("On", "מופעל"),
|
||||
("Off", "כבוי"),
|
||||
("api_server_connection_tip", "השרת המותאם אישית שלך משתמש ב-HTTP לא מוצפן. פנה למנהל המערכת שלך כדי להפעיל HTTPS."),
|
||||
("api_server_empty_tip", "כשהשדה \"שרת API\" ריק, השרת המותאם אישית שלך משתמש ב-HTTP כברירת מחדל. פנה למנהל המערכת שלך כדי להפעיל HTTPS."),
|
||||
("RustDesk storage", "אחסון RustDesk"),
|
||||
("Other folders", "תיקיות אחרות"),
|
||||
("Choose which folder remote devices can access.", "בחר לאיזו תיקייה יוכלו מכשירים מרוחקים לגשת."),
|
||||
("android-logs-folder-tip", "בחר Android → media כדי לשמור קובצי יומן."),
|
||||
("Choose folder", "בחר תיקייה"),
|
||||
("Please select Android → media.", "אנא בחר Android → media."),
|
||||
("Trust duration (days)", "משך האמון (ימים)"),
|
||||
("Renew trust", "חידוש אמון"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+45
-37
@@ -763,8 +763,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Lock canvas", "कैनवास लॉक करें"),
|
||||
("Sync clipboard between sessions", "सत्रों के बीच क्लिपबोर्ड सिंक करें"),
|
||||
("sync-clipboard-between-sessions-tip", "एक रिमोट सत्र में कॉपी किए गए टेक्स्ट या चित्र आपके अन्य जुड़े सत्रों के क्लिपबोर्ड पर भी भेजे जाते हैं।"),
|
||||
("terminal-clipboard-write-tip", ""),
|
||||
("Allow terminal apps to copy to clipboard", ""),
|
||||
("terminal-clipboard-write-tip", "टर्मिनल में एक ऐप इस डिवाइस के क्लिपबोर्ड पर टेक्स्ट कॉपी करना चाहता है। अनुमति देने पर, यह अनुमति सभी कनेक्शनों में टर्मिनल ऐप्स पर तब तक लागू रहेगी जब तक आप इसे सेटिंग्स में बंद नहीं करते। मैन्युअल कॉपी और पेस्ट पर कोई असर नहीं पड़ता।"),
|
||||
("Allow terminal apps to copy to clipboard", "टर्मिनल ऐप्स को क्लिपबोर्ड पर कॉपी करने की अनुमति दें"),
|
||||
("Enable", "सक्षम करें"),
|
||||
("Reuse one connection for port forwarding", "पोर्ट फ़ॉरवर्डिंग के लिए एक ही कनेक्शन दोबारा उपयोग करें"),
|
||||
("port-forward-mux-tip", "एक पोर्ट फ़ॉरवर्डिंग के सभी कनेक्शन दूसरे कंप्यूटर से बने एक ही कनेक्शन से होकर जाते हैं, हर एक के लिए दोबारा कनेक्ट और लॉगिन करने के बजाय।"),
|
||||
@@ -780,40 +780,48 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("RustDesk could not load a GStreamer component needed for screen capture ({})", "RustDesk स्क्रीन कैप्चर के लिए आवश्यक GStreamer घटक लोड नहीं कर सका ({})"),
|
||||
("Relay fallback delay in seconds", "रिले पर लौटने में विलंब सेकंड में"),
|
||||
("relay-fallback-delay-tip", "पहले से स्थापित रिले कनेक्शन सीधे WebRTC कनेक्शन की कितनी देर प्रतीक्षा करता है, उसके बाद उसके स्थान पर उपयोग किया जाता है। धीमे सीधे कनेक्शन को अधिक समय देने के लिए बढ़ाएँ; जिन नेटवर्क पर सीधा कनेक्शन संभव नहीं है वहाँ जल्दी रिले पर जाने के लिए घटाएँ। डिफ़ॉल्ट 2.5 सेकंड के लिए खाली छोड़ें।"),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", ""),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "वॉयस कॉल शुरू करने के लिए, “स्क्रीन शेयर करें” पेज पर “ऑडियो कैप्चर” सक्षम करें।"),
|
||||
("Keyboard shortcuts", "कीबोर्ड शॉर्टकट"),
|
||||
("Configure shortcuts...", "शॉर्टकट कॉन्फ़िगर करें..."),
|
||||
("Enable keyboard shortcuts in remote session", "रिमोट सत्र में कीबोर्ड शॉर्टकट सक्षम करें"),
|
||||
("shortcut-page-description", "नीचे दिए गए प्रत्येक सत्र कार्य के लिए एक कुंजी संयोजन निर्धारित करें। प्रत्येक संयोजन में कम से कम एक मॉडिफ़ायर कुंजी होनी चाहिए।"),
|
||||
("shortcut-passthrough-tip", "चालू होने पर, प्रत्येक निर्धारित संयोजन रिमोट को भेज दिया जाता है। यह तब उपयोगी है जब कोई शॉर्टकट रिमोट पर आपकी ज़रूरत के किसी शॉर्टकट से टकराता है।"),
|
||||
("Pass-through to remote", "रिमोट को सीधे भेजें"),
|
||||
("Reset to defaults", "डिफ़ॉल्ट पर रीसेट करें"),
|
||||
("shortcut-reset-confirm-tip", "यह सभी मौजूदा शॉर्टकट को डिफ़ॉल्ट सेट से बदल देगा। जारी रखें?"),
|
||||
("Monitor", "मॉनिटर"),
|
||||
("Keyboard", "कीबोर्ड"),
|
||||
("Toggle fullscreen", "फुलस्क्रीन टॉगल करें"),
|
||||
("Switch to next display", "अगले डिस्प्ले पर जाएं"),
|
||||
("Switch to previous display", "पिछले डिस्प्ले पर जाएं"),
|
||||
("Switch to next tab", "अगले टैब पर जाएं"),
|
||||
("Switch to previous tab", "पिछले टैब पर जाएं"),
|
||||
("Toggle session recording", "सत्र रिकॉर्डिंग टॉगल करें"),
|
||||
("Close tab", "टैब बंद करें"),
|
||||
("Toggle toolbar", "टूलबार टॉगल करें"),
|
||||
("Toggle input source", "इनपुट स्रोत टॉगल करें"),
|
||||
("Edit", "संपादित करें"),
|
||||
("Save", "सहेजें"),
|
||||
("Set shortcut", "शॉर्टकट सेट करें"),
|
||||
("shortcut-recording-instruction", "वह कुंजी संयोजन दबाएं जिसका आप उपयोग करना चाहते हैं।"),
|
||||
("shortcut-recording-press-keys-tip", "कोई कुंजी संयोजन दबाएं..."),
|
||||
("shortcut-must-include-modifiers", "कम से कम एक मॉडिफ़ायर कुंजी शामिल होनी चाहिए: {}"),
|
||||
("shortcut-already-bound-to", "पहले से इसके लिए निर्धारित"),
|
||||
("Replace", "बदलें"),
|
||||
("Valid", "मान्य"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "शॉर्टकट रिकॉर्ड करने के लिए भौतिक कीबोर्ड आवश्यक है। सॉफ़्ट कीबोर्ड समर्थित नहीं हैं।"),
|
||||
("shortcut-key-not-supported", "“{}” को शॉर्टकट के रूप में उपयोग नहीं किया जा सकता।"),
|
||||
("On", "चालू"),
|
||||
("Off", "बंद"),
|
||||
("api_server_connection_tip", "आपका कस्टम सर्वर अनएन्क्रिप्टेड HTTP का उपयोग करता है। HTTPS सक्षम करने के लिए अपने व्यवस्थापक से संपर्क करें।"),
|
||||
("api_server_empty_tip", "API सर्वर खाली होने पर, आपका कस्टम सर्वर डिफ़ॉल्ट रूप से HTTP का उपयोग करता है। HTTPS सक्षम करने के लिए अपने व्यवस्थापक से संपर्क करें।"),
|
||||
("RustDesk storage", "RustDesk स्टोरेज"),
|
||||
("Other folders", "अन्य फ़ोल्डर"),
|
||||
("Choose which folder remote devices can access.", "चुनें कि रिमोट डिवाइस किस फ़ोल्डर तक पहुंच सकते हैं।"),
|
||||
("android-logs-folder-tip", "लॉग फ़ाइलें संग्रहीत करने के लिए Android → media चुनें।"),
|
||||
("Choose folder", "फ़ोल्डर चुनें"),
|
||||
("Please select Android → media.", "कृपया Android → media चुनें।"),
|
||||
("Trust duration (days)", "विश्वास अवधि (दिन)"),
|
||||
("Renew trust", "विश्वास नवीनीकृत करें"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+45
-37
@@ -763,8 +763,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Lock canvas", "Zaključaj pozadinu"),
|
||||
("Sync clipboard between sessions", "Sinkroniziraj međuspremnik između sesija"),
|
||||
("sync-clipboard-between-sessions-tip", "Tekst ili slike kopirani u jednoj udaljenoj sesiji šalju se i u međuspremnik vaših ostalih povezanih sesija."),
|
||||
("terminal-clipboard-write-tip", ""),
|
||||
("Allow terminal apps to copy to clipboard", ""),
|
||||
("terminal-clipboard-write-tip", "Aplikacija u terminalu želi kopirati tekst u međuspremnik ovog uređaja. Ako to dopustite, ovo dopuštenje vrijedi za terminalske aplikacije u svim vezama dok ga ne isključite u Postavkama. Ručno kopiranje i lijepljenje ostaju nepromijenjeni."),
|
||||
("Allow terminal apps to copy to clipboard", "Dopusti terminalskim aplikacijama kopiranje u međuspremnik"),
|
||||
("Enable", "Omogući"),
|
||||
("Reuse one connection for port forwarding", "Ponovno koristi jednu vezu za prosljeđivanje portova"),
|
||||
("port-forward-mux-tip", "Sve veze jednog prosljeđivanja portova idu kroz jednu vezu prema drugoj strani, umjesto ponovnog povezivanja i prijave za svaku od njih."),
|
||||
@@ -780,40 +780,48 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("RustDesk could not load a GStreamer component needed for screen capture ({})", "RustDesk nije mogao učitati GStreamer komponentu potrebnu za snimanje zaslona ({})"),
|
||||
("Relay fallback delay in seconds", "Odgoda prije prelaska na relej u sekundama"),
|
||||
("relay-fallback-delay-tip", "Koliko dugo već uspostavljena relejna veza čeka izravnu WebRTC vezu prije nego što se upotrijebi umjesto nje. Povećajte da sporoj izravnoj vezi date više vremena; smanjite da se na mrežama gdje izravna veza nije moguća brže prijeđe na relej. Ostavite prazno za zadanu vrijednost od 2.5 sekunde."),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", ""),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "Za početak glasovnog poziva omogućite „Snimanje zvuka“ na stranici „Podijeli zaslon“."),
|
||||
("Keyboard shortcuts", "Tipkovnički prečaci"),
|
||||
("Configure shortcuts...", "Konfiguriraj prečace..."),
|
||||
("Enable keyboard shortcuts in remote session", "Omogući tipkovničke prečace u udaljenoj sesiji"),
|
||||
("shortcut-page-description", "Dodijelite kombinaciju tipki svakoj radnji sesije u nastavku. Svaki prečac mora sadržavati barem jednu modifikatorsku tipku."),
|
||||
("shortcut-passthrough-tip", "Kada je uključeno, svaka dodijeljena kombinacija prosljeđuje se udaljenom uređaju. Korisno kada se prečac sukobljava s nečim što vam treba na udaljenom uređaju."),
|
||||
("Pass-through to remote", "Proslijedi udaljenom uređaju"),
|
||||
("Reset to defaults", "Vrati na zadano"),
|
||||
("shortcut-reset-confirm-tip", "Sve trenutne dodjele bit će zamijenjene zadanim skupom. Nastaviti?"),
|
||||
("Monitor", "Monitor"),
|
||||
("Keyboard", "Tipkovnica"),
|
||||
("Toggle fullscreen", "Uključi/isključi cijeli zaslon"),
|
||||
("Switch to next display", "Prebaci na sljedeći zaslon"),
|
||||
("Switch to previous display", "Prebaci na prethodni zaslon"),
|
||||
("Switch to next tab", "Prebaci na sljedeću karticu"),
|
||||
("Switch to previous tab", "Prebaci na prethodnu karticu"),
|
||||
("Toggle session recording", "Pokreni/zaustavi snimanje sesije"),
|
||||
("Close tab", "Zatvori karticu"),
|
||||
("Toggle toolbar", "Prikaži/sakrij alatnu traku"),
|
||||
("Toggle input source", "Promijeni izvor unosa"),
|
||||
("Edit", "Uredi"),
|
||||
("Save", "Spremi"),
|
||||
("Set shortcut", "Postavi prečac"),
|
||||
("shortcut-recording-instruction", "Pritisnite kombinaciju tipki koju želite koristiti."),
|
||||
("shortcut-recording-press-keys-tip", "Pritisnite kombinaciju tipki..."),
|
||||
("shortcut-must-include-modifiers", "Mora sadržavati barem jednu modifikatorsku tipku: {}"),
|
||||
("shortcut-already-bound-to", "Već dodijeljeno radnji"),
|
||||
("Replace", "Zamijeni"),
|
||||
("Valid", "Valjano"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "Snimanje zahtijeva fizičku tipkovnicu. Softverske tipkovnice nisu podržane."),
|
||||
("shortcut-key-not-supported", "„{}“ se ne može koristiti kao prečac."),
|
||||
("On", "Uključeno"),
|
||||
("Off", "Isključeno"),
|
||||
("api_server_connection_tip", "Vaš prilagođeni poslužitelj koristi nešifrirani HTTP. Obratite se administratoru kako biste omogućili HTTPS."),
|
||||
("api_server_empty_tip", "Kada je API poslužitelj prazan, vaš prilagođeni poslužitelj prema zadanim postavkama koristi HTTP. Obratite se administratoru kako biste omogućili HTTPS."),
|
||||
("RustDesk storage", "RustDesk pohrana"),
|
||||
("Other folders", "Ostale mape"),
|
||||
("Choose which folder remote devices can access.", "Odaberite mapu kojoj udaljeni uređaji mogu pristupiti."),
|
||||
("android-logs-folder-tip", "Odaberite Android → media za spremanje datoteka zapisnika."),
|
||||
("Choose folder", "Odaberi mapu"),
|
||||
("Please select Android → media.", "Odaberite Android → media."),
|
||||
("Trust duration (days)", "Trajanje povjerenja (dani)"),
|
||||
("Renew trust", "Obnovi povjerenje"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+45
-37
@@ -763,8 +763,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Lock canvas", "Nézet zárolása"),
|
||||
("Sync clipboard between sessions", "Vágólap szinkronizálása a munkamenetek között"),
|
||||
("sync-clipboard-between-sessions-tip", "Az egyik távoli munkamenetben másolt szöveg vagy kép a többi csatlakoztatott munkamenet vágólapjára is elküldésre kerül."),
|
||||
("terminal-clipboard-write-tip", ""),
|
||||
("Allow terminal apps to copy to clipboard", ""),
|
||||
("terminal-clipboard-write-tip", "Egy terminálban futó alkalmazás szöveget szeretne másolni ennek az eszköznek a vágólapjára. Ha engedélyezi, ez az engedély minden kapcsolatban a terminálalkalmazásokra vonatkozik, amíg ki nem kapcsolja a Beállításokban. A kézi másolást és beillesztést ez nem érinti."),
|
||||
("Allow terminal apps to copy to clipboard", "Vágólapra másolás engedélyezése a terminálalkalmazásoknak"),
|
||||
("Enable", "Engedélyezés"),
|
||||
("Reuse one connection for port forwarding", "Egyetlen kapcsolat újrafelhasználása a portátirányításhoz"),
|
||||
("port-forward-mux-tip", "Egy portátirányítás összes kapcsolatát egyetlen, a másik géppel létesített kapcsolaton vezeti át, ahelyett hogy mindegyikhez újra csatlakozna és bejelentkezne."),
|
||||
@@ -780,40 +780,48 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("RustDesk could not load a GStreamer component needed for screen capture ({})", "A RustDesk nem tudta betölteni a képernyőrögzítéshez szükséges GStreamer összetevőt ({})"),
|
||||
("Relay fallback delay in seconds", "Késleltetés a továbbítóra váltás előtt másodpercben"),
|
||||
("relay-fallback-delay-tip", "Mennyi ideig vár a már létrejött továbbító kapcsolat a közvetlen WebRTC kapcsolatra, mielőtt helyette használnák. Növelje, hogy a lassú közvetlen kapcsolatnak több ideje legyen; csökkentse, hogy olyan hálózatokon, ahol közvetlen kapcsolat nem hozható létre, hamarabb váltson továbbítóra. Hagyja üresen az alapértelmezett 2.5 másodperchez."),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", ""),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "Hanghívás indításához engedélyezze a „Hangrögzítés” opciót a „Képernyőmegosztás” oldalon."),
|
||||
("Keyboard shortcuts", "Billentyűparancsok"),
|
||||
("Configure shortcuts...", "Billentyűparancsok beállítása..."),
|
||||
("Enable keyboard shortcuts in remote session", "Billentyűparancsok engedélyezése a távoli munkamenetben"),
|
||||
("shortcut-page-description", "Rendeljen billentyűkombinációt az alábbi munkamenet-műveletekhez. Minden hozzárendelésnek tartalmaznia kell legalább egy módosítóbillentyűt."),
|
||||
("shortcut-passthrough-tip", "Bekapcsolva minden hozzárendelt kombináció a távoli gépre lesz továbbítva. Hasznos, ha egy hozzárendelés ütközik valamivel, amire a távoli gépen szüksége van."),
|
||||
("Pass-through to remote", "Továbbítás a távoli gépre"),
|
||||
("Reset to defaults", "Alapértelmezések visszaállítása"),
|
||||
("shortcut-reset-confirm-tip", "Ez az összes jelenlegi hozzárendelést az alapértelmezett készletre cseréli. Folytatja?"),
|
||||
("Monitor", "Monitor"),
|
||||
("Keyboard", "Billentyűzet"),
|
||||
("Toggle fullscreen", "Teljes képernyő be/ki"),
|
||||
("Switch to next display", "Váltás a következő képernyőre"),
|
||||
("Switch to previous display", "Váltás az előző képernyőre"),
|
||||
("Switch to next tab", "Váltás a következő lapra"),
|
||||
("Switch to previous tab", "Váltás az előző lapra"),
|
||||
("Toggle session recording", "Munkamenet-rögzítés be/ki"),
|
||||
("Close tab", "Lap bezárása"),
|
||||
("Toggle toolbar", "Eszköztár be/ki"),
|
||||
("Toggle input source", "Beviteli forrás váltása"),
|
||||
("Edit", "Szerkesztés"),
|
||||
("Save", "Mentés"),
|
||||
("Set shortcut", "Billentyűparancs beállítása"),
|
||||
("shortcut-recording-instruction", "Nyomja le a használni kívánt billentyűkombinációt."),
|
||||
("shortcut-recording-press-keys-tip", "Nyomjon le egy billentyűkombinációt..."),
|
||||
("shortcut-must-include-modifiers", "Legalább egy módosítóbillentyűt tartalmaznia kell: {}"),
|
||||
("shortcut-already-bound-to", "Már hozzárendelve ehhez"),
|
||||
("Replace", "Csere"),
|
||||
("Valid", "Érvényes"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "A rögzítéshez fizikai billentyűzet szükséges. A szoftveres billentyűzetek nem támogatottak."),
|
||||
("shortcut-key-not-supported", "A(z) „{}” nem használható billentyűparancsként."),
|
||||
("On", "Be"),
|
||||
("Off", "Ki"),
|
||||
("api_server_connection_tip", "Az egyéni kiszolgálója titkosítatlan HTTP-t használ. A HTTPS engedélyezéséhez forduljon a rendszergazdához."),
|
||||
("api_server_empty_tip", "Ha az API-kiszolgáló mező üres, az egyéni kiszolgáló alapértelmezés szerint HTTP-t használ. A HTTPS engedélyezéséhez forduljon a rendszergazdához."),
|
||||
("RustDesk storage", "RustDesk-tárhely"),
|
||||
("Other folders", "Egyéb mappák"),
|
||||
("Choose which folder remote devices can access.", "Válassza ki, mely mappához férhetnek hozzá a távoli eszközök."),
|
||||
("android-logs-folder-tip", "A naplófájlok tárolásához válassza az Android → media mappát."),
|
||||
("Choose folder", "Mappa kiválasztása"),
|
||||
("Please select Android → media.", "Válassza az Android → media mappát."),
|
||||
("Trust duration (days)", "Megbízhatóság időtartama (nap)"),
|
||||
("Renew trust", "Megbízhatóság megújítása"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+45
-37
@@ -763,8 +763,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Lock canvas", "Kunci kanvas"),
|
||||
("Sync clipboard between sessions", "Sinkronkan papan klip antar sesi"),
|
||||
("sync-clipboard-between-sessions-tip", "Teks atau gambar yang disalin di satu sesi jarak jauh juga dikirim ke papan klip sesi terhubung Anda yang lain."),
|
||||
("terminal-clipboard-write-tip", ""),
|
||||
("Allow terminal apps to copy to clipboard", ""),
|
||||
("terminal-clipboard-write-tip", "Sebuah aplikasi di terminal ingin menyalin teks ke papan klip perangkat ini. Jika diizinkan, izin ini berlaku untuk aplikasi terminal di semua koneksi hingga Anda menonaktifkannya di Pengaturan. Salin dan tempel secara manual tidak terpengaruh."),
|
||||
("Allow terminal apps to copy to clipboard", "Izinkan aplikasi terminal menyalin ke papan klip"),
|
||||
("Enable", "Aktifkan"),
|
||||
("Reuse one connection for port forwarding", "Gunakan ulang satu koneksi untuk penerusan port"),
|
||||
("port-forward-mux-tip", "Menyalurkan semua koneksi dari satu penerusan port melalui satu koneksi ke perangkat lain, alih-alih menyambung dan masuk lagi untuk setiap koneksi."),
|
||||
@@ -780,40 +780,48 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("RustDesk could not load a GStreamer component needed for screen capture ({})", "RustDesk tidak dapat memuat komponen GStreamer yang diperlukan untuk merekam layar ({})"),
|
||||
("Relay fallback delay in seconds", "Jeda sebelum beralih ke relai dalam detik"),
|
||||
("relay-fallback-delay-tip", "Berapa lama koneksi relai yang sudah terbentuk menunggu koneksi langsung WebRTC sebelum digunakan sebagai gantinya. Perbesar untuk memberi koneksi langsung yang lambat lebih banyak waktu; perkecil agar lebih cepat beralih ke relai pada jaringan yang tidak memungkinkan koneksi langsung. Biarkan kosong untuk nilai bawaan 2.5 detik."),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", ""),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "Untuk memulai panggilan suara, aktifkan \"Rekam Suara\" di halaman \"Bagikan Layar\"."),
|
||||
("Keyboard shortcuts", "Pintasan papan ketik"),
|
||||
("Configure shortcuts...", "Atur pintasan..."),
|
||||
("Enable keyboard shortcuts in remote session", "Aktifkan pintasan papan ketik di sesi remote"),
|
||||
("shortcut-page-description", "Tetapkan kombinasi tombol untuk setiap aksi sesi di bawah ini. Setiap pintasan harus menyertakan setidaknya satu tombol pengubah."),
|
||||
("shortcut-passthrough-tip", "Jika aktif, setiap kombinasi yang ditetapkan akan diteruskan ke perangkat remote. Berguna saat sebuah pintasan bentrok dengan tombol yang Anda perlukan di perangkat remote."),
|
||||
("Pass-through to remote", "Teruskan ke remote"),
|
||||
("Reset to defaults", "Setel ulang ke default"),
|
||||
("shortcut-reset-confirm-tip", "Ini akan mengganti semua pintasan saat ini dengan set default. Lanjutkan?"),
|
||||
("Monitor", "Monitor"),
|
||||
("Keyboard", "Papan ketik"),
|
||||
("Toggle fullscreen", "Alihkan layar penuh"),
|
||||
("Switch to next display", "Beralih ke layar berikutnya"),
|
||||
("Switch to previous display", "Beralih ke layar sebelumnya"),
|
||||
("Switch to next tab", "Beralih ke tab berikutnya"),
|
||||
("Switch to previous tab", "Beralih ke tab sebelumnya"),
|
||||
("Toggle session recording", "Alihkan perekaman sesi"),
|
||||
("Close tab", "Tutup tab"),
|
||||
("Toggle toolbar", "Tampilkan/sembunyikan toolbar"),
|
||||
("Toggle input source", "Alihkan sumber input"),
|
||||
("Edit", "Edit"),
|
||||
("Save", "Simpan"),
|
||||
("Set shortcut", "Atur pintasan"),
|
||||
("shortcut-recording-instruction", "Tekan kombinasi tombol yang ingin Anda gunakan."),
|
||||
("shortcut-recording-press-keys-tip", "Tekan kombinasi tombol..."),
|
||||
("shortcut-must-include-modifiers", "Harus menyertakan setidaknya satu tombol pengubah: {}"),
|
||||
("shortcut-already-bound-to", "Sudah ditetapkan untuk"),
|
||||
("Replace", "Ganti"),
|
||||
("Valid", "Valid"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "Perekaman tombol memerlukan papan ketik fisik. Papan ketik virtual tidak didukung."),
|
||||
("shortcut-key-not-supported", "\"{}\" tidak dapat digunakan sebagai pintasan."),
|
||||
("On", "Aktif"),
|
||||
("Off", "Nonaktif"),
|
||||
("api_server_connection_tip", "Server kustom Anda menggunakan HTTP tanpa enkripsi. Hubungi administrator Anda untuk mengaktifkan HTTPS."),
|
||||
("api_server_empty_tip", "Jika Server API dikosongkan, server kustom Anda secara default menggunakan HTTP. Hubungi administrator Anda untuk mengaktifkan HTTPS."),
|
||||
("RustDesk storage", "Penyimpanan RustDesk"),
|
||||
("Other folders", "Folder lain"),
|
||||
("Choose which folder remote devices can access.", "Pilih folder yang dapat diakses oleh perangkat remote."),
|
||||
("android-logs-folder-tip", "Pilih Android → media untuk menyimpan file log."),
|
||||
("Choose folder", "Pilih folder"),
|
||||
("Please select Android → media.", "Silakan pilih Android → media."),
|
||||
("Trust duration (days)", "Durasi kepercayaan (hari)"),
|
||||
("Renew trust", "Perbarui kepercayaan"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
@@ -815,5 +815,13 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Off", "OFF"),
|
||||
("api_server_connection_tip", "Il server personalizzato usa 'HTTP non crittografato'. Per abilitare HTTPS contatta l'amministratore."),
|
||||
("api_server_empty_tip", "Con 'Server API' vuoto, il server personalizzato predefinito è 'HTTP'. Per abilitare HTTPS contatta l'amministratore."),
|
||||
("RustDesk storage", "Archivio RustDesk"),
|
||||
("Other folders", "Altre cartelle"),
|
||||
("Choose which folder remote devices can access.", "Scegli a quale cartella possono accedere i dispositivi remoti."),
|
||||
("android-logs-folder-tip", "Per archiviare i file registri scegli Android → media."),
|
||||
("Choose folder", "Scegli cartella"),
|
||||
("Please select Android → media.", "Seleziona Android → media."),
|
||||
("Trust duration (days)", "Durata attendibilità (giorni)"),
|
||||
("Renew trust", "Rinnova attendibilità"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+45
-37
@@ -763,8 +763,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Lock canvas", "キャンバスをロック"),
|
||||
("Sync clipboard between sessions", "セッション間でクリップボードを同期"),
|
||||
("sync-clipboard-between-sessions-tip", "1つのリモートセッションでコピーしたテキストや画像は、接続中の他のセッションのクリップボードにも送信されます。"),
|
||||
("terminal-clipboard-write-tip", ""),
|
||||
("Allow terminal apps to copy to clipboard", ""),
|
||||
("terminal-clipboard-write-tip", "ターミナル内のアプリがこのデバイスのクリップボードにテキストをコピーしようとしています。許可すると、設定でオフにするまで、すべての接続のターミナルアプリにこの権限が適用されます。手動でのコピーと貼り付けには影響しません。"),
|
||||
("Allow terminal apps to copy to clipboard", "ターミナルアプリにクリップボードへのコピーを許可する"),
|
||||
("Enable", "有効にする"),
|
||||
("Reuse one connection for port forwarding", "ポート転送で 1 つの接続を再利用する"),
|
||||
("port-forward-mux-tip", "1 つのポート転送のすべての接続を、相手への 1 本の接続にまとめます。接続ごとに接続とログインをやり直しません。"),
|
||||
@@ -780,40 +780,48 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("RustDesk could not load a GStreamer component needed for screen capture ({})", "RustDesk は画面キャプチャに必要な GStreamer コンポーネントを読み込めませんでした ({})"),
|
||||
("Relay fallback delay in seconds", "中継に切り替えるまでの待ち時間 (秒)"),
|
||||
("relay-fallback-delay-tip", "すでに確立された中継接続が、直接の WebRTC 接続をどれだけ待ってから代わりに使用されるかを指定します。値を大きくすると遅い直接接続に時間を与えられ、小さくすると直接接続できないネットワークで早く中継に切り替わります。空欄にすると既定値の 2.5 秒になります。"),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", ""),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "音声通話を開始するには、「画面を共有」ページで「オーディオをキャプチャ」を有効にしてください。"),
|
||||
("Keyboard shortcuts", "キーボードショートカット"),
|
||||
("Configure shortcuts...", "ショートカットを設定..."),
|
||||
("Enable keyboard shortcuts in remote session", "リモートセッションでキーボードショートカットを有効化する"),
|
||||
("shortcut-page-description", "以下の各セッション操作にキーの組み合わせを割り当てます。各割り当てには少なくとも 1 つの修飾キーを含める必要があります。"),
|
||||
("shortcut-passthrough-tip", "オンにすると、割り当てたすべてのキーの組み合わせがリモートに転送されます。割り当てがリモートで使用したい操作と競合する場合に便利です。"),
|
||||
("Pass-through to remote", "リモートにパススルー"),
|
||||
("Reset to defaults", "既定値にリセット"),
|
||||
("shortcut-reset-confirm-tip", "現在のすべての割り当てが既定のセットに置き換えられます。続行しますか?"),
|
||||
("Monitor", "モニター"),
|
||||
("Keyboard", "キーボード"),
|
||||
("Toggle fullscreen", "全画面表示の切り替え"),
|
||||
("Switch to next display", "次のディスプレイに切り替え"),
|
||||
("Switch to previous display", "前のディスプレイに切り替え"),
|
||||
("Switch to next tab", "次のタブに切り替え"),
|
||||
("Switch to previous tab", "前のタブに切り替え"),
|
||||
("Toggle session recording", "セッション録画の切り替え"),
|
||||
("Close tab", "タブを閉じる"),
|
||||
("Toggle toolbar", "ツールバーの表示切り替え"),
|
||||
("Toggle input source", "入力ソースの切り替え"),
|
||||
("Edit", "編集"),
|
||||
("Save", "保存"),
|
||||
("Set shortcut", "ショートカットを設定"),
|
||||
("shortcut-recording-instruction", "使用するキーの組み合わせを押してください。"),
|
||||
("shortcut-recording-press-keys-tip", "キーの組み合わせを押してください..."),
|
||||
("shortcut-must-include-modifiers", "少なくとも 1 つの修飾キーを含める必要があります: {}"),
|
||||
("shortcut-already-bound-to", "すでに割り当て済み"),
|
||||
("Replace", "置き換え"),
|
||||
("Valid", "有効"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "キーの記録には物理キーボードが必要です。ソフトウェアキーボードには対応していません。"),
|
||||
("shortcut-key-not-supported", "「{}」はショートカットとして使用できません。"),
|
||||
("On", "オン"),
|
||||
("Off", "オフ"),
|
||||
("api_server_connection_tip", "カスタムサーバーは暗号化されていない HTTP を使用しています。HTTPS を有効にするには管理者に連絡してください。"),
|
||||
("api_server_empty_tip", "API サーバーが空の場合、カスタムサーバーは既定で HTTP を使用します。HTTPS を有効にするには管理者に連絡してください。"),
|
||||
("RustDesk storage", "RustDesk ストレージ"),
|
||||
("Other folders", "その他のフォルダー"),
|
||||
("Choose which folder remote devices can access.", "リモートデバイスがアクセスできるフォルダーを選択してください。"),
|
||||
("android-logs-folder-tip", "ログファイルを保存するには Android → media を選択してください。"),
|
||||
("Choose folder", "フォルダーを選択"),
|
||||
("Please select Android → media.", "Android → media を選択してください。"),
|
||||
("Trust duration (days)", "信頼期間 (日)"),
|
||||
("Renew trust", "信頼を更新"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+42
-34
@@ -781,39 +781,47 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Relay fallback delay in seconds", "릴레이 대체 작동 지연 시간 (초)"),
|
||||
("relay-fallback-delay-tip", "이미 연결된 중계 연결이 직접 WebRTC 연결을 얼마나 기다린 후 대신 사용되는지입니다. 값을 늘리면 느린 직접 연결에 더 많은 시간을 주고, 줄이면 직접 연결이 불가능한 네트워크에서 더 빨리 중계로 전환합니다. 비워 두면 기본값 2.5초가 사용됩니다."),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "음성 통화를 시작하려면 '화면 공유' 페이지에서 '오디오 캡처'를 사용함으로 하세요."),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("Keyboard shortcuts", "키보드 단축키"),
|
||||
("Configure shortcuts...", "단축키 구성"),
|
||||
("Enable keyboard shortcuts in remote session", "원격 세션에서 키보드 단축키 사용함"),
|
||||
("shortcut-page-description", "아래 각 세션 동작에 키 조합을 할당하세요. 각 연결에는 최소 하나의 수정자가 포함되어야 합니다."),
|
||||
("shortcut-passthrough-tip", "활성화되면 모든 할당 조합이 원격으로 전달됩니다. 연결이 원격에서 필요한 항목과 충돌할 때 유용합니다."),
|
||||
("Pass-through to remote", "원격으로 전달"),
|
||||
("Reset to defaults", "기본값으로 재설정"),
|
||||
("shortcut-reset-confirm-tip", "현재의 모든 할당을 기본값으로 대체합니다. 계속하시겠습니까?"),
|
||||
("Monitor", "모니터"),
|
||||
("Keyboard", "키보드"),
|
||||
("Toggle fullscreen", "전체 화면 전환"),
|
||||
("Switch to next display", "다음 디스플레이로 전환"),
|
||||
("Switch to previous display", "이전 디스플레이로 전환"),
|
||||
("Switch to next tab", "다음 탭으로 전환"),
|
||||
("Switch to previous tab", "이전 탭으로 전환"),
|
||||
("Toggle session recording", "녹화 세션 전환"),
|
||||
("Close tab", "탭 닫기"),
|
||||
("Toggle toolbar", "도구 모음 전환"),
|
||||
("Toggle input source", "입력 소스 전환"),
|
||||
("Edit", "편집"),
|
||||
("Save", "저장"),
|
||||
("Set shortcut", "단축키 설정"),
|
||||
("shortcut-recording-instruction", "사용할 키 조합을 누르세요."),
|
||||
("shortcut-recording-press-keys-tip", "키 조합을 누르세요.."),
|
||||
("shortcut-must-include-modifiers", "수정자 하나 이상을 반드시 포함해야 합니다: {}"),
|
||||
("shortcut-already-bound-to", "이미 할당됨"),
|
||||
("Replace", "교체"),
|
||||
("Valid", "유효"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "녹화하려면 물리적 키보드가 필요합니다. 소프트 키보드는 지원되지 않습니다."),
|
||||
("shortcut-key-not-supported", "\"{}\"는 단축키로 사용할 수 없습니다."),
|
||||
("On", "켬"),
|
||||
("Off", "끔"),
|
||||
("api_server_connection_tip", "사용 중인 맞춤형 서버가 암호화되지 않은 HTTP를 사용합니다. HTTPS를 사용하도록 관리자에게 문의하세요."),
|
||||
("api_server_empty_tip", "API 서버가 비어 있으면 사용자 지정 서버는 기본적으로 HTTP로 설정됩니다. HTTPS를 사용하도록 관리자에게 문의하세요."),
|
||||
("RustDesk storage", "RustDesk 저장소"),
|
||||
("Other folders", "기타 폴더"),
|
||||
("Choose which folder remote devices can access.", "원격 장치가 접근할 수 있는 폴더를 선택하세요."),
|
||||
("android-logs-folder-tip", "로그 파일을 저장할 폴더로 Android → media를 선택하세요"),
|
||||
("Choose folder", "폴더 선택"),
|
||||
("Please select Android → media.", "Android → media를 선택해 주시기 바랍니다."),
|
||||
("Trust duration (days)", "신뢰 유지 기간 (일)"),
|
||||
("Renew trust", "신뢰 갱신"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+45
-37
@@ -763,8 +763,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Lock canvas", "Кенепті құлыптау"),
|
||||
("Sync clipboard between sessions", "Сеанстар арасында көшіру-тақтасын синхрондау"),
|
||||
("sync-clipboard-between-sessions-tip", "Бір қашықтағы сеанста көшірілген мәтін немесе суреттер басқа қосылған сеанстардың көшіру-тақтасына да жіберіледі."),
|
||||
("terminal-clipboard-write-tip", ""),
|
||||
("Allow terminal apps to copy to clipboard", ""),
|
||||
("terminal-clipboard-write-tip", "Терминалдағы қолданба бұл құрылғының көшіру-тақтасына мәтін көшіргісі келеді. Рұқсат берілсе, ол Орнатпаларда өшірілгенше барлық қосылымдардағы терминал қолданбаларына қолданылады. Қолмен көшіру мен қоюға әсер етпейді."),
|
||||
("Allow terminal apps to copy to clipboard", "Терминал қолданбаларына көшіру-тақтасына көшіруге рұқсат ету"),
|
||||
("Enable", "Қосу"),
|
||||
("Reuse one connection for port forwarding", "Порт бағыттау үшін бір қосылымды қайта пайдалану"),
|
||||
("port-forward-mux-tip", "Бір порт бағыттаудың барлық қосылымдары әрқайсысы үшін қайта қосылып кірудің орнына қарсы құрылғымен орнатылған бір қосылым арқылы өтеді."),
|
||||
@@ -780,40 +780,48 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("RustDesk could not load a GStreamer component needed for screen capture ({})", "RustDesk экранды түсіру үшін қажет GStreamer компонентін жүктей алмады ({})"),
|
||||
("Relay fallback delay in seconds", "Релеге ауысу кідірісі, секундпен"),
|
||||
("relay-fallback-delay-tip", "Бұрыннан орнатылған реле байланысы тікелей WebRTC байланысын қанша уақыт күтеді, содан кейін оның орнына қолданылады. Баяу тікелей байланысқа көбірек уақыт беру үшін үлкейтіңіз; тікелей байланыс мүмкін емес желілерде релеге тезірек ауысу үшін кішірейтіңіз. Әдепкі 2.5 секунд үшін бос қалдырыңыз."),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", ""),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "Дауыстық қоңырауды бастау үшін «Екіренді Бөлісу» бетінде «Аудио Түсіру» параметрін қосыңыз."),
|
||||
("Keyboard shortcuts", "Пернелер тіркесімдері"),
|
||||
("Configure shortcuts...", "Пернелер тіркесімдерін баптау..."),
|
||||
("Enable keyboard shortcuts in remote session", "Қашықтағы сеанста пернелер тіркесімдерін іске қосу"),
|
||||
("shortcut-page-description", "Төмендегі әр сеанс әрекетіне пернелер тіркесімін тағайындаңыз. Әр тағайындау кемінде бір модификатор пернені қамтуы керек."),
|
||||
("shortcut-passthrough-tip", "Қосулы болса, әр тағайындалған тіркесім қашықтағы құрылғыға жіберіледі. Тағайындау қашықтағы құрылғыда сізге қажет нәрсемен қайшы келгенде пайдалы."),
|
||||
("Pass-through to remote", "Қашықтағы құрылғыға жіберу"),
|
||||
("Reset to defaults", "Әдепкі мәндерге қайтару"),
|
||||
("shortcut-reset-confirm-tip", "Барлық ағымдағы тағайындаулар әдепкі жиынмен алмастырылады. Жалғастыру керек пе?"),
|
||||
("Monitor", "Монитор"),
|
||||
("Keyboard", "Пернетақта"),
|
||||
("Toggle fullscreen", "Толық екіренді ауыстырып қосу"),
|
||||
("Switch to next display", "Келесі дисплейге ауысу"),
|
||||
("Switch to previous display", "Алдыңғы дисплейге ауысу"),
|
||||
("Switch to next tab", "Келесі бөлімшеге ауысу"),
|
||||
("Switch to previous tab", "Алдыңғы бөлімшеге ауысу"),
|
||||
("Toggle session recording", "Сеансты жазуды ауыстырып қосу"),
|
||||
("Close tab", "Бөлімшені жабу"),
|
||||
("Toggle toolbar", "Құралдар тақтасын ауыстырып қосу"),
|
||||
("Toggle input source", "Еңгізу көзін ауыстыру"),
|
||||
("Edit", "Өңдеу"),
|
||||
("Save", "Сақтау"),
|
||||
("Set shortcut", "Тіркесім тағайындау"),
|
||||
("shortcut-recording-instruction", "Қолданғыңыз келетін пернелер тіркесімін басыңыз."),
|
||||
("shortcut-recording-press-keys-tip", "Пернелер тіркесімін басыңыз..."),
|
||||
("shortcut-must-include-modifiers", "Кемінде бір модификатор болуы керек: {}"),
|
||||
("shortcut-already-bound-to", "Әлдеқашан тағайындалған"),
|
||||
("Replace", "Алмастыру"),
|
||||
("Valid", "Жарамды"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "Жазу үшін физикалық пернетақта қажет. Экрандық пернетақталарға қолдау көрсетілмейді."),
|
||||
("shortcut-key-not-supported", "«{}» пернелер тіркесімі ретінде қолданыла алмайды."),
|
||||
("On", "Қосулы"),
|
||||
("Off", "Өшірулі"),
|
||||
("api_server_connection_tip", "Сіздің жеке серберіңіз шифрланбаған HTTP қолданады. HTTPS қосу үшін әкімшіңізге хабарласыңыз."),
|
||||
("api_server_empty_tip", "«API Сербері» бос болса, сіздің жеке серберіңіз әдепкі бойынша HTTP қолданады. HTTPS қосу үшін әкімшіңізге хабарласыңыз."),
|
||||
("RustDesk storage", "RustDesk қоймасы"),
|
||||
("Other folders", "Басқа бумалар"),
|
||||
("Choose which folder remote devices can access.", "Қашықтағы құрылғылар қол жеткізе алатын буманы таңдаңыз."),
|
||||
("android-logs-folder-tip", "Журнал файылдарын сақтау үшін Android → media таңдаңыз."),
|
||||
("Choose folder", "Буманы таңдау"),
|
||||
("Please select Android → media.", "Android → media таңдаңыз."),
|
||||
("Trust duration (days)", "Сенім мерзімі (күн)"),
|
||||
("Renew trust", "Сенімді жаңарту"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+45
-37
@@ -763,8 +763,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Lock canvas", "Užrakinti drobę"),
|
||||
("Sync clipboard between sessions", "Sinchronizuoti iškarpinę tarp seansų"),
|
||||
("sync-clipboard-between-sessions-tip", "Viename nuotoliniame seanse nukopijuotas tekstas ar vaizdai taip pat siunčiami į kitų prijungtų seansų iškarpinę."),
|
||||
("terminal-clipboard-write-tip", ""),
|
||||
("Allow terminal apps to copy to clipboard", ""),
|
||||
("terminal-clipboard-write-tip", "Terminale veikianti programa nori nukopijuoti tekstą į šio įrenginio iškarpinę. Jei leisite, šis leidimas galios terminalo programoms visuose ryšiuose, kol jį išjungsite nustatymuose. Rankiniam kopijavimui ir įklijavimui tai neturi įtakos."),
|
||||
("Allow terminal apps to copy to clipboard", "Leisti terminalo programoms kopijuoti į iškarpinę"),
|
||||
("Enable", "Įgalinti"),
|
||||
("Reuse one connection for port forwarding", "Prievadų peradresavimui naudoti vieną ryšį"),
|
||||
("port-forward-mux-tip", "Visi vieno prievadų peradresavimo ryšiai eina per vieną ryšį su kitu kompiuteriu, užuot kiekvienam iš jų jungiantis ir prisijungiant iš naujo."),
|
||||
@@ -780,40 +780,48 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("RustDesk could not load a GStreamer component needed for screen capture ({})", "RustDesk nepavyko įkelti ekrano įrašymui reikalingo GStreamer komponento ({})"),
|
||||
("Relay fallback delay in seconds", "Delsa prieš pereinant prie perdavimo sekundėmis"),
|
||||
("relay-fallback-delay-tip", "Kiek laiko jau užmegztas perdavimo ryšys laukia tiesioginio WebRTC ryšio, kol bus panaudotas vietoj jo. Padidinkite, kad lėtam tiesioginiam ryšiui būtų skirta daugiau laiko; sumažinkite, kad tinkluose, kuriuose tiesioginis ryšys neįmanomas, greičiau būtų pereinama prie perdavimo. Palikite tuščią numatytajai 2.5 sekundės reikšmei."),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", ""),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "Norėdami pradėti balso skambutį, puslapyje „Bendrinti ekraną“ įgalinkite „Garso fiksavimas“."),
|
||||
("Keyboard shortcuts", "Spartieji klavišai"),
|
||||
("Configure shortcuts...", "Konfigūruoti sparčiuosius klavišus..."),
|
||||
("Enable keyboard shortcuts in remote session", "Įgalinti sparčiuosius klavišus nuotoliniame seanse"),
|
||||
("shortcut-page-description", "Kiekvienam toliau nurodytam seanso veiksmui priskirkite klavišų kombinaciją. Kiekvienoje kombinacijoje turi būti bent vienas modifikavimo klavišas."),
|
||||
("shortcut-passthrough-tip", "Kai įjungta, kiekviena priskirta kombinacija persiunčiama į nuotolinį įrenginį. Naudinga, kai priskirta kombinacija konfliktuoja su tuo, ko jums reikia nuotoliniame įrenginyje."),
|
||||
("Pass-through to remote", "Persiųsti į nuotolinį įrenginį"),
|
||||
("Reset to defaults", "Atkurti numatytuosius"),
|
||||
("shortcut-reset-confirm-tip", "Visi dabartiniai priskyrimai bus pakeisti numatytaisiais. Tęsti?"),
|
||||
("Monitor", "Ekranas"),
|
||||
("Keyboard", "Klaviatūra"),
|
||||
("Toggle fullscreen", "Perjungti viso ekrano režimą"),
|
||||
("Switch to next display", "Perjungti į kitą ekraną"),
|
||||
("Switch to previous display", "Perjungti į ankstesnį ekraną"),
|
||||
("Switch to next tab", "Perjungti į kitą skirtuką"),
|
||||
("Switch to previous tab", "Perjungti į ankstesnį skirtuką"),
|
||||
("Toggle session recording", "Perjungti seanso įrašymą"),
|
||||
("Close tab", "Uždaryti skirtuką"),
|
||||
("Toggle toolbar", "Perjungti įrankių juostą"),
|
||||
("Toggle input source", "Perjungti įvesties šaltinį"),
|
||||
("Edit", "Redaguoti"),
|
||||
("Save", "Išsaugoti"),
|
||||
("Set shortcut", "Nustatyti spartųjį klavišą"),
|
||||
("shortcut-recording-instruction", "Paspauskite klavišų kombinaciją, kurią norite naudoti."),
|
||||
("shortcut-recording-press-keys-tip", "Paspauskite klavišų kombinaciją..."),
|
||||
("shortcut-must-include-modifiers", "Turi būti bent vienas modifikavimo klavišas: {}"),
|
||||
("shortcut-already-bound-to", "Jau priskirta veiksmui"),
|
||||
("Replace", "Pakeisti"),
|
||||
("Valid", "Tinkama"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "Sparčiųjų klavišų įrašymui reikalinga fizinė klaviatūra. Ekraninės klaviatūros nepalaikomos."),
|
||||
("shortcut-key-not-supported", "„{}“ negali būti naudojamas kaip spartusis klavišas."),
|
||||
("On", "Įjungta"),
|
||||
("Off", "Išjungta"),
|
||||
("api_server_connection_tip", "Jūsų pasirinktinis serveris naudoja nešifruotą HTTP. Susisiekite su administratoriumi, kad įjungtų HTTPS."),
|
||||
("api_server_empty_tip", "Kai API serveris tuščias, jūsų pasirinktinis serveris pagal numatytuosius nustatymus naudoja HTTP. Susisiekite su administratoriumi, kad įjungtų HTTPS."),
|
||||
("RustDesk storage", "RustDesk saugykla"),
|
||||
("Other folders", "Kiti aplankai"),
|
||||
("Choose which folder remote devices can access.", "Pasirinkite, kurį aplanką gali pasiekti nuotoliniai įrenginiai."),
|
||||
("android-logs-folder-tip", "Pasirinkite Android → media, kad žurnalo failai būtų saugomi ten."),
|
||||
("Choose folder", "Pasirinkti aplanką"),
|
||||
("Please select Android → media.", "Pasirinkite Android → media."),
|
||||
("Trust duration (days)", "Pasitikėjimo trukmė (dienomis)"),
|
||||
("Renew trust", "Atnaujinti pasitikėjimą"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+45
-37
@@ -763,8 +763,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Lock canvas", "Bloķēt audeklu"),
|
||||
("Sync clipboard between sessions", "Sinhronizēt starpliktuvi starp sesijām"),
|
||||
("sync-clipboard-between-sessions-tip", "Vienā attālajā sesijā nokopētais teksts vai attēli tiek nosūtīti arī uz pārējo pievienoto sesiju starpliktuvi."),
|
||||
("terminal-clipboard-write-tip", ""),
|
||||
("Allow terminal apps to copy to clipboard", ""),
|
||||
("terminal-clipboard-write-tip", "Lietotne terminālī vēlas kopēt tekstu šīs ierīces starpliktuvē. Ja atļausiet, šī atļauja attieksies uz termināļa lietotnēm visos savienojumos, līdz to izslēgsiet iestatījumos. Manuāla kopēšana un ielīmēšana netiek ietekmēta."),
|
||||
("Allow terminal apps to copy to clipboard", "Atļaut termināļa lietotnēm kopēt starpliktuvē"),
|
||||
("Enable", "Iespējot"),
|
||||
("Reuse one connection for port forwarding", "Atkārtoti izmantot vienu savienojumu portu pārsūtīšanai"),
|
||||
("port-forward-mux-tip", "Visi viena portu pārsūtījuma savienojumi tiek novadīti pa vienu savienojumu ar otru datoru, nevis katram no tiem izveidojot jaunu savienojumu un pieteikšanos."),
|
||||
@@ -780,40 +780,48 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("RustDesk could not load a GStreamer component needed for screen capture ({})", "RustDesk nevarēja ielādēt ekrāna tveršanai nepieciešamo GStreamer komponentu ({})"),
|
||||
("Relay fallback delay in seconds", "Aizkave pirms pārslēgšanās uz retranslatoru sekundēs"),
|
||||
("relay-fallback-delay-tip", "Cik ilgi jau izveidots retranslatora savienojums gaida tiešo WebRTC savienojumu, pirms tiek izmantots tā vietā. Palieliniet, lai lēnam tiešajam savienojumam dotu vairāk laika; samaziniet, lai tīklos, kur tiešais savienojums nav iespējams, ātrāk pārslēgtos uz retranslatoru. Atstājiet tukšu noklusējuma 2.5 sekunžu vērtībai."),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", ""),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "Lai sāktu balss zvanu, lapā \"Koplietot ekrānu\" iespējojiet \"Audio tveršana\"."),
|
||||
("Keyboard shortcuts", "Īsinājumtaustiņi"),
|
||||
("Configure shortcuts...", "Konfigurēt īsinājumtaustiņus..."),
|
||||
("Enable keyboard shortcuts in remote session", "Iespējot īsinājumtaustiņus attālajā sesijā"),
|
||||
("shortcut-page-description", "Piesaistiet taustiņu kombināciju katrai tālāk norādītajai sesijas darbībai. Katrā piesaistē jābūt vismaz vienam modificētājtaustiņam."),
|
||||
("shortcut-passthrough-tip", "Ja ieslēgts, katra piesaistītā kombinācija tiek pārsūtīta uz attālo ierīci. Noderīgi, ja piesaiste konfliktē ar kaut ko, kas jums nepieciešams attālajā ierīcē."),
|
||||
("Pass-through to remote", "Pārsūtīt uz attālo ierīci"),
|
||||
("Reset to defaults", "Atjaunot noklusējumus"),
|
||||
("shortcut-reset-confirm-tip", "Visas pašreizējās piesaistes tiks aizstātas ar noklusējuma kopu. Vai turpināt?"),
|
||||
("Monitor", "Displejs"),
|
||||
("Keyboard", "Tastatūra"),
|
||||
("Toggle fullscreen", "Pārslēgt pilnekrāna režīmu"),
|
||||
("Switch to next display", "Pārslēgties uz nākamo displeju"),
|
||||
("Switch to previous display", "Pārslēgties uz iepriekšējo displeju"),
|
||||
("Switch to next tab", "Pārslēgties uz nākamo cilni"),
|
||||
("Switch to previous tab", "Pārslēgties uz iepriekšējo cilni"),
|
||||
("Toggle session recording", "Pārslēgt sesijas ierakstīšanu"),
|
||||
("Close tab", "Aizvērt cilni"),
|
||||
("Toggle toolbar", "Pārslēgt rīkjoslu"),
|
||||
("Toggle input source", "Pārslēgt ievades avotu"),
|
||||
("Edit", "Rediģēt"),
|
||||
("Save", "Saglabāt"),
|
||||
("Set shortcut", "Iestatīt īsinājumtaustiņu"),
|
||||
("shortcut-recording-instruction", "Nospiediet taustiņu kombināciju, kuru vēlaties izmantot."),
|
||||
("shortcut-recording-press-keys-tip", "Nospiediet taustiņu kombināciju..."),
|
||||
("shortcut-must-include-modifiers", "Jāiekļauj vismaz viens modificētājtaustiņš: {}"),
|
||||
("shortcut-already-bound-to", "Jau piesaistīts darbībai"),
|
||||
("Replace", "Aizstāt"),
|
||||
("Valid", "Derīgs"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "Īsinājumtaustiņu ierakstīšanai nepieciešama fiziska tastatūra. Ekrāna tastatūras netiek atbalstītas."),
|
||||
("shortcut-key-not-supported", "\"{}\" nevar izmantot kā īsinājumtaustiņu."),
|
||||
("On", "Ieslēgts"),
|
||||
("Off", "Izslēgts"),
|
||||
("api_server_connection_tip", "Jūsu pielāgotais serveris izmanto nešifrētu HTTP. Sazinieties ar administratoru, lai iespējotu HTTPS."),
|
||||
("api_server_empty_tip", "Ja API serveris nav norādīts, jūsu pielāgotais serveris pēc noklusējuma izmanto HTTP. Sazinieties ar administratoru, lai iespējotu HTTPS."),
|
||||
("RustDesk storage", "RustDesk krātuve"),
|
||||
("Other folders", "Citas mapes"),
|
||||
("Choose which folder remote devices can access.", "Izvēlieties, kurai mapei attālās ierīces var piekļūt."),
|
||||
("android-logs-folder-tip", "Izvēlieties Android → media, lai saglabātu žurnālu failus."),
|
||||
("Choose folder", "Izvēlēties mapi"),
|
||||
("Please select Android → media.", "Lūdzu, atlasiet Android → media."),
|
||||
("Trust duration (days)", "Uzticēšanās ilgums (dienas)"),
|
||||
("Renew trust", "Atjaunot uzticēšanos"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+45
-37
@@ -763,8 +763,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Lock canvas", "ക്യാൻവാസ് ലോക്ക് ചെയ്യുക"),
|
||||
("Sync clipboard between sessions", "സെഷനുകൾക്കിടയിൽ ക്ലിപ്പ്ബോർഡ് സമന്വയിപ്പിക്കുക"),
|
||||
("sync-clipboard-between-sessions-tip", "ഒരു റിമോട്ട് സെഷനിൽ പകർത്തിയ ടെക്സ്റ്റോ ചിത്രങ്ങളോ നിങ്ങളുടെ മറ്റ് കണക്റ്റുചെയ്ത സെഷനുകളുടെ ക്ലിപ്പ്ബോർഡിലേക്കും അയയ്ക്കപ്പെടും."),
|
||||
("terminal-clipboard-write-tip", ""),
|
||||
("Allow terminal apps to copy to clipboard", ""),
|
||||
("terminal-clipboard-write-tip", "ടെർമിനലിലെ ഒരു ആപ്പ് ഈ ഉപകരണത്തിന്റെ ക്ലിപ്പ്ബോർഡിലേക്ക് ടെക്സ്റ്റ് കോപ്പി ചെയ്യാൻ ആഗ്രഹിക്കുന്നു. അനുവദിച്ചാൽ, ക്രമീകരണങ്ങളിൽ നിങ്ങൾ ഇത് ഓഫ് ചെയ്യുന്നതുവരെ എല്ലാ കണക്ഷനുകളിലെയും ടെർമിനൽ ആപ്പുകൾക്ക് ഈ അനുമതി ബാധകമായിരിക്കും. നേരിട്ടുള്ള കോപ്പി, പേസ്റ്റ് എന്നിവയെ ഇത് ബാധിക്കില്ല."),
|
||||
("Allow terminal apps to copy to clipboard", "ക്ലിപ്പ്ബോർഡിലേക്ക് കോപ്പി ചെയ്യാൻ ടെർമിനൽ ആപ്പുകളെ അനുവദിക്കുക"),
|
||||
("Enable", "അനുവദിക്കുക"),
|
||||
("Reuse one connection for port forwarding", "പോർട്ട് ഫോർവേഡിംഗിന് ഒരേ കണക്ഷൻ വീണ്ടും ഉപയോഗിക്കുക"),
|
||||
("port-forward-mux-tip", "ഒരു പോർട്ട് ഫോർവേഡിംഗിന്റെ എല്ലാ കണക്ഷനുകളും മറ്റേ കമ്പ്യൂട്ടറിലേക്കുള്ള ഒരൊറ്റ കണക്ഷനിലൂടെ കടന്നുപോകുന്നു, ഓരോന്നിനും വീണ്ടും കണക്റ്റ് ചെയ്ത് ലോഗിൻ ചെയ്യുന്നതിനു പകരം."),
|
||||
@@ -780,40 +780,48 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("RustDesk could not load a GStreamer component needed for screen capture ({})", "സ്ക്രീൻ പകർത്താൻ ആവശ്യമായ GStreamer ഘടകം RustDesk-ന് ലോഡ് ചെയ്യാനായില്ല ({})"),
|
||||
("Relay fallback delay in seconds", "റിലേയിലേക്ക് മാറുന്നതിനുള്ള കാലതാമസം സെക്കൻഡിൽ"),
|
||||
("relay-fallback-delay-tip", "ഇതിനകം സ്ഥാപിതമായ റിലേ കണക്ഷൻ നേരിട്ടുള്ള WebRTC കണക്ഷനായി എത്ര നേരം കാത്തിരിക്കുന്നു, അതിനുശേഷം അതിനുപകരം ഉപയോഗിക്കുന്നു. മന്ദഗതിയിലുള്ള നേരിട്ടുള്ള കണക്ഷന് കൂടുതൽ സമയം നൽകാൻ വർദ്ധിപ്പിക്കുക; നേരിട്ടുള്ള കണക്ഷൻ സാധ്യമല്ലാത്ത നെറ്റ്വർക്കുകളിൽ വേഗത്തിൽ റിലേയിലേക്ക് മാറാൻ കുറയ്ക്കുക. സ്ഥിരസ്ഥിതിയായ 2.5 സെക്കൻഡിനായി ശൂന്യമാക്കിയിടുക."),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", ""),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "വോയിസ് കോൾ തുടങ്ങാൻ, “സ്ക്രീൻ പങ്കിടുക” പേജിൽ “ഓഡിയോ ക്യാപ്ചർ” ഓൺ ചെയ്യുക."),
|
||||
("Keyboard shortcuts", "കീബോർഡ് ഷോർട്ട്കട്ടുകൾ"),
|
||||
("Configure shortcuts...", "ഷോർട്ട്കട്ടുകൾ ക്രമീകരിക്കുക..."),
|
||||
("Enable keyboard shortcuts in remote session", "റിമോട്ട് സെഷനിൽ കീബോർഡ് ഷോർട്ട്കട്ടുകൾ അനുവദിക്കുക"),
|
||||
("shortcut-page-description", "താഴെയുള്ള ഓരോ സെഷൻ പ്രവർത്തനത്തിനും ഒരു കീ കോമ്പിനേഷൻ നൽകുക. ഓരോ കോമ്പിനേഷനിലും കുറഞ്ഞത് ഒരു മോഡിഫയർ കീ ഉണ്ടായിരിക്കണം."),
|
||||
("shortcut-passthrough-tip", "ഓൺ ആയിരിക്കുമ്പോൾ, നൽകിയിട്ടുള്ള എല്ലാ കോമ്പിനേഷനുകളും റിമോട്ടിലേക്ക് അയയ്ക്കും. റിമോട്ടിൽ നിങ്ങൾക്ക് ആവശ്യമുള്ള ഒന്നുമായി ഒരു ഷോർട്ട്കട്ട് കൂട്ടിമുട്ടുമ്പോൾ ഇത് ഉപകാരപ്പെടും."),
|
||||
("Pass-through to remote", "റിമോട്ടിലേക്ക് നേരിട്ട് അയയ്ക്കുക"),
|
||||
("Reset to defaults", "ഡിഫോൾട്ടിലേക്ക് റീസെറ്റ് ചെയ്യുക"),
|
||||
("shortcut-reset-confirm-tip", "ഇത് നിലവിലുള്ള എല്ലാ ഷോർട്ട്കട്ടുകളും ഡിഫോൾട്ട് സെറ്റ് ഉപയോഗിച്ച് മാറ്റിസ്ഥാപിക്കും. തുടരണോ?"),
|
||||
("Monitor", "മോണിറ്റർ"),
|
||||
("Keyboard", "കീബോർഡ്"),
|
||||
("Toggle fullscreen", "ഫുൾ സ്ക്രീൻ ടോഗിൾ ചെയ്യുക"),
|
||||
("Switch to next display", "അടുത്ത ഡിസ്പ്ലേയിലേക്ക് മാറുക"),
|
||||
("Switch to previous display", "മുമ്പത്തെ ഡിസ്പ്ലേയിലേക്ക് മാറുക"),
|
||||
("Switch to next tab", "അടുത്ത ടാബിലേക്ക് മാറുക"),
|
||||
("Switch to previous tab", "മുമ്പത്തെ ടാബിലേക്ക് മാറുക"),
|
||||
("Toggle session recording", "സെഷൻ റെക്കോർഡിംഗ് ടോഗിൾ ചെയ്യുക"),
|
||||
("Close tab", "ടാബ് അടയ്ക്കുക"),
|
||||
("Toggle toolbar", "ടൂൾബാർ ടോഗിൾ ചെയ്യുക"),
|
||||
("Toggle input source", "ഇൻപുട്ട് സോഴ്സ് ടോഗിൾ ചെയ്യുക"),
|
||||
("Edit", "എഡിറ്റ് ചെയ്യുക"),
|
||||
("Save", "സേവ് ചെയ്യുക"),
|
||||
("Set shortcut", "ഷോർട്ട്കട്ട് സജ്ജമാക്കുക"),
|
||||
("shortcut-recording-instruction", "നിങ്ങൾ ഉപയോഗിക്കാൻ ആഗ്രഹിക്കുന്ന കീ കോമ്പിനേഷൻ അമർത്തുക."),
|
||||
("shortcut-recording-press-keys-tip", "ഒരു കീ കോമ്പിനേഷൻ അമർത്തുക..."),
|
||||
("shortcut-must-include-modifiers", "കുറഞ്ഞത് ഒരു മോഡിഫയർ കീ ഉൾപ്പെടുത്തണം: {}"),
|
||||
("shortcut-already-bound-to", "ഇതിനകം ഇതിന് നൽകിയിട്ടുണ്ട്"),
|
||||
("Replace", "മാറ്റിസ്ഥാപിക്കുക"),
|
||||
("Valid", "സാധുവാണ്"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "ഷോർട്ട്കട്ട് റെക്കോർഡ് ചെയ്യാൻ ഒരു ഫിസിക്കൽ കീബോർഡ് ആവശ്യമാണ്. സോഫ്റ്റ് കീബോർഡുകൾ പിന്തുണയ്ക്കുന്നില്ല."),
|
||||
("shortcut-key-not-supported", "“{}” ഷോർട്ട്കട്ടായി ഉപയോഗിക്കാൻ കഴിയില്ല."),
|
||||
("On", "ഓൺ"),
|
||||
("Off", "ഓഫ്"),
|
||||
("api_server_connection_tip", "നിങ്ങളുടെ കസ്റ്റം സെർവർ എൻക്രിപ്റ്റ് ചെയ്യാത്ത HTTP ആണ് ഉപയോഗിക്കുന്നത്. HTTPS പ്രവർത്തനക്ഷമമാക്കാൻ നിങ്ങളുടെ അഡ്മിനിസ്ട്രേറ്ററെ ബന്ധപ്പെടുക."),
|
||||
("api_server_empty_tip", "API സെർവർ ശൂന്യമാണെങ്കിൽ, നിങ്ങളുടെ കസ്റ്റം സെർവർ ഡിഫോൾട്ടായി HTTP ഉപയോഗിക്കും. HTTPS പ്രവർത്തനക്ഷമമാക്കാൻ നിങ്ങളുടെ അഡ്മിനിസ്ട്രേറ്ററെ ബന്ധപ്പെടുക."),
|
||||
("RustDesk storage", "RustDesk സ്റ്റോറേജ്"),
|
||||
("Other folders", "മറ്റ് ഫോൾഡറുകൾ"),
|
||||
("Choose which folder remote devices can access.", "റിമോട്ട് ഉപകരണങ്ങൾക്ക് ആക്സസ് ചെയ്യാൻ കഴിയുന്ന ഫോൾഡർ തിരഞ്ഞെടുക്കുക."),
|
||||
("android-logs-folder-tip", "ലോഗ് ഫയലുകൾ സൂക്ഷിക്കാൻ Android → media തിരഞ്ഞെടുക്കുക."),
|
||||
("Choose folder", "ഫോൾഡർ തിരഞ്ഞെടുക്കുക"),
|
||||
("Please select Android → media.", "ദയവായി Android → media തിരഞ്ഞെടുക്കുക."),
|
||||
("Trust duration (days)", "വിശ്വാസ കാലാവധി (ദിവസം)"),
|
||||
("Renew trust", "വിശ്വാസം പുതുക്കുക"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+45
-37
@@ -763,8 +763,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Lock canvas", "Lås lerret"),
|
||||
("Sync clipboard between sessions", "Synkroniser utklippstavlen mellom økter"),
|
||||
("sync-clipboard-between-sessions-tip", "Tekst eller bilder som kopieres i én ekstern økt, sendes også til utklippstavlen i de andre tilkoblede øktene dine."),
|
||||
("terminal-clipboard-write-tip", ""),
|
||||
("Allow terminal apps to copy to clipboard", ""),
|
||||
("terminal-clipboard-write-tip", "En app i terminalen vil kopiere tekst til utklippstavlen på denne enheten. Hvis du gir tillatelse, gjelder den for terminalapper i alle tilkoblinger til du slår den av i Innstillinger. Manuell kopiering og innliming påvirkes ikke."),
|
||||
("Allow terminal apps to copy to clipboard", "Tillat terminalapper å kopiere til utklippstavlen"),
|
||||
("Enable", "Aktiver"),
|
||||
("Reuse one connection for port forwarding", "Gjenbruk én tilkobling for portvideresending"),
|
||||
("port-forward-mux-tip", "Fører alle tilkoblinger i en portvideresending gjennom én enkelt tilkobling til motparten i stedet for å koble til og logge inn på nytt for hver enkelt."),
|
||||
@@ -780,40 +780,48 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("RustDesk could not load a GStreamer component needed for screen capture ({})", "RustDesk kunne ikke laste en GStreamer-komponent som kreves for skjermopptak ({})"),
|
||||
("Relay fallback delay in seconds", "Forsinkelse før bruk av relé i sekunder"),
|
||||
("relay-fallback-delay-tip", "Hvor lenge en allerede opprettet reléforbindelse venter på den direkte WebRTC-forbindelsen før den brukes i stedet. Øk verdien for å gi en treg direkteforbindelse mer tid; senk den for å gå raskere over til reléet på nettverk der direkte forbindelse ikke er mulig. La stå tom for standardverdien på 2.5 sekunder."),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", ""),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "Aktiver «Lydopptak» på siden «Del skjermen» for å starte et stemmeanrop."),
|
||||
("Keyboard shortcuts", "Hurtigtaster"),
|
||||
("Configure shortcuts...", "Konfigurer hurtigtaster..."),
|
||||
("Enable keyboard shortcuts in remote session", "Aktiver hurtigtaster i fjernsesjonen"),
|
||||
("shortcut-page-description", "Tildel en tastekombinasjon til hver sesjonshandling nedenfor. Hver tildeling må inneholde minst én modifikatortast."),
|
||||
("shortcut-passthrough-tip", "Når dette er på, videresendes alle tildelte kombinasjoner til fjernenheten. Nyttig når en tildeling kolliderer med noe du trenger på fjernenheten."),
|
||||
("Pass-through to remote", "Videresend til fjernenheten"),
|
||||
("Reset to defaults", "Tilbakestill til standard"),
|
||||
("shortcut-reset-confirm-tip", "Dette erstatter alle gjeldende tildelinger med standardsettet. Vil du fortsette?"),
|
||||
("Monitor", "Skjerm"),
|
||||
("Keyboard", "Tastatur"),
|
||||
("Toggle fullscreen", "Veksle fullskjerm"),
|
||||
("Switch to next display", "Bytt til neste skjerm"),
|
||||
("Switch to previous display", "Bytt til forrige skjerm"),
|
||||
("Switch to next tab", "Bytt til neste fane"),
|
||||
("Switch to previous tab", "Bytt til forrige fane"),
|
||||
("Toggle session recording", "Start/stopp sesjonsopptak"),
|
||||
("Close tab", "Lukk fane"),
|
||||
("Toggle toolbar", "Vis/skjul verktøylinje"),
|
||||
("Toggle input source", "Bytt inndatakilde"),
|
||||
("Edit", "Rediger"),
|
||||
("Save", "Lagre"),
|
||||
("Set shortcut", "Angi hurtigtast"),
|
||||
("shortcut-recording-instruction", "Trykk på tastekombinasjonen du vil bruke."),
|
||||
("shortcut-recording-press-keys-tip", "Trykk på en tastekombinasjon..."),
|
||||
("shortcut-must-include-modifiers", "Må inneholde minst én modifikatortast: {}"),
|
||||
("shortcut-already-bound-to", "Allerede tildelt"),
|
||||
("Replace", "Erstatt"),
|
||||
("Valid", "Gyldig"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "Opptak krever et fysisk tastatur. Skjermtastaturer støttes ikke."),
|
||||
("shortcut-key-not-supported", "«{}» kan ikke brukes som hurtigtast."),
|
||||
("On", "På"),
|
||||
("Off", "Av"),
|
||||
("api_server_connection_tip", "Den egendefinerte serveren din bruker ukryptert HTTP. Kontakt administratoren din for å aktivere HTTPS."),
|
||||
("api_server_empty_tip", "Når API Server er tom, bruker den egendefinerte serveren din HTTP som standard. Kontakt administratoren din for å aktivere HTTPS."),
|
||||
("RustDesk storage", "RustDesk-lagring"),
|
||||
("Other folders", "Andre mapper"),
|
||||
("Choose which folder remote devices can access.", "Velg hvilken mappe fjernenheter kan få tilgang til."),
|
||||
("android-logs-folder-tip", "Velg Android → media for å lagre loggfiler."),
|
||||
("Choose folder", "Velg mappe"),
|
||||
("Please select Android → media.", "Velg Android → media."),
|
||||
("Trust duration (days)", "Klareringsperiode (dager)"),
|
||||
("Renew trust", "Forny klarering"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+10
-2
@@ -813,7 +813,15 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("shortcut-key-not-supported", "Sneltoets wordt niet ondersteund"),
|
||||
("On", "Aan"),
|
||||
("Off", "Uit"),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("api_server_connection_tip", "De door jou gebruikte aangepaste server maakt gebruik van onversleuteld HTTP. Neem contact op met de beheerder om HTTPS in te schakelen."),
|
||||
("api_server_empty_tip", "Als de API-server leeg is, wordt de aangepaste server standaard ingesteld op HTTP. Neem contact op met de beheerder om HTTPS in te schakelen."),
|
||||
("RustDesk storage", "RustDesk-gegevensopslag"),
|
||||
("Other folders", "Andere mappen"),
|
||||
("Choose which folder remote devices can access.", "Kies tot welke map externe apparaten toegang hebben."),
|
||||
("android-logs-folder-tip", "Kies Android → media om logbestanden op te slaan."),
|
||||
("Choose folder", "Kies een map"),
|
||||
("Please select Android → media.", "Selecteer Android → media."),
|
||||
("Trust duration (days)", "Vertrouwensperiode (dagen)"),
|
||||
("Renew trust", "Vertrouwen hernieuwen"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+10
-2
@@ -813,7 +813,15 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("shortcut-key-not-supported", "Znak '{}' nie może być użyty jako skrót."),
|
||||
("On", "Włączone"),
|
||||
("Off", "Wyłączone"),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("api_server_connection_tip", "Twój własny serwer używa nieszyfrowanego protokołu HTTP. Skontaktuj się z administratorem, aby włączyć HTTPS."),
|
||||
("api_server_empty_tip", "Gdy pole Serwer API jest puste, Twój własny serwer domyślnie używa HTTP. Skontaktuj się z administratorem, aby włączyć HTTPS."),
|
||||
("RustDesk storage", "Pamięć RustDesk"),
|
||||
("Other folders", "Inne foldery"),
|
||||
("Choose which folder remote devices can access.", "Wybierz folder, do którego zdalne urządzenia będą miały dostęp."),
|
||||
("android-logs-folder-tip", "Wybierz Android → media, aby przechowywać pliki dziennika."),
|
||||
("Choose folder", "Wybierz folder"),
|
||||
("Please select Android → media.", "Wybierz Android → media."),
|
||||
("Trust duration (days)", "Okres zaufania (dni)"),
|
||||
("Renew trust", "Odnów zaufanie"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+10
-2
@@ -813,7 +813,15 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("shortcut-key-not-supported", "Não é possível usar \"{}\" como atalho."),
|
||||
("On", "Ativado"),
|
||||
("Off", "Desativado"),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("api_server_connection_tip", "Seu servidor personalizado está usando HTTP sem criptografia. Entre em contato com o administrador para habilitar HTTPS."),
|
||||
("api_server_empty_tip", "Campo Servidor de API vazio: o servidor personalizado usa HTTP por padrão. Entre em contato com o administrador para habilitar HTTPS."),
|
||||
("RustDesk storage", "Armazenamento do RustDesk"),
|
||||
("Other folders", "Outras pastas"),
|
||||
("Choose which folder remote devices can access.", "Escolha a pasta que os dispositivos remotos poderão acessar."),
|
||||
("android-logs-folder-tip", "Selecione Android → media para armazenar os arquivos de log."),
|
||||
("Choose folder", "Escolher pasta"),
|
||||
("Please select Android → media.", "Selecione Android → media."),
|
||||
("Trust duration (days)", "Duração da confiança (dias)"),
|
||||
("Renew trust", "Renovar confiança"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
@@ -815,5 +815,13 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Off", "Desligado"),
|
||||
("api_server_connection_tip", "O seu servidor personalizado utiliza HTTP não encriptado. Contacte o seu administrador para ativar o HTTPS."),
|
||||
("api_server_empty_tip", "Com o servidor da API vazio, o seu servidor personalizado utiliza HTTP por predefinição. Contacte o seu administrador para ativar o HTTPS."),
|
||||
("RustDesk storage", "Armazenamento do RustDesk"),
|
||||
("Other folders", "Outras pastas"),
|
||||
("Choose which folder remote devices can access.", "Escolha a pasta a que os dispositivos remotos podem aceder."),
|
||||
("android-logs-folder-tip", "Escolha Android → media para guardar os ficheiros de registo."),
|
||||
("Choose folder", "Escolher pasta"),
|
||||
("Please select Android → media.", "Por favor selecione Android → media."),
|
||||
("Trust duration (days)", "Duração da confiança (dias)"),
|
||||
("Renew trust", "Renovar confiança"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+45
-37
@@ -763,8 +763,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Lock canvas", "Blochează ecranul"),
|
||||
("Sync clipboard between sessions", "Sincronizează clipboardul între sesiuni"),
|
||||
("sync-clipboard-between-sessions-tip", "Textul sau imaginile copiate într-o sesiune la distanță sunt trimise și în clipboardul celorlalte sesiuni conectate."),
|
||||
("terminal-clipboard-write-tip", ""),
|
||||
("Allow terminal apps to copy to clipboard", ""),
|
||||
("terminal-clipboard-write-tip", "O aplicație din terminal vrea să copieze text în clipboardul acestui dispozitiv. Dacă acorzi permisiunea, aceasta se aplică aplicațiilor din terminal în toate conexiunile, până când o dezactivezi în Setări. Copierea și lipirea manuală nu sunt afectate."),
|
||||
("Allow terminal apps to copy to clipboard", "Permite aplicațiilor din terminal să copieze în clipboard"),
|
||||
("Enable", "Activează"),
|
||||
("Reuse one connection for port forwarding", "Reutilizează o singură conexiune pentru redirecționarea porturilor"),
|
||||
("port-forward-mux-tip", "Trece toate conexiunile unei redirecționări de porturi printr-o singură conexiune către celălalt calculator, în loc să se conecteze și să se autentifice din nou pentru fiecare."),
|
||||
@@ -780,40 +780,48 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("RustDesk could not load a GStreamer component needed for screen capture ({})", "RustDesk nu a putut încărca o componentă GStreamer necesară pentru capturarea ecranului ({})"),
|
||||
("Relay fallback delay in seconds", "Întârziere înainte de trecerea la releu în secunde"),
|
||||
("relay-fallback-delay-tip", "Cât timp așteaptă o conexiune prin releu deja stabilită conexiunea directă WebRTC înainte de a fi folosită în locul ei. Măriți valoarea pentru a acorda mai mult timp unei conexiuni directe lente; micșorați-o pentru a trece mai repede la releu în rețelele în care o conexiune directă nu este posibilă. Lăsați gol pentru valoarea implicită de 2.5 secunde."),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", ""),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "Pentru a începe un apel vocal, activează „Capturare audio” pe pagina „Partajează ecran”."),
|
||||
("Keyboard shortcuts", "Comenzi rapide de la tastatură"),
|
||||
("Configure shortcuts...", "Configurează comenzile rapide..."),
|
||||
("Enable keyboard shortcuts in remote session", "Activează comenzile rapide de la tastatură în sesiunea la distanță"),
|
||||
("shortcut-page-description", "Asociază o combinație de taste fiecărei acțiuni de sesiune de mai jos. Fiecare asociere trebuie să includă cel puțin o tastă modificatoare."),
|
||||
("shortcut-passthrough-tip", "Când este activată, fiecare combinație asociată este transmisă dispozitivului la distanță. Util când o asociere intră în conflict cu ceva de care ai nevoie pe dispozitivul la distanță."),
|
||||
("Pass-through to remote", "Transmite către dispozitivul la distanță"),
|
||||
("Reset to defaults", "Resetează la valorile implicite"),
|
||||
("shortcut-reset-confirm-tip", "Toate asocierile curente vor fi înlocuite cu setul implicit. Continui?"),
|
||||
("Monitor", "Monitor"),
|
||||
("Keyboard", "Tastatură"),
|
||||
("Toggle fullscreen", "Comută ecranul complet"),
|
||||
("Switch to next display", "Comută la afișajul următor"),
|
||||
("Switch to previous display", "Comută la afișajul anterior"),
|
||||
("Switch to next tab", "Comută la fila următoare"),
|
||||
("Switch to previous tab", "Comută la fila anterioară"),
|
||||
("Toggle session recording", "Comută înregistrarea sesiunii"),
|
||||
("Close tab", "Închide fila"),
|
||||
("Toggle toolbar", "Comută bara de instrumente"),
|
||||
("Toggle input source", "Comută sursa de intrare"),
|
||||
("Edit", "Editează"),
|
||||
("Save", "Salvează"),
|
||||
("Set shortcut", "Setează comanda rapidă"),
|
||||
("shortcut-recording-instruction", "Apasă combinația de taste pe care vrei să o folosești."),
|
||||
("shortcut-recording-press-keys-tip", "Apasă o combinație de taste..."),
|
||||
("shortcut-must-include-modifiers", "Trebuie să includă cel puțin o tastă modificatoare: {}"),
|
||||
("shortcut-already-bound-to", "Deja asociată cu"),
|
||||
("Replace", "Înlocuiește"),
|
||||
("Valid", "Validă"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "Înregistrarea comenzilor rapide necesită o tastatură fizică. Tastaturile virtuale nu sunt acceptate."),
|
||||
("shortcut-key-not-supported", "„{}” nu poate fi folosit ca o comandă rapidă."),
|
||||
("On", "Activat"),
|
||||
("Off", "Dezactivat"),
|
||||
("api_server_connection_tip", "Serverul tău personalizat folosește HTTP necriptat. Contactează administratorul pentru a activa HTTPS."),
|
||||
("api_server_empty_tip", "Dacă Server API este gol, serverul tău personalizat folosește implicit HTTP. Contactează administratorul pentru a activa HTTPS."),
|
||||
("RustDesk storage", "Stocare RustDesk"),
|
||||
("Other folders", "Alte foldere"),
|
||||
("Choose which folder remote devices can access.", "Alege folderul pe care îl pot accesa dispozitivele la distanță."),
|
||||
("android-logs-folder-tip", "Alege Android → media pentru a stoca fișierele jurnal."),
|
||||
("Choose folder", "Alege folderul"),
|
||||
("Please select Android → media.", "Selectează Android → media."),
|
||||
("Trust duration (days)", "Durata încrederii (zile)"),
|
||||
("Renew trust", "Reînnoiește încrederea"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+11
-3
@@ -664,7 +664,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Import Folder", "Импортировать папку"),
|
||||
("Copy to clipboard", "Копировать в буфер обмена"),
|
||||
("Enable remote printer", "Использовать удалённый принтер"),
|
||||
("Downloading {}", "Скачивание"),
|
||||
("Downloading {}", "Скачивание {}"),
|
||||
("{} Update", "Обновить {}"),
|
||||
("{}-to-update-tip", "{} закроется и установит новую версию."),
|
||||
("download-new-version-failed-tip", "Ошибка загрузки. Можно повторить попытку или нажать кнопку \"Скачать\", чтобы скачать приложение с официального сайта и обновить вручную."),
|
||||
@@ -813,7 +813,15 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("shortcut-key-not-supported", "\"{}\" невозможно использовать как сочетание клавиш."),
|
||||
("On", "вкл"),
|
||||
("Off", "откл"),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("api_server_connection_tip", "Ваш собственный сервер использует незашифрованный HTTP. Обратитесь к администратору, чтобы включить HTTPS."),
|
||||
("api_server_empty_tip", "Если поле «Сервер API» пустое, ваш собственный сервер по умолчанию использует HTTP. Обратитесь к администратору, чтобы включить HTTPS."),
|
||||
("RustDesk storage", "Хранилище RustDesk"),
|
||||
("Other folders", "Другие папки"),
|
||||
("Choose which folder remote devices can access.", "Выберите папку, к которой удалённые устройства смогут получить доступ."),
|
||||
("android-logs-folder-tip", "Выберите Android → media для хранения файлов журналов."),
|
||||
("Choose folder", "Выбрать папку"),
|
||||
("Please select Android → media.", "Выберите Android → media."),
|
||||
("Trust duration (days)", "Срок доверия (в днях)"),
|
||||
("Renew trust", "Продлить доверие"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+43
-35
@@ -639,7 +639,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Use D3D rendering", "Imprea sa renderizatzione D3D"),
|
||||
("Printer", "Imprentadora"),
|
||||
("printer-os-requirement-tip", "Pro pòdere impreare s'imprentadora in seddida bisòngiat a installare {} in custu dispositivu."),
|
||||
("printer-requires-installed-{}-client-tip", "Pro sa funtzionalidade de imprenta in essida b'at bisòngiu de Window 10 o prus nou."),
|
||||
("printer-requires-installed-{}-client-tip", "Pro impreare s'imprenta remota, bisòngiat a installare {} in custu dispositivu."),
|
||||
("printer-{}-not-installed-tip", "S'imprentadora {} no est installada"),
|
||||
("printer-{}-ready-tip", "S'imprentadora {} est installada e pronta pro s'impreu."),
|
||||
("Install {} Printer", "Installa s'imprentadora {}"),
|
||||
@@ -781,39 +781,47 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Relay fallback delay in seconds", "Tardu prima de impreare su relè in segundos"),
|
||||
("relay-fallback-delay-tip", "Cantu tempus una connessione de relè giai istabilida abetat sa connessione direta WebRTC prima de èssere impreada in su postu suo. Aumenta pro dare prus tempus a una connessione direta lenta; diminuì pro colare prima a su relè in sas retes in ue non si podet fàghere una connessione direta. Lassa bòidu pro su valore predefinidu de 2.5 segundos."),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "Pro aviare una mutida de boghe, ativa in sa pàgina \"Cumpartzi ischermu\" s’elementu \"Catura de s’àudio\"."),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("Keyboard shortcuts", "Curtzadòrgios de tecladu"),
|
||||
("Configure shortcuts...", "Cunfigura sos curtzadòrgios..."),
|
||||
("Enable keyboard shortcuts in remote session", "Abìlita sos curtzadòrgios de tecladu in sa sessione remota"),
|
||||
("shortcut-page-description", "Assòtzia una cumbinatzione de teclas a cada atzione de sessione inoghe in suta. Cada assotziatzione depet incluire a su nessi una tecla modificadora."),
|
||||
("shortcut-passthrough-tip", "Cando est ativu, cada cumbinatzione assotziada benit imbiada a su dispositivu remotu. Ùtile cando un'assotziatzione andat in cunflitu cun calicuna cosa chi t'est netzessària in su dispositivu remotu."),
|
||||
("Pass-through to remote", "Imbia a su dispositivu remotu"),
|
||||
("Reset to defaults", "Reseta a sos valores predefinidos"),
|
||||
("shortcut-reset-confirm-tip", "Custu at a sostituire totu sas assotziatziones atuales cun cussas predefinidas. Boles sighire?"),
|
||||
("Monitor", "Ischermu"),
|
||||
("Keyboard", "Tecladu"),
|
||||
("Toggle fullscreen", "Ativa/disativa s'ischermu intreu"),
|
||||
("Switch to next display", "Cola a s'ischermu imbeniente"),
|
||||
("Switch to previous display", "Cola a s'ischermu pretzedente"),
|
||||
("Switch to next tab", "Cola a s'ischeda imbeniente"),
|
||||
("Switch to previous tab", "Cola a s'ischeda pretzedente"),
|
||||
("Toggle session recording", "Incumintza/firma sa registratzione de sa sessione"),
|
||||
("Close tab", "Serra s'ischeda"),
|
||||
("Toggle toolbar", "Mustra/cua s'istanga de trastes"),
|
||||
("Toggle input source", "Càmbia sa fonte de intrada"),
|
||||
("Edit", "Modìfica"),
|
||||
("Save", "Sarva"),
|
||||
("Set shortcut", "Imposta su curtzadòrgiu"),
|
||||
("shortcut-recording-instruction", "Incarca sa cumbinatzione de teclas chi boles impreare."),
|
||||
("shortcut-recording-press-keys-tip", "Incarca una cumbinatzione de teclas..."),
|
||||
("shortcut-must-include-modifiers", "Depet incluire a su nessi una tecla modificadora: {}"),
|
||||
("shortcut-already-bound-to", "Giai assotziadu a"),
|
||||
("Replace", "Sostitui"),
|
||||
("Valid", "Vàlida"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "Pro registrare unu curtzadòrgiu bisòngiat unu tecladu fìsicu. Sos teclados virtuales no sunt suportados."),
|
||||
("shortcut-key-not-supported", "\"{}\" non podet èssere impreadu comente curtzadòrgiu."),
|
||||
("On", "Ativu"),
|
||||
("Off", "Disativu"),
|
||||
("api_server_connection_tip", "Su serbidore personalizadu tuo impreat HTTP non tzifradu. Pedi a s'amministradore tuo de abilitare HTTPS."),
|
||||
("api_server_empty_tip", "Cun su Serbidore API bòidu, su serbidore personalizadu tuo impreat HTTP de manera predefinida. Pedi a s'amministradore tuo de abilitare HTTPS."),
|
||||
("RustDesk storage", "Archiviatzione de RustDesk"),
|
||||
("Other folders", "Àteras cartellas"),
|
||||
("Choose which folder remote devices can access.", "Issèbera a cale cartella podent atzèdere sos dispositivos remotos."),
|
||||
("android-logs-folder-tip", "Issèbera Android → media pro sarvare sos archìvios de registru."),
|
||||
("Choose folder", "Issèbera sa cartella"),
|
||||
("Please select Android → media.", "Seletziona Android → media."),
|
||||
("Trust duration (days)", "Durada de sa fidùtzia (dies)"),
|
||||
("Renew trust", "Annoa sa fidùtzia"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+45
-37
@@ -763,8 +763,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Lock canvas", "Uzamknúť zobrazenie"),
|
||||
("Sync clipboard between sessions", "Synchronizovať schránku medzi reláciami"),
|
||||
("sync-clipboard-between-sessions-tip", "Text alebo obrázky skopírované v jednej vzdialenej relácii sa odošlú aj do schránky ostatných pripojených relácií."),
|
||||
("terminal-clipboard-write-tip", ""),
|
||||
("Allow terminal apps to copy to clipboard", ""),
|
||||
("terminal-clipboard-write-tip", "Aplikácia v termináli chce skopírovať text do schránky tohto zariadenia. Ak to povolíte, toto povolenie bude platiť pre terminálové aplikácie vo všetkých pripojeniach, kým ho nevypnete v Nastaveniach. Ručné kopírovanie a vkladanie tým nie je ovplyvnené."),
|
||||
("Allow terminal apps to copy to clipboard", "Povoliť terminálovým aplikáciám kopírovať do schránky"),
|
||||
("Enable", "Povoliť"),
|
||||
("Reuse one connection for port forwarding", "Znovu použiť jedno pripojenie na presmerovanie portov"),
|
||||
("port-forward-mux-tip", "Vedie všetky pripojenia jedného presmerovania portov cez jediné pripojenie k druhej strane namiesto opakovaného pripájania a prihlasovania pre každé z nich."),
|
||||
@@ -780,40 +780,48 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("RustDesk could not load a GStreamer component needed for screen capture ({})", "RustDesk nedokázal načítať komponent GStreamera potrebný na zachytenie obrazovky ({})"),
|
||||
("Relay fallback delay in seconds", "Oneskorenie pred prepnutím na prenos v sekundách"),
|
||||
("relay-fallback-delay-tip", "Ako dlho už nadviazané spojenie cez prenos čaká na priame spojenie WebRTC, kým sa použije namiesto neho. Zvýšte, aby pomalé priame spojenie malo viac času; znížte, aby sa v sieťach, kde priame spojenie nie je možné, skôr prešlo na prenos. Nechajte prázdne pre predvolenú hodnotu 2.5 sekundy."),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", ""),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "Ak chcete začať hlasový hovor, povoľte „Snímanie zvuku“ na stránke „Zdielať obrazovku“."),
|
||||
("Keyboard shortcuts", "Klávesové skratky"),
|
||||
("Configure shortcuts...", "Nastaviť skratky..."),
|
||||
("Enable keyboard shortcuts in remote session", "Povoliť klávesové skratky vo vzdialenej relácii"),
|
||||
("shortcut-page-description", "Priraďte kombináciu klávesov ku každej z nižšie uvedených akcií relácie. Každá skratka musí obsahovať aspoň jeden modifikačný kláves."),
|
||||
("shortcut-passthrough-tip", "Keď je zapnuté, každá priradená kombinácia sa odošle vzdialenej strane. Užitočné, keď skratka koliduje s niečím, čo potrebujete na vzdialenej strane."),
|
||||
("Pass-through to remote", "Odosielať vzdialenej strane"),
|
||||
("Reset to defaults", "Obnoviť predvolené"),
|
||||
("shortcut-reset-confirm-tip", "Všetky aktuálne priradenia sa nahradia predvolenou sadou. Pokračovať?"),
|
||||
("Monitor", "Monitor"),
|
||||
("Keyboard", "Klávesnica"),
|
||||
("Toggle fullscreen", "Prepnúť celú obrazovku"),
|
||||
("Switch to next display", "Prepnúť na ďalšiu obrazovku"),
|
||||
("Switch to previous display", "Prepnúť na predchádzajúcu obrazovku"),
|
||||
("Switch to next tab", "Prepnúť na ďalšiu kartu"),
|
||||
("Switch to previous tab", "Prepnúť na predchádzajúcu kartu"),
|
||||
("Toggle session recording", "Spustiť/zastaviť záznam relácie"),
|
||||
("Close tab", "Zatvoriť kartu"),
|
||||
("Toggle toolbar", "Zobraziť/skryť panel nástrojov"),
|
||||
("Toggle input source", "Prepnúť zdroj vstupu"),
|
||||
("Edit", "Upraviť"),
|
||||
("Save", "Uložiť"),
|
||||
("Set shortcut", "Nastaviť skratku"),
|
||||
("shortcut-recording-instruction", "Stlačte kombináciu klávesov, ktorú chcete použiť."),
|
||||
("shortcut-recording-press-keys-tip", "Stlačte kombináciu klávesov..."),
|
||||
("shortcut-must-include-modifiers", "Musí obsahovať aspoň jeden modifikačný kláves: {}"),
|
||||
("shortcut-already-bound-to", "Už priradené akcii"),
|
||||
("Replace", "Nahradiť"),
|
||||
("Valid", "Platná"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "Záznam vyžaduje fyzickú klávesnicu. Softvérové klávesnice nie sú podporované."),
|
||||
("shortcut-key-not-supported", "„{}“ nemožno použiť ako skratku."),
|
||||
("On", "Zapnuté"),
|
||||
("Off", "Vypnuté"),
|
||||
("api_server_connection_tip", "Váš vlastný server používa nešifrovaný HTTP. Ak chcete povoliť HTTPS, kontaktujte svojho správcu."),
|
||||
("api_server_empty_tip", "Ak je API server prázdny, váš vlastný server predvolene používa HTTP. Ak chcete povoliť HTTPS, kontaktujte svojho správcu."),
|
||||
("RustDesk storage", "Úložisko RustDesk"),
|
||||
("Other folders", "Iné priečinky"),
|
||||
("Choose which folder remote devices can access.", "Vyberte priečinok, ku ktorému môžu mať vzdialené zariadenia prístup."),
|
||||
("android-logs-folder-tip", "Na ukladanie súborov protokolu vyberte Android → media."),
|
||||
("Choose folder", "Vybrať priečinok"),
|
||||
("Please select Android → media.", "Vyberte Android → media."),
|
||||
("Trust duration (days)", "Doba dôvery (dni)"),
|
||||
("Renew trust", "Obnoviť dôveru"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+45
-37
@@ -763,8 +763,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Lock canvas", "Zakleni platno"),
|
||||
("Sync clipboard between sessions", "Sinhroniziraj odložišče med sejami"),
|
||||
("sync-clipboard-between-sessions-tip", "Besedilo ali slike, kopirane v eni oddaljeni seji, se pošljejo tudi v odložišče vaših drugih povezanih sej."),
|
||||
("terminal-clipboard-write-tip", ""),
|
||||
("Allow terminal apps to copy to clipboard", ""),
|
||||
("terminal-clipboard-write-tip", "Aplikacija v terminalu želi kopirati besedilo v odložišče te naprave. Če to dovolite, dovoljenje velja za terminalske aplikacije v vseh povezavah, dokler ga ne izklopite v Nastavitvah. Ročno kopiranje in lepljenje ostaneta nespremenjena."),
|
||||
("Allow terminal apps to copy to clipboard", "Dovoli terminalskim aplikacijam kopiranje v odložišče"),
|
||||
("Enable", "Omogoči"),
|
||||
("Reuse one connection for port forwarding", "Ponovno uporabi eno povezavo za posredovanje vrat"),
|
||||
("port-forward-mux-tip", "Vse povezave enega posredovanja vrat potekajo prek ene same povezave do druge strani, namesto ponovnega povezovanja in prijave za vsako od njih."),
|
||||
@@ -780,40 +780,48 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("RustDesk could not load a GStreamer component needed for screen capture ({})", "RustDesk ni mogel naložiti komponente GStreamer, potrebne za zajem zaslona ({})"),
|
||||
("Relay fallback delay in seconds", "Zakasnitev pred preklopom na posrednika v sekundah"),
|
||||
("relay-fallback-delay-tip", "Kako dolgo že vzpostavljena posredniška povezava čaka na neposredno povezavo WebRTC, preden se uporabi namesto nje. Povečajte, da počasni neposredni povezavi date več časa; zmanjšajte, da v omrežjih, kjer neposredna povezava ni mogoča, hitreje preklopite na posrednika. Pustite prazno za privzeto vrednost 2.5 sekunde."),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", ""),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "Za začetek glasovnega klica omogočite „Zajem zvoka“ na strani „Deli zaslon“."),
|
||||
("Keyboard shortcuts", "Bližnjice na tipkovnici"),
|
||||
("Configure shortcuts...", "Nastavi bližnjice..."),
|
||||
("Enable keyboard shortcuts in remote session", "Omogoči bližnjice na tipkovnici v oddaljeni seji"),
|
||||
("shortcut-page-description", "Vsakemu spodnjemu dejanju seje dodelite kombinacijo tipk. Vsaka bližnjica mora vsebovati vsaj eno modifikatorsko tipko."),
|
||||
("shortcut-passthrough-tip", "Ko je vklopljeno, se vsaka dodeljena kombinacija posreduje oddaljeni napravi. Uporabno, ko je bližnjica v sporu s čim, kar potrebujete na oddaljeni napravi."),
|
||||
("Pass-through to remote", "Posreduj oddaljeni napravi"),
|
||||
("Reset to defaults", "Ponastavi na privzeto"),
|
||||
("shortcut-reset-confirm-tip", "Vse trenutne bližnjice bodo zamenjane s privzetimi. Želite nadaljevati?"),
|
||||
("Monitor", "Zaslon"),
|
||||
("Keyboard", "Tipkovnica"),
|
||||
("Toggle fullscreen", "Preklopi celozaslonski način"),
|
||||
("Switch to next display", "Preklopi na naslednji zaslon"),
|
||||
("Switch to previous display", "Preklopi na prejšnji zaslon"),
|
||||
("Switch to next tab", "Preklopi na naslednji zavihek"),
|
||||
("Switch to previous tab", "Preklopi na prejšnji zavihek"),
|
||||
("Toggle session recording", "Začni/ustavi snemanje seje"),
|
||||
("Close tab", "Zapri zavihek"),
|
||||
("Toggle toolbar", "Pokaži/skrij orodno vrstico"),
|
||||
("Toggle input source", "Preklopi vir vnosa"),
|
||||
("Edit", "Uredi"),
|
||||
("Save", "Shrani"),
|
||||
("Set shortcut", "Nastavi bližnjico"),
|
||||
("shortcut-recording-instruction", "Pritisnite kombinacijo tipk, ki jo želite uporabiti."),
|
||||
("shortcut-recording-press-keys-tip", "Pritisnite kombinacijo tipk..."),
|
||||
("shortcut-must-include-modifiers", "Vsebovati mora vsaj eno modifikatorsko tipko: {}"),
|
||||
("shortcut-already-bound-to", "Že dodeljeno dejanju"),
|
||||
("Replace", "Zamenjaj"),
|
||||
("Valid", "Veljavno"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "Snemanje zahteva fizično tipkovnico. Programske tipkovnice niso podprte."),
|
||||
("shortcut-key-not-supported", "„{}“ ni mogoče uporabiti kot bližnjico."),
|
||||
("On", "Vklopljeno"),
|
||||
("Off", "Izklopljeno"),
|
||||
("api_server_connection_tip", "Vaš strežnik po meri uporablja nešifriran HTTP. Za omogočanje HTTPS se obrnite na skrbnika."),
|
||||
("api_server_empty_tip", "Ko je API strežnik prazen, vaš strežnik po meri privzeto uporablja HTTP. Za omogočanje HTTPS se obrnite na skrbnika."),
|
||||
("RustDesk storage", "Shramba RustDesk"),
|
||||
("Other folders", "Druge mape"),
|
||||
("Choose which folder remote devices can access.", "Izberite mapo, do katere lahko dostopajo oddaljene naprave."),
|
||||
("android-logs-folder-tip", "Za shranjevanje dnevniških datotek izberite Android → media."),
|
||||
("Choose folder", "Izberi mapo"),
|
||||
("Please select Android → media.", "Izberite Android → media."),
|
||||
("Trust duration (days)", "Trajanje zaupanja (dni)"),
|
||||
("Renew trust", "Obnovi zaupanje"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+45
-37
@@ -763,8 +763,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Lock canvas", "Kyç canvas"),
|
||||
("Sync clipboard between sessions", "Sinkronizo clipboard-in midis sesioneve"),
|
||||
("sync-clipboard-between-sessions-tip", "Teksti ose imazhet e kopjuara në një sesion të largët dërgohen edhe në clipboard-in e sesioneve të tjera të lidhura."),
|
||||
("terminal-clipboard-write-tip", ""),
|
||||
("Allow terminal apps to copy to clipboard", ""),
|
||||
("terminal-clipboard-write-tip", "Një aplikacion në terminal dëshiron të kopjojë tekst në clipboard-in e kësaj pajisjeje. Nëse e lejoni, kjo leje vlen për aplikacionet e terminalit në të gjitha lidhjet, derisa ta çaktivizoni te Cilësimet. Kopjimi dhe ngjitja manuale nuk ndikohen."),
|
||||
("Allow terminal apps to copy to clipboard", "Lejo aplikacionet e terminalit të kopjojnë në clipboard"),
|
||||
("Enable", "Aktivizo"),
|
||||
("Reuse one connection for port forwarding", "Ripërdor një lidhje për përcjelljen e porteve"),
|
||||
("port-forward-mux-tip", "Të gjitha lidhjet e një përcjelljeje portesh kalojnë përmes një lidhjeje të vetme me kompjuterin tjetër, në vend që të lidhet dhe të hyjë sërish për secilën prej tyre."),
|
||||
@@ -780,40 +780,48 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("RustDesk could not load a GStreamer component needed for screen capture ({})", "RustDesk nuk mundi të ngarkojë një komponent të GStreamer të nevojshëm për regjistrimin e ekranit ({})"),
|
||||
("Relay fallback delay in seconds", "Vonesa para kalimit te releja në sekonda"),
|
||||
("relay-fallback-delay-tip", "Sa gjatë pret një lidhje releje tashmë e vendosur lidhjen e drejtpërdrejtë WebRTC përpara se të përdoret në vend të saj. Rriteni për t'i dhënë më shumë kohë një lidhjeje të drejtpërdrejtë të ngadaltë; uleni për të kaluar më shpejt te releja në rrjete ku lidhja e drejtpërdrejtë nuk është e mundur. Lëreni bosh për vlerën e parazgjedhur prej 2.5 sekondash."),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", ""),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "Për të nisur një telefonatë me zë, aktivizoni \"Kapja e zërit\" në faqen \"Ndaj ekranin\"."),
|
||||
("Keyboard shortcuts", "Shkurtoret e tastierës"),
|
||||
("Configure shortcuts...", "Konfiguro shkurtoret..."),
|
||||
("Enable keyboard shortcuts in remote session", "Aktivizo shkurtoret e tastierës në seancën në distancë"),
|
||||
("shortcut-page-description", "Caktoni një kombinim tastesh për secilin veprim të seancës më poshtë. Çdo caktim duhet të përfshijë të paktën një tast modifikues."),
|
||||
("shortcut-passthrough-tip", "Kur është aktiv, çdo kombinim i caktuar përcillet te pajisja në distancë. E dobishme kur një caktim përplaset me diçka që ju nevojitet në pajisjen në distancë."),
|
||||
("Pass-through to remote", "Përcill te pajisja në distancë"),
|
||||
("Reset to defaults", "Rivendos parazgjedhjet"),
|
||||
("shortcut-reset-confirm-tip", "Kjo do të zëvendësojë të gjitha caktimet aktuale me grupin e parazgjedhur. Të vazhdohet?"),
|
||||
("Monitor", "Ekrani"),
|
||||
("Keyboard", "Tastiera"),
|
||||
("Toggle fullscreen", "Aktivizo/çaktivizo ekranin e plotë"),
|
||||
("Switch to next display", "Kalo te ekrani tjetër"),
|
||||
("Switch to previous display", "Kalo te ekrani i mëparshëm"),
|
||||
("Switch to next tab", "Kalo te skeda tjetër"),
|
||||
("Switch to previous tab", "Kalo te skeda e mëparshme"),
|
||||
("Toggle session recording", "Fillo/ndalo regjistrimin e seancës"),
|
||||
("Close tab", "Mbyll skedën"),
|
||||
("Toggle toolbar", "Shfaq/fshih shiritin e veglave"),
|
||||
("Toggle input source", "Ndërro burimin e hyrjes"),
|
||||
("Edit", "Redakto"),
|
||||
("Save", "Ruaj"),
|
||||
("Set shortcut", "Cakto shkurtoren"),
|
||||
("shortcut-recording-instruction", "Shtypni kombinimin e tasteve që dëshironi të përdorni."),
|
||||
("shortcut-recording-press-keys-tip", "Shtypni një kombinim tastesh..."),
|
||||
("shortcut-must-include-modifiers", "Duhet të përfshijë të paktën një tast modifikues: {}"),
|
||||
("shortcut-already-bound-to", "Tashmë i caktuar për"),
|
||||
("Replace", "Zëvendëso"),
|
||||
("Valid", "I vlefshëm"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "Regjistrimi i shkurtoreve kërkon një tastierë fizike. Tastierat në ekran nuk mbështeten."),
|
||||
("shortcut-key-not-supported", "\"{}\" nuk mund të përdoret si shkurtore."),
|
||||
("On", "Aktiv"),
|
||||
("Off", "Joaktiv"),
|
||||
("api_server_connection_tip", "Serveri juaj i personalizuar përdor HTTP të pakriptuar. Kontaktoni administratorin tuaj për të aktivizuar HTTPS."),
|
||||
("api_server_empty_tip", "Kur Serveri API është bosh, serveri juaj i personalizuar përdor HTTP si parazgjedhje. Kontaktoni administratorin tuaj për të aktivizuar HTTPS."),
|
||||
("RustDesk storage", "Hapësira ruajtëse e RustDesk"),
|
||||
("Other folders", "Dosje të tjera"),
|
||||
("Choose which folder remote devices can access.", "Zgjidhni cilën dosje mund të aksesojnë pajisjet në distancë."),
|
||||
("android-logs-folder-tip", "Zgjidhni Android → media për të ruajtur skedarët e regjistrave."),
|
||||
("Choose folder", "Zgjidh dosjen"),
|
||||
("Please select Android → media.", "Ju lutemi zgjidhni Android → media."),
|
||||
("Trust duration (days)", "Kohëzgjatja e besimit (ditë)"),
|
||||
("Renew trust", "Rinovo besimin"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+45
-37
@@ -763,8 +763,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Lock canvas", "Zaključaj pozadinu"),
|
||||
("Sync clipboard between sessions", "Sinhronizuj klipbord između sesija"),
|
||||
("sync-clipboard-between-sessions-tip", "Tekst ili slike kopirane u jednoj udaljenoj sesiji šalju se i u klipbord vaših ostalih povezanih sesija."),
|
||||
("terminal-clipboard-write-tip", ""),
|
||||
("Allow terminal apps to copy to clipboard", ""),
|
||||
("terminal-clipboard-write-tip", "Aplikacija u terminalu želi da kopira tekst u klipbord ovog uređaja. Ako se odobri, ova dozvola važi za terminalske aplikacije u svim konekcijama dok je ne isključite u Postavkama. Ručno kopiranje i lepljenje nisu pogođeni."),
|
||||
("Allow terminal apps to copy to clipboard", "Dozvoli terminalskim aplikacijama da kopiraju u klipbord"),
|
||||
("Enable", "Omogući"),
|
||||
("Reuse one connection for port forwarding", "Ponovo koristi jednu vezu za prosleđivanje portova"),
|
||||
("port-forward-mux-tip", "Sve veze jednog prosleđivanja portova idu kroz jednu vezu ka drugoj strani, umesto povezivanja i prijavljivanja iznova za svaku od njih."),
|
||||
@@ -780,40 +780,48 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("RustDesk could not load a GStreamer component needed for screen capture ({})", "RustDesk nije mogao da učita GStreamer komponentu potrebnu za snimanje ekrana ({})"),
|
||||
("Relay fallback delay in seconds", "Кашњење пре преласка на релеј у секундама"),
|
||||
("relay-fallback-delay-tip", "Колико дуго већ успостављена релејна веза чека на директну WebRTC везу пре него што се употреби уместо ње. Повећајте да бисте спорој директној вези дали више времена; смањите да бисте на мрежама где директна веза није могућа брже прешли на релеј. Оставите празно за подразумевану вредност од 2.5 секунде."),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", ""),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "Da biste započeli glasovni poziv, omogućite „Snimanje zvuka“ na stranici „Podeli ekran“."),
|
||||
("Keyboard shortcuts", "Prečice na tastaturi"),
|
||||
("Configure shortcuts...", "Podesi prečice..."),
|
||||
("Enable keyboard shortcuts in remote session", "Omogući prečice na tastaturi u udaljenoj sesiji"),
|
||||
("shortcut-page-description", "Dodelite kombinaciju tastera svakoj radnji sesije ispod. Svaka dodela mora da sadrži bar jedan modifikator."),
|
||||
("shortcut-passthrough-tip", "Kada je uključeno, svaka dodeljena kombinacija se prosleđuje udaljenom uređaju. Korisno kada se dodela poklapa sa nečim što vam treba na udaljenom uređaju."),
|
||||
("Pass-through to remote", "Prosledi udaljenom uređaju"),
|
||||
("Reset to defaults", "Vrati na podrazumevano"),
|
||||
("shortcut-reset-confirm-tip", "Ovo će zameniti sve trenutne dodele podrazumevanim skupom. Nastaviti?"),
|
||||
("Monitor", "Monitor"),
|
||||
("Keyboard", "Tastatura"),
|
||||
("Toggle fullscreen", "Uključi/isključi ceo ekran"),
|
||||
("Switch to next display", "Pređi na sledeći ekran"),
|
||||
("Switch to previous display", "Pređi na prethodni ekran"),
|
||||
("Switch to next tab", "Pređi na sledeću karticu"),
|
||||
("Switch to previous tab", "Pređi na prethodnu karticu"),
|
||||
("Toggle session recording", "Uključi/isključi snimanje sesije"),
|
||||
("Close tab", "Zatvori karticu"),
|
||||
("Toggle toolbar", "Uključi/isključi traku alata"),
|
||||
("Toggle input source", "Promeni izvor unosa"),
|
||||
("Edit", "Izmeni"),
|
||||
("Save", "Sačuvaj"),
|
||||
("Set shortcut", "Postavi prečicu"),
|
||||
("shortcut-recording-instruction", "Pritisnite kombinaciju tastera koju želite da koristite."),
|
||||
("shortcut-recording-press-keys-tip", "Pritisnite kombinaciju tastera..."),
|
||||
("shortcut-must-include-modifiers", "Mora da sadrži bar jedan modifikator: {}"),
|
||||
("shortcut-already-bound-to", "Već dodeljeno za"),
|
||||
("Replace", "Zameni"),
|
||||
("Valid", "Ispravno"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "Snimanje zahteva fizičku tastaturu. Softverske tastature nisu podržane."),
|
||||
("shortcut-key-not-supported", "„{}“ ne može da se koristi kao prečica."),
|
||||
("On", "Uključeno"),
|
||||
("Off", "Isključeno"),
|
||||
("api_server_connection_tip", "Vaš prilagođeni server koristi nekriptovani HTTP. Obratite se administratoru da omogući HTTPS."),
|
||||
("api_server_empty_tip", "Kada je polje „API server“ prazno, vaš prilagođeni server podrazumevano koristi HTTP. Obratite se administratoru da omogući HTTPS."),
|
||||
("RustDesk storage", "RustDesk skladište"),
|
||||
("Other folders", "Ostali direktorijumi"),
|
||||
("Choose which folder remote devices can access.", "Izaberite direktorijum kojem udaljeni uređaji mogu da pristupe."),
|
||||
("android-logs-folder-tip", "Izaberite Android → media za čuvanje datoteka dnevnika."),
|
||||
("Choose folder", "Izaberi direktorijum"),
|
||||
("Please select Android → media.", "Izaberite Android → media."),
|
||||
("Trust duration (days)", "Trajanje poverenja (dani)"),
|
||||
("Renew trust", "Obnovi poverenje"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+45
-37
@@ -763,8 +763,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Lock canvas", "Lås canvas"),
|
||||
("Sync clipboard between sessions", "Synkronisera urklipp mellan sessioner"),
|
||||
("sync-clipboard-between-sessions-tip", "Text eller bilder som kopieras i en fjärrsession skickas även till urklipp i dina andra anslutna sessioner."),
|
||||
("terminal-clipboard-write-tip", ""),
|
||||
("Allow terminal apps to copy to clipboard", ""),
|
||||
("terminal-clipboard-write-tip", "En app i terminalen vill kopiera text till urklippet på denna enhet. Om du tillåter det gäller behörigheten för terminalappar i alla anslutningar tills du stänger av den i Inställningar. Manuell kopiering och inklistring påverkas inte."),
|
||||
("Allow terminal apps to copy to clipboard", "Tillåt terminalappar att kopiera till urklipp"),
|
||||
("Enable", "Aktivera"),
|
||||
("Reuse one connection for port forwarding", "Återanvänd en anslutning för portvidarebefordran"),
|
||||
("port-forward-mux-tip", "Låt alla anslutningar i en portvidarebefordran gå via en enda anslutning till motparten, i stället för att ansluta och logga in på nytt för varje anslutning."),
|
||||
@@ -780,40 +780,48 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("RustDesk could not load a GStreamer component needed for screen capture ({})", "RustDesk kunde inte läsa in en GStreamer-komponent som krävs för skärminspelning ({})"),
|
||||
("Relay fallback delay in seconds", "Fördröjning innan relä används i sekunder"),
|
||||
("relay-fallback-delay-tip", "Hur länge en redan upprättad reläanslutning väntar på den direkta WebRTC-anslutningen innan den används i stället. Öka värdet för att ge en långsam direktanslutning mer tid; sänk det för att snabbare falla tillbaka på reläet i nätverk där direktanslutning inte är möjlig. Lämna tomt för standardvärdet 2.5 sekunder."),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", ""),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "Aktivera ”Ljudinspelning” på sidan ”Dela skärm” för att starta ett röstsamtal."),
|
||||
("Keyboard shortcuts", "Kortkommandon"),
|
||||
("Configure shortcuts...", "Konfigurera kortkommandon..."),
|
||||
("Enable keyboard shortcuts in remote session", "Aktivera kortkommandon i fjärrsessionen"),
|
||||
("shortcut-page-description", "Koppla en tangentkombination till varje sessionsåtgärd nedan. Varje kombination måste innehålla minst en modifieringstangent."),
|
||||
("shortcut-passthrough-tip", "När detta är på vidarebefordras alla tilldelade kombinationer till fjärrenheten. Användbart när en kombination krockar med något du behöver på fjärrenheten."),
|
||||
("Pass-through to remote", "Skicka vidare till fjärrenheten"),
|
||||
("Reset to defaults", "Återställ till standard"),
|
||||
("shortcut-reset-confirm-tip", "Detta ersätter alla nuvarande kortkommandon med standarduppsättningen. Vill du fortsätta?"),
|
||||
("Monitor", "Skärm"),
|
||||
("Keyboard", "Tangentbord"),
|
||||
("Toggle fullscreen", "Växla fullskärm"),
|
||||
("Switch to next display", "Byt till nästa skärm"),
|
||||
("Switch to previous display", "Byt till föregående skärm"),
|
||||
("Switch to next tab", "Byt till nästa flik"),
|
||||
("Switch to previous tab", "Byt till föregående flik"),
|
||||
("Toggle session recording", "Starta/stoppa sessionsinspelning"),
|
||||
("Close tab", "Stäng flik"),
|
||||
("Toggle toolbar", "Visa/dölj verktygsfältet"),
|
||||
("Toggle input source", "Växla inmatningskälla"),
|
||||
("Edit", "Redigera"),
|
||||
("Save", "Spara"),
|
||||
("Set shortcut", "Ange kortkommando"),
|
||||
("shortcut-recording-instruction", "Tryck på den tangentkombination du vill använda."),
|
||||
("shortcut-recording-press-keys-tip", "Tryck på en tangentkombination..."),
|
||||
("shortcut-must-include-modifiers", "Måste innehålla minst en modifieringstangent: {}"),
|
||||
("shortcut-already-bound-to", "Redan kopplad till"),
|
||||
("Replace", "Ersätt"),
|
||||
("Valid", "Giltig"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "Inspelning kräver ett fysiskt tangentbord. Skärmtangentbord stöds inte."),
|
||||
("shortcut-key-not-supported", "”{}” kan inte användas som kortkommando."),
|
||||
("On", "På"),
|
||||
("Off", "Av"),
|
||||
("api_server_connection_tip", "Din anpassade server använder okrypterad HTTP. Kontakta din administratör för att aktivera HTTPS."),
|
||||
("api_server_empty_tip", "När API Server är tom använder din anpassade server HTTP som standard. Kontakta din administratör för att aktivera HTTPS."),
|
||||
("RustDesk storage", "RustDesk-lagring"),
|
||||
("Other folders", "Andra mappar"),
|
||||
("Choose which folder remote devices can access.", "Välj vilken mapp fjärrenheter kan komma åt."),
|
||||
("android-logs-folder-tip", "Välj Android → media för att lagra loggfiler."),
|
||||
("Choose folder", "Välj mapp"),
|
||||
("Please select Android → media.", "Välj Android → media."),
|
||||
("Trust duration (days)", "Förtroendeperiod (dagar)"),
|
||||
("Renew trust", "Förnya förtroende"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+45
-37
@@ -763,8 +763,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Lock canvas", "கேன்வாஸைப் பூட்டு"),
|
||||
("Sync clipboard between sessions", "அமர்வுகளுக்கு இடையே கிளிப்போர்டை ஒத்திசைக்கவும்"),
|
||||
("sync-clipboard-between-sessions-tip", "ஒரு தொலை அமர்வில் நகலெடுக்கப்பட்ட உரை அல்லது படங்கள் உங்கள் பிற இணைக்கப்பட்ட அமர்வுகளின் கிளிப்போர்டுக்கும் அனுப்பப்படும்."),
|
||||
("terminal-clipboard-write-tip", ""),
|
||||
("Allow terminal apps to copy to clipboard", ""),
|
||||
("terminal-clipboard-write-tip", "முனையத்தில் உள்ள ஒரு செயலி இந்தச் சாதனத்தின் கிளிப்போர்டுக்கு உரையை நகலெடுக்க விரும்புகிறது. அனுமதித்தால், அமைப்புகளில் நீங்கள் இதை முடக்கும் வரை இந்த அனுமதி எல்லா இணைப்புகளிலும் உள்ள முனையச் செயலிகளுக்குப் பொருந்தும். கைமுறையாக நகலெடுத்து ஒட்டுவது பாதிக்கப்படாது."),
|
||||
("Allow terminal apps to copy to clipboard", "முனையச் செயலிகள் கிளிப்போர்டுக்கு நகலெடுக்க அனுமதி"),
|
||||
("Enable", "இயக்கு"),
|
||||
("Reuse one connection for port forwarding", "போர்ட் ஃபார்வேர்டிங்கிற்கு ஒரே இணைப்பை மீண்டும் பயன்படுத்து"),
|
||||
("port-forward-mux-tip", "ஒரு போர்ட் ஃபார்வேர்டிங்கின் அனைத்து இணைப்புகளும் மறுமுனைக்கான ஒரே இணைப்பின் வழியாகச் செல்லும், ஒவ்வொன்றுக்கும் மீண்டும் இணைந்து உள்நுழைவதற்குப் பதிலாக."),
|
||||
@@ -780,40 +780,48 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("RustDesk could not load a GStreamer component needed for screen capture ({})", "திரைப் பதிவுக்குத் தேவையான GStreamer கூறை RustDesk ஏற்ற முடியவில்லை ({})"),
|
||||
("Relay fallback delay in seconds", "ரிலேக்கு மாறுவதற்கான தாமதம் வினாடிகளில்"),
|
||||
("relay-fallback-delay-tip", "ஏற்கனவே நிறுவப்பட்ட ரிலே இணைப்பு நேரடி WebRTC இணைப்புக்காக எவ்வளவு நேரம் காத்திருக்கிறது, அதன் பிறகு அதற்குப் பதிலாகப் பயன்படுத்தப்படுகிறது. மெதுவான நேரடி இணைப்புக்கு அதிக நேரம் வழங்க அதிகரிக்கவும்; நேரடி இணைப்பு சாத்தியமில்லாத பிணையங்களில் விரைவாக ரிலேக்கு மாற குறைக்கவும். இயல்புநிலை 2.5 வினாடிகளுக்கு காலியாக விடவும்."),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", ""),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "குரல் அழைப்பைத் தொடங்க, “திரையைப் பகிர்” பக்கத்தில் “ஒலி பிடிப்பு” என்பதை இயக்கவும்."),
|
||||
("Keyboard shortcuts", "விசைப்பலகை குறுக்குவழிகள்"),
|
||||
("Configure shortcuts...", "குறுக்குவழிகளை உள்ளமை..."),
|
||||
("Enable keyboard shortcuts in remote session", "தொலைநிலை அமர்வில் விசைப்பலகை குறுக்குவழிகளை இயக்கு"),
|
||||
("shortcut-page-description", "கீழே உள்ள ஒவ்வொரு அமர்வுச் செயலுக்கும் ஒரு விசைச் சேர்க்கையை ஒதுக்கவும். ஒவ்வொரு சேர்க்கையிலும் குறைந்தது ஒரு மாற்றி விசை இருக்க வேண்டும்."),
|
||||
("shortcut-passthrough-tip", "இயக்கத்தில் இருக்கும்போது, ஒதுக்கப்பட்ட ஒவ்வொரு சேர்க்கையும் தொலைநிலைக்கு அனுப்பப்படும். ஒரு குறுக்குவழி தொலைநிலையில் உங்களுக்குத் தேவையான ஒன்றுடன் மோதும்போது இது பயனுள்ளதாக இருக்கும்."),
|
||||
("Pass-through to remote", "தொலைநிலைக்கு நேரடியாக அனுப்பு"),
|
||||
("Reset to defaults", "இயல்புநிலைக்கு மீட்டமை"),
|
||||
("shortcut-reset-confirm-tip", "இது தற்போதைய எல்லா குறுக்குவழிகளையும் இயல்புநிலைத் தொகுப்பால் மாற்றும். தொடரவா?"),
|
||||
("Monitor", "திரை"),
|
||||
("Keyboard", "விசைப்பலகை"),
|
||||
("Toggle fullscreen", "முழுத்திரையை நிலைமாற்று"),
|
||||
("Switch to next display", "அடுத்த திரைக்கு மாறு"),
|
||||
("Switch to previous display", "முந்தைய திரைக்கு மாறு"),
|
||||
("Switch to next tab", "அடுத்த தாவலுக்கு மாறு"),
|
||||
("Switch to previous tab", "முந்தைய தாவலுக்கு மாறு"),
|
||||
("Toggle session recording", "அமர்வு பதிவை நிலைமாற்று"),
|
||||
("Close tab", "தாவலை மூடு"),
|
||||
("Toggle toolbar", "கருவிப்பட்டியை நிலைமாற்று"),
|
||||
("Toggle input source", "உள்ளீட்டு மூலத்தை நிலைமாற்று"),
|
||||
("Edit", "திருத்து"),
|
||||
("Save", "சேமி"),
|
||||
("Set shortcut", "குறுக்குவழியை அமை"),
|
||||
("shortcut-recording-instruction", "நீங்கள் பயன்படுத்த விரும்பும் விசைச் சேர்க்கையை அழுத்தவும்."),
|
||||
("shortcut-recording-press-keys-tip", "ஒரு விசைச் சேர்க்கையை அழுத்தவும்..."),
|
||||
("shortcut-must-include-modifiers", "குறைந்தது ஒரு மாற்றி விசை இருக்க வேண்டும்: {}"),
|
||||
("shortcut-already-bound-to", "ஏற்கனவே இதற்கு ஒதுக்கப்பட்டுள்ளது"),
|
||||
("Replace", "மாற்றீடு செய்"),
|
||||
("Valid", "செல்லுபடியானது"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "குறுக்குவழியைப் பதிவு செய்ய இயற்பியல் விசைப்பலகை தேவை. திரை விசைப்பலகைகள் ஆதரிக்கப்படவில்லை."),
|
||||
("shortcut-key-not-supported", "“{}” ஐக் குறுக்குவழியாகப் பயன்படுத்த முடியாது."),
|
||||
("On", "இயக்கத்தில்"),
|
||||
("Off", "முடக்கத்தில்"),
|
||||
("api_server_connection_tip", "உங்கள் தனிப்பயன் சர்வர் மறைகுறியாக்கப்படாத HTTP-ஐப் பயன்படுத்துகிறது. HTTPS-ஐ இயக்க உங்கள் நிர்வாகியைத் தொடர்பு கொள்ளவும்."),
|
||||
("api_server_empty_tip", "API சர்வர் காலியாக இருக்கும்போது, உங்கள் தனிப்பயன் சர்வர் இயல்பாக HTTP-ஐப் பயன்படுத்தும். HTTPS-ஐ இயக்க உங்கள் நிர்வாகியைத் தொடர்பு கொள்ளவும்."),
|
||||
("RustDesk storage", "RustDesk சேமிப்பகம்"),
|
||||
("Other folders", "பிற கோப்புறைகள்"),
|
||||
("Choose which folder remote devices can access.", "தொலைநிலைச் சாதனங்கள் எந்தக் கோப்புறையை அணுகலாம் என்பதைத் தேர்ந்தெடுக்கவும்."),
|
||||
("android-logs-folder-tip", "பதிவுக் கோப்புகளைச் சேமிக்க Android → media என்பதைத் தேர்ந்தெடுக்கவும்."),
|
||||
("Choose folder", "கோப்புறையைத் தேர்ந்தெடு"),
|
||||
("Please select Android → media.", "Android → media என்பதைத் தேர்ந்தெடுக்கவும்."),
|
||||
("Trust duration (days)", "நம்பிக்கைக் காலம் (நாட்கள்)"),
|
||||
("Renew trust", "நம்பிக்கையைப் புதுப்பி"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
@@ -815,5 +815,13 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Off", ""),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("RustDesk storage", ""),
|
||||
("Other folders", ""),
|
||||
("Choose which folder remote devices can access.", ""),
|
||||
("android-logs-folder-tip", ""),
|
||||
("Choose folder", ""),
|
||||
("Please select Android → media.", ""),
|
||||
("Trust duration (days)", ""),
|
||||
("Renew trust", ""),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+45
-37
@@ -763,8 +763,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Lock canvas", "ล็อคแคนวาส"),
|
||||
("Sync clipboard between sessions", "ซิงค์คลิปบอร์ดระหว่างเซสชัน"),
|
||||
("sync-clipboard-between-sessions-tip", "ข้อความหรือรูปภาพที่คัดลอกในเซสชันระยะไกลหนึ่งจะถูกส่งไปยังคลิปบอร์ดของเซสชันอื่นที่เชื่อมต่ออยู่ด้วย"),
|
||||
("terminal-clipboard-write-tip", ""),
|
||||
("Allow terminal apps to copy to clipboard", ""),
|
||||
("terminal-clipboard-write-tip", "แอปในเทอร์มินัลต้องการคัดลอกข้อความไปยังคลิปบอร์ดของอุปกรณ์นี้ หากอนุญาต สิทธิ์นี้จะมีผลกับแอปในเทอร์มินัลในทุกการเชื่อมต่อจนกว่าคุณจะปิดในหน้าตั้งค่า การคัดลอกและวางด้วยตนเองจะไม่ได้รับผลกระทบ"),
|
||||
("Allow terminal apps to copy to clipboard", "อนุญาตให้แอปในเทอร์มินัลคัดลอกไปยังคลิปบอร์ด"),
|
||||
("Enable", "เปิดใช้งาน"),
|
||||
("Reuse one connection for port forwarding", "ใช้การเชื่อมต่อเดียวร่วมกันสำหรับการส่งต่อพอร์ต"),
|
||||
("port-forward-mux-tip", "ส่งการเชื่อมต่อทั้งหมดของการส่งต่อพอร์ตหนึ่งรายการผ่านการเชื่อมต่อเดียวไปยังอีกฝ่าย แทนการเชื่อมต่อและเข้าสู่ระบบใหม่ทุกครั้ง"),
|
||||
@@ -780,40 +780,48 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("RustDesk could not load a GStreamer component needed for screen capture ({})", "RustDesk ไม่สามารถโหลดส่วนประกอบ GStreamer ที่จำเป็นสำหรับการบันทึกหน้าจอได้ ({})"),
|
||||
("Relay fallback delay in seconds", "เวลารอก่อนเปลี่ยนไปใช้รีเลย์ (วินาที)"),
|
||||
("relay-fallback-delay-tip", "การเชื่อมต่อผ่านรีเลย์ที่สร้างไว้แล้วจะรอการเชื่อมต่อ WebRTC โดยตรงนานเท่าใดก่อนที่จะถูกใช้แทน เพิ่มค่าเพื่อให้การเชื่อมต่อโดยตรงที่ช้ามีเวลามากขึ้น ลดค่าเพื่อเปลี่ยนไปใช้รีเลย์เร็วขึ้นในเครือข่ายที่ไม่สามารถเชื่อมต่อโดยตรงได้ เว้นว่างไว้เพื่อใช้ค่าเริ่มต้น 2.5 วินาที"),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", ""),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("api_server_connection_tip", ""),
|
||||
("api_server_empty_tip", ""),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "หากต้องการเริ่มการโทรด้วยเสียง ให้เปิดใช้งาน “บันทึกเสียง” ในหน้า “แชร์หน้าจอ”"),
|
||||
("Keyboard shortcuts", "คีย์ลัด"),
|
||||
("Configure shortcuts...", "กำหนดค่าคีย์ลัด..."),
|
||||
("Enable keyboard shortcuts in remote session", "เปิดใช้งานคีย์ลัดในเซสชันปลายทาง"),
|
||||
("shortcut-page-description", "กำหนดชุดปุ่มให้กับแต่ละการดำเนินการของเซสชันด้านล่าง แต่ละชุดปุ่มต้องมีปุ่มปรับแต่ง (Modifier) อย่างน้อยหนึ่งปุ่ม"),
|
||||
("shortcut-passthrough-tip", "เมื่อเปิดอยู่ ชุดปุ่มที่กำหนดไว้ทั้งหมดจะถูกส่งต่อไปยังปลายทาง มีประโยชน์เมื่อคีย์ลัดชนกับปุ่มที่คุณต้องใช้บนปลายทาง"),
|
||||
("Pass-through to remote", "ส่งผ่านไปยังปลายทาง"),
|
||||
("Reset to defaults", "รีเซ็ตเป็นค่าเริ่มต้น"),
|
||||
("shortcut-reset-confirm-tip", "การดำเนินการนี้จะแทนที่คีย์ลัดทั้งหมดในปัจจุบันด้วยชุดค่าเริ่มต้น ดำเนินการต่อหรือไม่?"),
|
||||
("Monitor", "จอภาพ"),
|
||||
("Keyboard", "คีย์บอร์ด"),
|
||||
("Toggle fullscreen", "สลับโหมดเต็มหน้าจอ"),
|
||||
("Switch to next display", "สลับไปจอแสดงผลถัดไป"),
|
||||
("Switch to previous display", "สลับไปจอแสดงผลก่อนหน้า"),
|
||||
("Switch to next tab", "สลับไปแท็บถัดไป"),
|
||||
("Switch to previous tab", "สลับไปแท็บก่อนหน้า"),
|
||||
("Toggle session recording", "เริ่ม/หยุดการบันทึกเซสชัน"),
|
||||
("Close tab", "ปิดแท็บ"),
|
||||
("Toggle toolbar", "แสดง/ซ่อนแถบเครื่องมือ"),
|
||||
("Toggle input source", "สลับแหล่งอินพุต"),
|
||||
("Edit", "แก้ไข"),
|
||||
("Save", "บันทึก"),
|
||||
("Set shortcut", "ตั้งคีย์ลัด"),
|
||||
("shortcut-recording-instruction", "กดชุดปุ่มที่คุณต้องการใช้"),
|
||||
("shortcut-recording-press-keys-tip", "กดชุดปุ่ม..."),
|
||||
("shortcut-must-include-modifiers", "ต้องมีปุ่มปรับแต่งอย่างน้อยหนึ่งปุ่ม: {}"),
|
||||
("shortcut-already-bound-to", "ถูกใช้แล้วโดย"),
|
||||
("Replace", "แทนที่"),
|
||||
("Valid", "ใช้ได้"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "การบันทึกคีย์ลัดต้องใช้คีย์บอร์ดจริง ไม่รองรับคีย์บอร์ดบนหน้าจอ"),
|
||||
("shortcut-key-not-supported", "ไม่สามารถใช้ “{}” เป็นคีย์ลัดได้"),
|
||||
("On", "เปิด"),
|
||||
("Off", "ปิด"),
|
||||
("api_server_connection_tip", "เซิร์ฟเวอร์ที่กำหนดเองของคุณใช้ HTTP ที่ไม่มีการเข้ารหัส โปรดติดต่อผู้ดูแลระบบของคุณเพื่อเปิดใช้งาน HTTPS"),
|
||||
("api_server_empty_tip", "เมื่อเว้นว่างเซิร์ฟเวอร์ API ไว้ เซิร์ฟเวอร์ที่กำหนดเองของคุณจะใช้ HTTP เป็นค่าเริ่มต้น โปรดติดต่อผู้ดูแลระบบของคุณเพื่อเปิดใช้งาน HTTPS"),
|
||||
("RustDesk storage", "พื้นที่จัดเก็บของ RustDesk"),
|
||||
("Other folders", "โฟลเดอร์อื่น"),
|
||||
("Choose which folder remote devices can access.", "เลือกโฟลเดอร์ที่อุปกรณ์ปลายทางสามารถเข้าถึงได้"),
|
||||
("android-logs-folder-tip", "เลือก Android → media เพื่อจัดเก็บไฟล์ล็อก"),
|
||||
("Choose folder", "เลือกโฟลเดอร์"),
|
||||
("Please select Android → media.", "กรุณาเลือก Android → media"),
|
||||
("Trust duration (days)", "ระยะเวลาการเชื่อถือ (วัน)"),
|
||||
("Renew trust", "ต่ออายุการเชื่อถือ"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user