traditional chinese

This commit is contained in:
rustdesk 2022-02-12 11:50:39 +08:00
parent a4d34aacea
commit d87f29c679
3 changed files with 4 additions and 1 deletions

View File

@ -5,6 +5,7 @@ mod cn;
mod en; mod en;
mod fr; mod fr;
mod it; mod it;
mod tw;
#[cfg(not(any(target_os = "android", target_os = "ios")))] #[cfg(not(any(target_os = "android", target_os = "ios")))]
pub fn translate(name: String) -> String { pub fn translate(name: String) -> String {
@ -28,6 +29,7 @@ pub fn translate_locale(name: String, locale: &str) -> String {
"fr" => fr::T.deref(), "fr" => fr::T.deref(),
"cn" => cn::T.deref(), "cn" => cn::T.deref(),
"it" => it::T.deref(), "it" => it::T.deref(),
"tw" => tw::T.deref(),
_ => en::T.deref(), _ => en::T.deref(),
}; };
if let Some(v) = m.get(&name as &str) { if let Some(v) = m.get(&name as &str) {

View File

@ -15,6 +15,7 @@ pub mod macos;
pub mod linux; pub mod linux;
use hbb_common::{message_proto::CursorData, ResultType}; use hbb_common::{message_proto::CursorData, ResultType};
#[cfg(not(target_os = "macos"))]
const SERVICE_INTERVAL: u64 = 300; const SERVICE_INTERVAL: u64 = 300;
pub fn is_xfce() -> bool { pub fn is_xfce() -> bool {

View File

@ -174,7 +174,7 @@ impl Connection {
}, },
); );
let handler_input = std::thread::spawn(move || Self::handle_input(rx_input, tx_cloned)); std::thread::spawn(move || Self::handle_input(rx_input, tx_cloned));
loop { loop {
tokio::select! { tokio::select! {