Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Merge pull request #3424 from CapSoftware/i18n/settings-surfaces

Richie McIlroy5183a4dfab22
diff --cc apps/desktop-gpui/src/settings_window.rs
index bcbf4671b,74ef683bf..6647b570b
--- a/apps/desktop-gpui/src/settings_window.rs
+++ b/apps/desktop-gpui/src/settings_window.rs
@@@ -2617,9 -2614,9 +2613,9 @@@ impl SettingsWindow
.items_center()
.gap(px(8.))
.child(self.row_button(
- ("screenshot-copy", index),
+ "screenshot-copy",
"icons/copy.svg",
- "Copy to clipboard",
+ tr::settings::screenshots::copy(),
false,
cx,
{
@@@ -2637,9 -2637,9 +2636,9 @@@
},
))
.child(self.row_button(
- ("screenshot-save", index),
+ "screenshot-save",
"icons/download.svg",
- "Save as",
+ tr::settings::screenshots::save_as(),
false,
cx,
move |this, window, cx| {
@@@ -2647,17 -2647,17 +2646,17 @@@
},
))
.child(self.row_button(
- ("screenshot-folder", index),
+ "screenshot-folder",
"icons/folder.svg",
- "Open folder",
+ tr::settings::screenshots::open_folder(),
false,
cx,
move |_this, _window, cx| library::reveal_path(&bundle, cx),
))
.child(self.row_button(
- ("screenshot-delete", index),
+ "screenshot-delete",
"icons/trash.svg",
- "Delete",
+ tr::settings::screenshots::delete(),
false,
cx,
{
@@@ -3065,9 -3073,9 +3070,9 @@@
if mode == RecordingMode::Studio {
if let Some(link) = sharing.clone() {
actions = actions.child(self.row_button(
- ("recording-link", index),
+ "recording-link",
"icons/link.svg",
- "Open link",
+ tr::settings::recordings::open_link(),
false,
cx,
move |_this, _window, cx| cx.open_url(&link),
@@@ -3075,9 -3083,9 +3080,9 @@@
}
let editor_path = path.clone();
actions = actions.child(self.row_button(
- ("recording-edit", index),
+ "recording-edit",
"icons/edit.svg",
- "Edit",
+ tr::settings::recordings::edit(),
// `disabled={status === "InProgress"}`
in_progress,
cx,
@@@ -3091,9 -3099,9 +3096,9 @@@
let retry_path = path.clone();
actions = actions.child(
self.row_button(
- ("recording-reupload", index),
+ "recording-reupload",
"icons/rotate-ccw.svg",
- "Retry upload",
+ tr::settings::recordings::retry_upload(),
!item
.upload
.as_ref()
@@@ -3122,9 -3130,9 +3127,9 @@@
);
if let Some(link) = sharing {
actions = actions.child(self.row_button(
- ("recording-instant-link", index),
+ "recording-instant-link",
"icons/link.svg",
- "Open link",
+ tr::settings::recordings::open_link(),
false,
cx,
move |_this, _window, cx| cx.open_url(&link),
@@@ -3134,17 -3142,17 +3139,17 @@@
let folder_path = path.clone();
actions = actions.child(self.row_button(
- ("recording-folder", index),
+ "recording-folder",
"icons/folder.svg",
- "Open recording bundle",
+ tr::settings::recordings::open_bundle(),
false,
cx,
move |_this, _window, cx| library::open_recording_folder(&folder_path, mode, cx),
));
actions.child(self.row_button(
- ("recording-delete", index),
+ "recording-delete",
"icons/trash.svg",
- "Delete",
+ tr::settings::recordings::delete(),
false,
cx,
move |this, window, cx| this.delete_recording(path.clone(), window, cx),