This commit is contained in:
oneshinyboi 2026-08-16 00:10:34 -05:00
parent 47bd796c48
commit 2305461f26
No known key found for this signature in database
GPG Key ID: A494E206A095F0C0
3 changed files with 9 additions and 11 deletions

View File

@ -242,16 +242,13 @@
"WHISPER_MODEL": "Speech-to-text model",
"WHISPER_MODEL_HELP": "Whisper model to use.\nLarger models produce more accurate\nresults, but consume more VRAM.",
"SWIPE_TYPE": {
"NEED_TO_DOWNLOAD_MODELS": "The swipe-to-type model needs to be downloaded.\nDownload it now?",
"MODELS_DOWNLOADED": "Model downloaded",
"MODELS_NOT_DOWNLOADED": "Model not downloaded",
"NEED_TO_DOWNLOAD_MODEL": "The swipe-to-type model needs to be downloaded.\nDownload it now?",
"MODEL_REQUIRED_TO_ENABLE": "Download the swipe-to-type model to enable this option.",
"REMOVE_MODELS": "Remove swipe to type model",
"DOWNLOAD_MODELS": "Download swipe to type model",
"DOWNLOAD_MODELS_HELP": "Swipe to type only works on qwerty layout keyboards"
"REMOVE_MODEL": "Remove swipe to type model",
"REMOVE_MODEL_HELP": "Deletes the swipe to type model",
"DOWNLOAD_MODEL": "Download swipe to type model",
"DOWNLOAD_MODEL_HELP": "Swipe to type only works on qwerty layout keyboards"
},
"SWIPE_TYPE_MODELS": "Swipe-to-type models",
"SWIPE_TYPE_MODELS_HELP": "Model files used by swipe-to-type.\nAll of them are required.",
"GRID_OPACITY": "Floor grid opacity",
"GRID_OPACITY_HELP": "Opacity of the floor grid when the skymap is enabled",
"XWAYLAND_BY_DEFAULT": "Run apps in Compatibility mode by default",

View File

@ -620,6 +620,7 @@ impl SettingType {
Self::InputCaptureMethod => Some("APP_SETTINGS.INPUT_CAPTURE_METHOD_HELP"),
Self::InputEmulationMethod => Some("APP_SETTINGS.INPUT_EMULATION_METHOD_HELP"),
Self::KeyboardMiddleClick => Some("APP_SETTINGS.KEYBOARD_MIDDLE_CLICK_HELP"),
Self::KeyboardSwipeToTypeEnabled => Some("APP_SETTINGS.KEYBOARD_SWIPE_TO_TYPE_ENABLED_HELP"),
Self::LeftHandedMouse => Some("APP_SETTINGS.LEFT_HANDED_MOUSE_HELP"),
Self::MouseAcceleration => Some("APP_SETTINGS.POINTER_ACCELERATION_HELP"),
Self::ScreenRenderDown => Some("APP_SETTINGS.SCREEN_RENDER_DOWN_HELP"),

View File

@ -314,7 +314,7 @@ impl State {
self.frontend_tasks.clone(),
views::dialog_box::Params {
globals: self.globals.clone(),
message: Translation::from_translation_key("APP_SETTINGS.SWIPE_TYPE.NEED_TO_DOWNLOAD_MODELS"),
message: Translation::from_translation_key("APP_SETTINGS.SWIPE_TYPE.NEED_TO_DOWNLOAD_MODEL"),
entries: vec![
views::dialog_box::ButtonEntry {
content: Translation::from_translation_key("APP_SETTINGS.CANCEL"),
@ -469,13 +469,13 @@ fn swipe_type_models_button(mp: &mut MacroParams, parent: WidgetID) -> anyhow::R
let all_downloaded = swwipe_type_model_downloaded().unwrap_or_default();
let (translation, icon, action) = if all_downloaded {
(
"APP_SETTINGS.SWIPE_TYPE.REMOVE_MODELS",
"APP_SETTINGS.SWIPE_TYPE.REMOVE_MODEL",
"dashboard/trash.svg",
"swipe_type_remove",
)
} else {
(
"APP_SETTINGS.SWIPE_TYPE.DOWNLOAD_MODELS",
"APP_SETTINGS.SWIPE_TYPE.DOWNLOAD_MODEL",
"dashboard/download.svg",
"swipe_type_download",
)