Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Merge remote-tracking branch 'origin/main' into HEAD

Richie McIlroy91cbcfe3c675
diff --cc apps/desktop-gpui/locales/en.toml
index 480ec059e,000000000..ae9c110ec
mode 100644,000000..100644
--- a/apps/desktop-gpui/locales/en.toml
+++ b/apps/desktop-gpui/locales/en.toml
@@@ -1,220 -1,0 +1,221 @@@
+[common]
+add = "Add"
+cancel = "Cancel"
+ok = "OK"
+reset = "Reset"
+reset_to_default = "Reset to Default"
+save = "Save"
+
+[menu.app]
+about = "About Cap"
+hide = "Hide Cap"
+hide_others = "Hide Others"
+quit = "Quit Cap"
+services = "Services"
++settings = "Settings…"
+
+[menu.file]
+close_window = "Close Window"
+title = "File"
+
+[menu.edit]
+copy = "Copy"
+cut = "Cut"
+paste = "Paste"
+redo = "Redo"
+select_all = "Select All"
+title = "Edit"
+undo = "Undo"
+
+[menu.view]
+enter_full_screen = "Enter Full Screen"
+title = "View"
+
+[menu.window]
+close_window = "Close Window"
+minimize = "Minimize"
+zoom = "Zoom"
+
+[menu.help]
+title = "Help"
+
+[tray]
+import_media = "Import Media..."
+no_recent_items = "No recent items"
+open_main_window = "Open Main Window"
+previous = { text = "Previous", context = "Submenu listing the most recent recordings and screenshots." }
+quit = "Quit Cap"
+record_area = "Record Area"
+record_display = "Record Display"
+record_window = "Record Window"
+request_permissions = "Request Permissions"
+screenshot_area = "Screenshot Area"
+screenshot_display = "Screenshot Display"
+screenshot_window = "Screenshot Window"
+select_mode = "Select Mode"
+settings = "Settings"
+take_screenshot = "Take a Screenshot"
+tooltip_recording = { text = "Cap - Stop Recording", context = "Windows tray tooltip while a recording runs; clicking the icon stops it." }
+upload_logs = "Upload Logs"
+version = { text = "Cap v{version}", context = "Disabled row showing the app version, for example Cap v0.6.1." }
+view_all_recordings = "View all recordings"
+view_all_screenshots = "View all screenshots"
+
+[tray.mode]
+instant = { text = "Instant", context = "Recording mode name." }
+screenshot = { text = "Screenshot", context = "Recording mode name." }
+studio = { text = "Studio", context = "Recording mode name." }
+
+[settings.nav]
+automations = "Automations"
+changelog = "Changelog"
+cli = "CLI"
+experimental = "Experimental"
+feedback = "Feedback"
+general = "General"
+integrations = "Integrations"
+license = "Plan & license"
+quality = "Recording quality"
+recordings = "Recordings"
+screenshots = "Screenshots"
+shortcuts = "Shortcuts"
+transcription = "Transcription"
+
+[settings.general.appearance]
+description = "Match Cap to your system theme or pick a fixed look."
+title = "Appearance"
+
+[settings.general.app]
+description = "Choose how Cap shows up on your system."
+title = "App"
+
+[settings.general.app.dock_icon]
+description = "Keep Cap in the dock even when no windows are open."
+label = "Always show dock icon"
+
+[settings.general.app.notifications]
+description = "Show notifications for clipboard copies, saved files, and more. You may need to allow Cap in your system's notification settings."
+label = "System notifications"
+
+[settings.general.recording]
+description = "Behaviour while you record and after you stop."
+title = "Recording"
+
+[settings.general.recording.countdown]
+description = "Wait before the recording starts."
+label = "Countdown"
+off = "Off"
+seconds_10 = "10 seconds"
+seconds_3 = "3 seconds"
+seconds_5 = "5 seconds"
+
+[settings.general.recording.confirm_without_mic]
+description = "Require confirmation when no microphone is selected or the selected microphone is unavailable."
+label = "Confirm before recording without a microphone"
+
+[settings.general.recording.studio_sound]
+description = "Clean up microphone audio automatically. You can still turn it off for any recording in the editor."
+label = { text = "Studio Sound on new recordings", context = "Studio Sound is the name of Cap's microphone clean-up feature." }
+
+[settings.general.recording.main_window_start]
+description = "What happens to the main window once a recording begins."
+label = "Main window when recording starts"
+
+[settings.general.recording.post_deletion]
+description = "Whether the recording window should reopen."
+label = "After deleting a recording"
+
+[settings.general.recording.delete_after_upload]
+description = "Cap removes the local file once it has uploaded successfully."
+label = "Delete Instant recordings after upload"
+
+[settings.general.recording.crash_recovery]
+description = "Record in fragments that can be recovered after a crash or power loss. Slightly larger files during capture."
+label = "Crash-recoverable recording"
+
+[settings.general.recording.custom_cursor]
+description = "Capture cursor state separately so you can adjust size and smoothing in the editor."
+label = "Custom cursor capture (Studio)"
+
+[settings.general.recording.auto_zoom]
+description = "Automatically add zoom segments around mouse clicks in Studio recordings."
+label = "Auto zoom on clicks"
+
+[settings.general.recording.default_zoom]
+description = "Zoom level for newly created and auto-generated zoom segments."
+label = "Default zoom amount"
+
+[settings.general.recording.capture_keyboard]
+description = "Record key presses so you can add keyboard overlays in the editor."
+label = "Capture keyboard presses"
+
+[settings.general.recording.notch_overlay]
+description = "Automatically restores the notch for new screen and area recordings when the selected region contains the complete notch. External displays, partial areas, and window recordings are left alone. Each recording can override it in the editor."
+label = "Draw the MacBook notch on screen recordings"
+
+[settings.general.recording.max_fps]
+description = "Maximum framerate for screen capture."
+description_high = { text = "Maximum framerate for screen capture. Higher values may cause drops or increased CPU usage on some systems.", context = "Shown instead of the short description when more than 60 FPS is selected." }
+fps_120 = "120 FPS"
+fps_24 = "24 FPS"
+fps_25 = "25 FPS"
+fps_30 = "30 FPS"
+fps_60 = "60 FPS (Recommended)"
+label = "Max capture framerate"
+
+[settings.general.storage]
+choose_folder = "Choose Folder"
+default_location = { text = "Default (Application Support)", context = "Shown in place of a folder path when recordings use the default location." }
+description = "Where Cap saves your recordings."
+title = "Storage"
+
+[settings.general.project_name]
+available_placeholders = "Available placeholders"
+description = "Template used for new recordings and exported files."
+title = "Default project name"
+
+[settings.general.project_name.placeholders]
+date_time = "Date & time"
+date_values = "the recording's date"
+mode_values = { text = "\"studio\", \"instant\", or \"screenshot\"", context = "The quoted words are inserted into file names exactly as written; keep them in English." }
+random = "Random"
+random_values = { text = "10 filename-safe hexadecimal characters; use {{random:N}} for 1–32.", context = "{{random:N}} is template syntax typed by the user; keep it exactly as written." }
+recording_mode = "Recording mode"
+recording_mode_values = { text = "\"Studio\", \"Instant\", or \"Screenshot\"", context = "The quoted words are inserted into file names exactly as written; keep them in English." }
+target = "Target"
+target_kind_values = { text = "\"Display\", \"Window\", or \"Area\"", context = "The quoted words are inserted into file names exactly as written; keep them in English." }
+target_name_values = "Monitor name or window title."
+time_values = "the recording's time"
+
+[settings.general.excluded_windows]
+description = "Hide windows from recordings."
+empty = "No windows are currently excluded."
+missing_body = { text = "Camera, settings, or recording windows can appear as black boxes in screen recordings. Missing: {names}.", context = "{names} is a comma-separated list of Cap window titles." }
+missing_title = "Recommended Cap windows are not excluded"
+restore = "Restore"
+title = "Excluded windows"
+
+[settings.general.updates]
+description = "Choose which Cap builds you receive."
+nightly_description = "The newest builds, updated automatically in the background when you're not recording or exporting. May be unstable."
+nightly_switch_back = "Switching back to Stable will return you to the latest stable version, which may be older than your current build."
+stable_description = "Versioned releases (recommended)"
+title = "Updates"
+
+[settings.general.updates.channel]
+description = "Which release channel Cap updates from."
+label = "Update channel"
+
+[settings.general.self_host]
+confirm_change = { text = "Are you sure you want to change the server URL to '{origin}'? You will need to sign in again.", context = "{origin} is a URL such as https://cap.example.com." }
+description = "Only change this if you are running your own instance of Cap Web."
+server_url = "Cap Server URL"
+title = "Self-host"
+update = "Update"
+
+[settings.general.privacy]
+title = "Privacy"
+
+[settings.general.privacy.telemetry]
+description = "Cap uses anonymous telemetry to improve reliability and fix bugs. We never collect recording contents, window titles, file paths, or personal information."
+label = "Share anonymous telemetry"
diff --cc apps/desktop-gpui/src/menus.rs
index 60e700b49,0628c25ef..3802cead3
--- a/apps/desktop-gpui/src/menus.rs
+++ b/apps/desktop-gpui/src/menus.rs
@@@ -26,7 -26,7 +26,8 @@@ use gpui::
use crate::{
app_windows::{self, AppWindows},
+ hotkeys,
+ i18n::tr,
main_window::MainWindow,
platform,
session::{Phase, RecordingSession},
@@@ -124,14 -159,16 +160,16 @@@ pub fn build_menus() -> Vec<Menu>
name: APP_NAME.into(),
disabled: false,
items: vec![
- MenuItem::action(format!("About {APP_NAME}"), About),
+ MenuItem::action(tr::menu::app::about(), About),
MenuItem::separator(),
- MenuItem::action("Settings…", OpenSettings),
++ MenuItem::action(tr::menu::app::settings(), OpenSettings),
+ MenuItem::separator(),
- MenuItem::os_submenu("Services", SystemMenuType::Services),
+ MenuItem::os_submenu(tr::menu::app::services(), SystemMenuType::Services),
MenuItem::separator(),
- MenuItem::action(format!("Hide {APP_NAME}"), HideSelf),
- MenuItem::action("Hide Others", HideOthers),
+ MenuItem::action(tr::menu::app::hide(), HideSelf),
+ MenuItem::action(tr::menu::app::hide_others(), HideOthers),
MenuItem::separator(),
- MenuItem::action(format!("Quit {APP_NAME}"), Quit),
+ MenuItem::action(tr::menu::app::quit(), Quit),
],
},
Menu {
diff --cc apps/desktop-gpui/src/settings_window.rs
index 27d4a7dbe,37e5b466d..3de8765e4
--- a/apps/desktop-gpui/src/settings_window.rs
+++ b/apps/desktop-gpui/src/settings_window.rs
@@@ -3054,6 -3068,7 +3071,7 @@@ impl SettingsWindow
// The row is the *inverse* of the stored key.
self.toggle(
"hide-dock-icon",
- "Always show dock icon",
++ tr::settings::general::app::dock_icon::label(),
!self.settings.hide_dock_icon,
cx,
|this, cx| {
@@@ -3070,10 -3085,14 +3088,11 @@@
.into_any_element(),
),
self.setting_row(
- "System notifications",
- Some(
- "Show notifications for clipboard copies, saved files, and more. \
- You may need to allow Cap in your system's notification settings.",
- ),
+ tr::settings::general::app::notifications::label(),
+ Some(tr::settings::general::app::notifications::description()),
self.toggle(
"enable-notifications",
- "System notifications",
++ tr::settings::general::app::notifications::label(),
self.settings.enable_notifications,
cx,
|this, cx| {
@@@ -3408,10 -3428,14 +3428,11 @@@
.into_any_element(),
),
self.setting_row(
- "Confirm before recording without a microphone",
- Some(
- "Require confirmation when no microphone is selected or the \
- selected microphone is unavailable.",
- ),
+ tr::settings::general::recording::confirm_without_mic::label(),
+ Some(tr::settings::general::recording::confirm_without_mic::description()),
self.toggle(
"confirm-without-mic",
- "Confirm before recording without a microphone",
++ tr::settings::general::recording::confirm_without_mic::label(),
settings.confirm_without_microphone,
cx,
|this, cx| {
@@@ -3431,10 -3455,14 +3452,11 @@@
.into_any_element(),
),
self.setting_row(
- "Studio Sound on new recordings",
- Some(
- "Clean up microphone audio automatically. You can still turn it \
- off for any recording in the editor.",
- ),
+ tr::settings::general::recording::studio_sound::label(),
+ Some(tr::settings::general::recording::studio_sound::description()),
self.toggle(
"studio-sound-default",
- "Studio Sound on new recordings",
++ tr::settings::general::recording::studio_sound::label(),
settings.studio_sound_by_default,
cx,
|this, cx| {
@@@ -3475,10 -3503,11 +3497,11 @@@
.into_any_element(),
),
self.setting_row(
- "Delete Instant recordings after upload",
- Some("Cap removes the local file once it has uploaded successfully."),
+ tr::settings::general::recording::delete_after_upload::label(),
+ Some(tr::settings::general::recording::delete_after_upload::description()),
self.toggle(
"delete-after-upload",
- "Delete Instant recordings after upload",
++ tr::settings::general::recording::delete_after_upload::label(),
settings.delete_instant_recordings_after_upload,
cx,
|this, cx| {
@@@ -3491,10 -3520,14 +3514,11 @@@
.into_any_element(),
),
self.setting_row(
- "Crash-recoverable recording",
- Some(
- "Record in fragments that can be recovered after a crash or power \
- loss. Slightly larger files during capture.",
- ),
+ tr::settings::general::recording::crash_recovery::label(),
+ Some(tr::settings::general::recording::crash_recovery::description()),
self.toggle(
"crash-recovery",
- "Crash-recoverable recording",
++ tr::settings::general::recording::crash_recovery::label(),
settings.crash_recovery_recording,
cx,
|this, cx| {
@@@ -3507,10 -3540,14 +3531,11 @@@
.into_any_element(),
),
self.setting_row(
- "Custom cursor capture (Studio)",
- Some(
- "Capture cursor state separately so you can adjust size and \
- smoothing in the editor.",
- ),
+ tr::settings::general::recording::custom_cursor::label(),
+ Some(tr::settings::general::recording::custom_cursor::description()),
self.toggle(
"custom-cursor",
- "Custom cursor capture (Studio)",
++ tr::settings::general::recording::custom_cursor::label(),
settings.custom_cursor_capture,
cx,
|this, cx| {
@@@ -3523,13 -3560,23 +3548,20 @@@
.into_any_element(),
),
self.setting_row(
- "Auto zoom on clicks",
- Some(
- "Automatically add zoom segments around mouse clicks in Studio \
- recordings.",
- ),
+ tr::settings::general::recording::auto_zoom::label(),
+ Some(tr::settings::general::recording::auto_zoom::description()),
- self.toggle("auto-zoom", settings.auto_zoom_on_clicks, cx, |this, cx| {
- this.settings.auto_zoom_on_clicks = !this.settings.auto_zoom_on_clicks;
- let value = this.settings.auto_zoom_on_clicks;
- this.write_bool("autoZoomOnClicks", value, cx);
- })
+ self.toggle(
+ "auto-zoom",
- "Auto zoom on clicks",
++ tr::settings::general::recording::auto_zoom::label(),
+ settings.auto_zoom_on_clicks,
+ cx,
+ |this, cx| {
+ this.settings.auto_zoom_on_clicks =
+ !this.settings.auto_zoom_on_clicks;
+ let value = this.settings.auto_zoom_on_clicks;
+ this.write_bool("autoZoomOnClicks", value, cx);
+ },
+ )
.into_any_element(),
),
self.setting_row(
@@@ -3554,10 -3601,11 +3586,11 @@@
.into_any_element(),
),
self.setting_row(
- "Capture keyboard presses",
- Some("Record key presses so you can add keyboard overlays in the editor."),
+ tr::settings::general::recording::capture_keyboard::label(),
+ Some(tr::settings::general::recording::capture_keyboard::description()),
self.toggle(
"capture-keyboard",
- "Capture keyboard presses",
++ tr::settings::general::recording::capture_keyboard::label(),
settings.capture_keyboard_events,
cx,
|this, cx| {
@@@ -3570,10 -3618,16 +3603,11 @@@
.into_any_element(),
),
self.setting_row(
- "Draw the MacBook notch on screen recordings",
- Some(
- "Automatically restores the notch for new screen and area \
- recordings when the selected region contains the complete notch. \
- External displays, partial areas, and window recordings are left \
- alone. Each recording can override it in the editor.",
- ),
+ tr::settings::general::recording::notch_overlay::label(),
+ Some(tr::settings::general::recording::notch_overlay::description()),
self.toggle(
"notch-overlay",
- "Draw the MacBook notch on screen recordings",
++ tr::settings::general::recording::notch_overlay::label(),
settings.macbook_notch_overlay,
cx,
|this, cx| {
@@@ -4275,10 -4304,15 +4309,11 @@@
vec![
self.rows(vec![
self.setting_row(
- "Share anonymous telemetry",
- Some(
- "Cap uses anonymous telemetry to improve reliability and fix bugs. We \
- never collect recording contents, window titles, file paths, or \
- personal information.",
- ),
+ tr::settings::general::privacy::telemetry::label(),
+ Some(tr::settings::general::privacy::telemetry::description()),
self.toggle(
"telemetry",
- "Share anonymous telemetry",
++ tr::settings::general::privacy::telemetry::label(),
self.settings.enable_telemetry,
cx,
|this, cx| {