mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-27 23:19:02 +08:00
add translations
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
d339fd178b
commit
99ad6254c1
@ -1023,15 +1023,16 @@ class _ResolutionsMenuState extends State<_ResolutionsMenu> {
|
||||
final showFitLocalBtn = !_isRemoteResolutionFitLocal();
|
||||
|
||||
return _SubmenuButton(
|
||||
ffi: widget.ffi,
|
||||
menuChildren: <Widget>[
|
||||
_OriginalResolutionMenuButton(showOriginalBtn),
|
||||
_FitLocalResolutionMenuButton(showFitLocalBtn),
|
||||
// _customResolutionMenuButton(isVirtualDisplay),
|
||||
_menuDivider(showOriginalBtn, showFitLocalBtn, isVirtualDisplay),
|
||||
] +
|
||||
_supportedResolutionMenuButtons(),
|
||||
child: Text(translate("Resolution")));
|
||||
ffi: widget.ffi,
|
||||
menuChildren: <Widget>[
|
||||
_OriginalResolutionMenuButton(showOriginalBtn),
|
||||
_FitLocalResolutionMenuButton(showFitLocalBtn),
|
||||
// _customResolutionMenuButton(isVirtualDisplay),
|
||||
_menuDivider(showOriginalBtn, showFitLocalBtn, isVirtualDisplay),
|
||||
] +
|
||||
_supportedResolutionMenuButtons(),
|
||||
child: Text(translate("Resolution")),
|
||||
);
|
||||
}
|
||||
|
||||
_menuDivider(
|
||||
@ -1094,7 +1095,7 @@ class _ResolutionsMenuState extends State<_ResolutionsMenu> {
|
||||
_changeResolution(display.originalWidth, display.originalHeight),
|
||||
ffi: widget.ffi,
|
||||
child: Text(
|
||||
'${translate('Original')} ${display.originalWidth}x${display.originalHeight}'),
|
||||
'${translate('resolution_original_tip')} ${display.originalWidth}x${display.originalHeight}'),
|
||||
),
|
||||
);
|
||||
}
|
||||
@ -1111,7 +1112,7 @@ class _ResolutionsMenuState extends State<_ResolutionsMenu> {
|
||||
},
|
||||
ffi: widget.ffi,
|
||||
child: Text(
|
||||
'${translate('Fit Local')} ${_localResolution?.width ?? 0}x${_localResolution?.height ?? 0}'),
|
||||
'${translate('resolution_fit_local_tip')} ${_localResolution?.width ?? 0}x${_localResolution?.height ?? 0}'),
|
||||
),
|
||||
);
|
||||
}
|
||||
@ -1131,8 +1132,8 @@ class _ResolutionsMenuState extends State<_ResolutionsMenu> {
|
||||
child: MenuButton(
|
||||
onPressed: () => _customResolutionDialog(),
|
||||
ffi: widget.ffi,
|
||||
child:
|
||||
Text('${translate('Custom')} ${display.width}x${display.height}'),
|
||||
child: Text(
|
||||
'${translate('resolution_custom_tip')} ${display.width}x${display.height}'),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
@ -36,7 +36,7 @@ def main():
|
||||
|
||||
|
||||
def expand():
|
||||
for fn in glob.glob('./src/lang/*'):
|
||||
for fn in glob.glob('./src/lang/*.rs'):
|
||||
lang = os.path.basename(fn)[:-3]
|
||||
if lang in ['en','template']: continue
|
||||
print(lang)
|
||||
|
@ -506,5 +506,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Enable", ""),
|
||||
("Disable", ""),
|
||||
("Options", ""),
|
||||
("resolution_original_tip", ""),
|
||||
("resolution_fit_local_tip", ""),
|
||||
("resolution_custom_tip", ""),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
@ -506,5 +506,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Enable", "启用"),
|
||||
("Disable", "禁用"),
|
||||
("Options", "选项"),
|
||||
("resolution_original_tip", "原始分辨率"),
|
||||
("resolution_fit_local_tip", "适应本地分辨率"),
|
||||
("resolution_custom_tip", "自定义分辨率"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
@ -506,5 +506,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Enable", ""),
|
||||
("Disable", ""),
|
||||
("Options", ""),
|
||||
("resolution_original_tip", ""),
|
||||
("resolution_fit_local_tip", ""),
|
||||
("resolution_custom_tip", ""),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
@ -506,5 +506,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Enable", ""),
|
||||
("Disable", ""),
|
||||
("Options", ""),
|
||||
("resolution_original_tip", ""),
|
||||
("resolution_fit_local_tip", ""),
|
||||
("resolution_custom_tip", ""),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
@ -506,5 +506,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Enable", "Aktivieren"),
|
||||
("Disable", "Deaktivieren"),
|
||||
("Options", "Einstellungen"),
|
||||
("resolution_original_tip", ""),
|
||||
("resolution_fit_local_tip", ""),
|
||||
("resolution_custom_tip", ""),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
@ -506,5 +506,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Enable", ""),
|
||||
("Disable", ""),
|
||||
("Options", ""),
|
||||
("resolution_original_tip", ""),
|
||||
("resolution_fit_local_tip", ""),
|
||||
("resolution_custom_tip", ""),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
@ -66,5 +66,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("xorg_not_found_text_tip", "Please install Xorg"),
|
||||
("no_desktop_title_tip", "No desktop is available"),
|
||||
("no_desktop_text_tip", "Please install GNOME desktop"),
|
||||
("resolution_original_tip", "Original resolution"),
|
||||
("resolution_fit_local_tip", "Fit local resolution"),
|
||||
("resolution_custom_tip", "Custom resolution"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
@ -506,5 +506,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Enable", ""),
|
||||
("Disable", ""),
|
||||
("Options", ""),
|
||||
("resolution_original_tip", ""),
|
||||
("resolution_fit_local_tip", ""),
|
||||
("resolution_custom_tip", ""),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
@ -506,5 +506,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Enable", "Habilitar"),
|
||||
("Disable", "Inhabilitar"),
|
||||
("Options", "Opciones"),
|
||||
("resolution_original_tip", ""),
|
||||
("resolution_fit_local_tip", ""),
|
||||
("resolution_custom_tip", ""),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
@ -506,5 +506,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Enable", "فعال کردن"),
|
||||
("Disable", "غیر فعال کردن"),
|
||||
("Options", "گزینه ها"),
|
||||
("resolution_original_tip", ""),
|
||||
("resolution_fit_local_tip", ""),
|
||||
("resolution_custom_tip", ""),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
@ -506,5 +506,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Enable", ""),
|
||||
("Disable", ""),
|
||||
("Options", ""),
|
||||
("resolution_original_tip", ""),
|
||||
("resolution_fit_local_tip", ""),
|
||||
("resolution_custom_tip", ""),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
@ -506,5 +506,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Enable", ""),
|
||||
("Disable", ""),
|
||||
("Options", ""),
|
||||
("resolution_original_tip", ""),
|
||||
("resolution_fit_local_tip", ""),
|
||||
("resolution_custom_tip", ""),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
@ -506,5 +506,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Enable", ""),
|
||||
("Disable", ""),
|
||||
("Options", ""),
|
||||
("resolution_original_tip", ""),
|
||||
("resolution_fit_local_tip", ""),
|
||||
("resolution_custom_tip", ""),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
@ -506,5 +506,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Enable", "Abilita"),
|
||||
("Disable", "Disabilita"),
|
||||
("Options", "Opzioni"),
|
||||
("resolution_original_tip", ""),
|
||||
("resolution_fit_local_tip", ""),
|
||||
("resolution_custom_tip", ""),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
@ -506,5 +506,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Enable", ""),
|
||||
("Disable", ""),
|
||||
("Options", ""),
|
||||
("resolution_original_tip", ""),
|
||||
("resolution_fit_local_tip", ""),
|
||||
("resolution_custom_tip", ""),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
@ -506,5 +506,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Enable", ""),
|
||||
("Disable", ""),
|
||||
("Options", ""),
|
||||
("resolution_original_tip", ""),
|
||||
("resolution_fit_local_tip", ""),
|
||||
("resolution_custom_tip", ""),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
@ -506,5 +506,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Enable", ""),
|
||||
("Disable", ""),
|
||||
("Options", ""),
|
||||
("resolution_original_tip", ""),
|
||||
("resolution_fit_local_tip", ""),
|
||||
("resolution_custom_tip", ""),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
@ -506,5 +506,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Enable", ""),
|
||||
("Disable", ""),
|
||||
("Options", ""),
|
||||
("resolution_original_tip", ""),
|
||||
("resolution_fit_local_tip", ""),
|
||||
("resolution_custom_tip", ""),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
@ -506,5 +506,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Enable", "Activeer"),
|
||||
("Disable", "Deactiveer"),
|
||||
("Options", "Opties"),
|
||||
("resolution_original_tip", ""),
|
||||
("resolution_fit_local_tip", ""),
|
||||
("resolution_custom_tip", ""),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
@ -506,5 +506,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Enable", "Włącz"),
|
||||
("Disable", "Wyłącz"),
|
||||
("Options", "Opcje"),
|
||||
("resolution_original_tip", ""),
|
||||
("resolution_fit_local_tip", ""),
|
||||
("resolution_custom_tip", ""),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
@ -506,5 +506,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Enable", ""),
|
||||
("Disable", ""),
|
||||
("Options", ""),
|
||||
("resolution_original_tip", ""),
|
||||
("resolution_fit_local_tip", ""),
|
||||
("resolution_custom_tip", ""),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
@ -506,5 +506,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Enable", "Habilitar"),
|
||||
("Disable", "Desabilitar"),
|
||||
("Options", "Opções"),
|
||||
("resolution_original_tip", ""),
|
||||
("resolution_fit_local_tip", ""),
|
||||
("resolution_custom_tip", ""),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
@ -506,5 +506,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Enable", ""),
|
||||
("Disable", ""),
|
||||
("Options", ""),
|
||||
("resolution_original_tip", ""),
|
||||
("resolution_fit_local_tip", ""),
|
||||
("resolution_custom_tip", ""),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
@ -506,5 +506,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Enable", "Включить"),
|
||||
("Disable", "Отключить"),
|
||||
("Options", "Настройки"),
|
||||
("resolution_original_tip", ""),
|
||||
("resolution_fit_local_tip", ""),
|
||||
("resolution_custom_tip", ""),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
@ -506,5 +506,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Enable", ""),
|
||||
("Disable", ""),
|
||||
("Options", ""),
|
||||
("resolution_original_tip", ""),
|
||||
("resolution_fit_local_tip", ""),
|
||||
("resolution_custom_tip", ""),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
@ -506,5 +506,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Enable", ""),
|
||||
("Disable", ""),
|
||||
("Options", ""),
|
||||
("resolution_original_tip", ""),
|
||||
("resolution_fit_local_tip", ""),
|
||||
("resolution_custom_tip", ""),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
@ -506,5 +506,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Enable", ""),
|
||||
("Disable", ""),
|
||||
("Options", ""),
|
||||
("resolution_original_tip", ""),
|
||||
("resolution_fit_local_tip", ""),
|
||||
("resolution_custom_tip", ""),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
@ -506,5 +506,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Enable", ""),
|
||||
("Disable", ""),
|
||||
("Options", ""),
|
||||
("resolution_original_tip", ""),
|
||||
("resolution_fit_local_tip", ""),
|
||||
("resolution_custom_tip", ""),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
@ -506,5 +506,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Enable", ""),
|
||||
("Disable", ""),
|
||||
("Options", ""),
|
||||
("resolution_original_tip", ""),
|
||||
("resolution_fit_local_tip", ""),
|
||||
("resolution_custom_tip", ""),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
@ -506,5 +506,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Enable", ""),
|
||||
("Disable", ""),
|
||||
("Options", ""),
|
||||
("resolution_original_tip", ""),
|
||||
("resolution_fit_local_tip", ""),
|
||||
("resolution_custom_tip", ""),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
@ -506,5 +506,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Enable", ""),
|
||||
("Disable", ""),
|
||||
("Options", ""),
|
||||
("resolution_original_tip", ""),
|
||||
("resolution_fit_local_tip", ""),
|
||||
("resolution_custom_tip", ""),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
@ -506,5 +506,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Enable", ""),
|
||||
("Disable", ""),
|
||||
("Options", ""),
|
||||
("resolution_original_tip", ""),
|
||||
("resolution_fit_local_tip", ""),
|
||||
("resolution_custom_tip", ""),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
@ -506,5 +506,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Enable", ""),
|
||||
("Disable", ""),
|
||||
("Options", ""),
|
||||
("resolution_original_tip", ""),
|
||||
("resolution_fit_local_tip", ""),
|
||||
("resolution_custom_tip", ""),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
@ -506,5 +506,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Enable", ""),
|
||||
("Disable", ""),
|
||||
("Options", ""),
|
||||
("resolution_original_tip", ""),
|
||||
("resolution_fit_local_tip", ""),
|
||||
("resolution_custom_tip", ""),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
@ -506,5 +506,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Enable", ""),
|
||||
("Disable", ""),
|
||||
("Options", ""),
|
||||
("resolution_original_tip", ""),
|
||||
("resolution_fit_local_tip", ""),
|
||||
("resolution_custom_tip", ""),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user