Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix: use the main window mode translations in the tray picker

Ilyac273b1de4807
diff --git a/apps/desktop-gpui/locales/de.toml b/apps/desktop-gpui/locales/de.toml
index ed9a75dac..63f4d260b 100644
--- a/apps/desktop-gpui/locales/de.toml
+++ b/apps/desktop-gpui/locales/de.toml
@@ -85,7 +85,7 @@ view_all_recordings = "Alle Aufnahmen anzeigen"
view_all_screenshots = "Alle Bildschirmfotos anzeigen"
[tray.mode]
-instant = "Sofort"
+instant = "Instant"
screenshot = "Bildschirmfoto"
studio = "Studio"
diff --git a/apps/desktop-gpui/locales/es.toml b/apps/desktop-gpui/locales/es.toml
index 12e29b8f4..cbdeb9b3b 100644
--- a/apps/desktop-gpui/locales/es.toml
+++ b/apps/desktop-gpui/locales/es.toml
@@ -85,9 +85,9 @@ view_all_recordings = "Ver todas las grabaciones"
view_all_screenshots = "Ver todas las capturas de pantalla"
[tray.mode]
-instant = "Instantáneo"
+instant = "Instant"
screenshot = "Captura de pantalla"
-studio = "Estudio"
+studio = "Studio"
[settings.nav]
automations = "Automatizaciones"
diff --git a/apps/desktop-gpui/locales/fr.toml b/apps/desktop-gpui/locales/fr.toml
index 4311e915e..4a4fb35c8 100644
--- a/apps/desktop-gpui/locales/fr.toml
+++ b/apps/desktop-gpui/locales/fr.toml
@@ -85,7 +85,7 @@ view_all_recordings = "Voir tous les enregistrements"
view_all_screenshots = "Voir toutes les captures d'écran"
[tray.mode]
-instant = "Instantané"
+instant = "Instant"
screenshot = "Capture d'écran"
studio = "Studio"
diff --git a/apps/desktop-gpui/locales/hi.toml b/apps/desktop-gpui/locales/hi.toml
index f2f742ccd..f5c7e858c 100644
--- a/apps/desktop-gpui/locales/hi.toml
+++ b/apps/desktop-gpui/locales/hi.toml
@@ -85,9 +85,9 @@ view_all_recordings = "सभी रिकॉर्डिंग देखें"
view_all_screenshots = "सभी स्क्रीनशॉट देखें"
[tray.mode]
-instant = "तुरंत"
+instant = "Instant"
screenshot = "स्क्रीनशॉट"
-studio = "स्टूडियो"
+studio = "Studio"
[settings.nav]
automations = "ऑटोमेशन"
diff --git a/apps/desktop-gpui/locales/ja.toml b/apps/desktop-gpui/locales/ja.toml
index 85ba67764..ef6f8e1c8 100644
--- a/apps/desktop-gpui/locales/ja.toml
+++ b/apps/desktop-gpui/locales/ja.toml
@@ -85,9 +85,9 @@ view_all_recordings = "すべての録画を表示"
view_all_screenshots = "すべてのスクリーンショットを表示"
[tray.mode]
-instant = "インスタント"
+instant = "Instant"
screenshot = "スクリーンショット"
-studio = "スタジオ"
+studio = "Studio"
[settings.nav]
automations = "オートメーション"
diff --git a/apps/desktop-gpui/locales/zh-CN.toml b/apps/desktop-gpui/locales/zh-CN.toml
index cdf5844f0..1cae2a1bb 100644
--- a/apps/desktop-gpui/locales/zh-CN.toml
+++ b/apps/desktop-gpui/locales/zh-CN.toml
@@ -85,9 +85,9 @@ view_all_recordings = "查看所有录制"
view_all_screenshots = "查看所有截图"
[tray.mode]
-instant = "即时"
+instant = "Instant"
screenshot = "截图"
-studio = "工作室"
+studio = "Studio"
[settings.nav]
automations = "自动化"
diff --git a/apps/desktop-gpui/src/tray.rs b/apps/desktop-gpui/src/tray.rs
index 1c96a6203..a4b2381d4 100644
--- a/apps/desktop-gpui/src/tray.rs
+++ b/apps/desktop-gpui/src/tray.rs
@@ -459,9 +459,9 @@ fn previous_submenu(previous: &[PreviousItem]) -> Entry {
fn mode_name(mode: Mode) -> &'static str {
match mode {
- Mode::Studio => tr::tray::mode::studio(),
- Mode::Instant => tr::tray::mode::instant(),
- Mode::Screenshot => tr::tray::mode::screenshot(),
+ Mode::Studio => tr::main::mode::name::studio(),
+ Mode::Instant => tr::main::mode::name::instant(),
+ Mode::Screenshot => tr::main::mode::name::screenshot(),
}
}