LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust
Follow-up to #402: the menu scroll arrows' accessibility labels are translated
Claudea1e99fad9e93
diff --git a/crates/ui-egui/locales/de.json b/crates/ui-egui/locales/de.jsonindex 66f31e997..ad625ccb8 100644--- a/crates/ui-egui/locales/de.json+++ b/crates/ui-egui/locales/de.json@@ -1287,6 +1287,8 @@"Scanning": "Wird durchsucht","Scores stay on the photos: filter or make smart albums with Focus and Best of Similar Shots.": "Die Werte bleiben an den Fotos gespeichert: Filtere danach oder erstelle Smart-Alben mit Schärfe und „Beste ähnlicher Aufnahmen“.","Screen": "Bildschirm",+ "Scroll menu down": "Menü nach unten scrollen",+ "Scroll menu up": "Menü nach oben scrollen","Search": "Suche","Search Photos": "Fotos suchen","Search commands or keys": "Befehle oder Tasten suchen",diff --git a/crates/ui-egui/locales/es.json b/crates/ui-egui/locales/es.jsonindex 833ffba3f..052eeb96e 100644--- a/crates/ui-egui/locales/es.json+++ b/crates/ui-egui/locales/es.json@@ -1235,6 +1235,8 @@"Scanning": "Explorando","Scores stay on the photos: filter or make smart albums with Focus and Best of Similar Shots.": "Las puntuaciones se quedan en las fotos: se pueden filtrar o crear álbumes inteligentes con Enfoque y La mejor de las tomas similares.","Screen": "Pantalla",+ "Scroll menu down": "Desplazar el menú hacia abajo",+ "Scroll menu up": "Desplazar el menú hacia arriba","Search": "Buscar","Search Photos": "Buscar fotos","Search commands or keys": "Buscar comandos o teclas",diff --git a/crates/ui-egui/locales/ja.json b/crates/ui-egui/locales/ja.jsonindex 3e9c75560..80c40085c 100644--- a/crates/ui-egui/locales/ja.json+++ b/crates/ui-egui/locales/ja.json@@ -1172,6 +1172,8 @@"Scanning": "検索中","Scores stay on the photos: filter or make smart albums with Focus and Best of Similar Shots.": "評価結果は写真に保存されます。ピント評価や類似写真内のベストショットで絞り込み・スマートアルバム作成ができます","Screen": "画面用",+ "Scroll menu down": "メニューを下にスクロール",+ "Scroll menu up": "メニューを上にスクロール","Search": "検索","Search Photos": "写真を検索","Search commands or keys": "コマンドまたはキーを検索",diff --git a/crates/ui-egui/locales/pt-br.json b/crates/ui-egui/locales/pt-br.jsonindex f5b88f4f9..529dd4bb9 100644--- a/crates/ui-egui/locales/pt-br.json+++ b/crates/ui-egui/locales/pt-br.json@@ -1245,6 +1245,8 @@"Scanning": "Examinando","Scores stay on the photos: filter or make smart albums with Focus and Best of Similar Shots.": "As pontuações ficam nas fotos: filtre ou crie álbuns inteligentes com Foco e Melhor de fotos semelhantes.","Screen": "Tela",+ "Scroll menu down": "Rolar o menu para baixo",+ "Scroll menu up": "Rolar o menu para cima","Search": "Pesquisar","Search Photos": "Pesquisar fotos","Search commands or keys": "Pesquisar comandos ou teclas",diff --git a/crates/ui-egui/locales/ru.json b/crates/ui-egui/locales/ru.jsonindex b80dd73c1..95fcfc81c 100644--- a/crates/ui-egui/locales/ru.json+++ b/crates/ui-egui/locales/ru.json@@ -1027,6 +1027,8 @@"Scanning": "Сканирование","Scores stay on the photos: filter or make smart albums with Focus and Best of Similar Shots.": "Оценки остаются на фото: фильтруйте или создавайте смарт-альбомы по Focus и Best of Similar Shots.","Screen": "Экран",+ "Scroll menu down": "Прокрутить меню вниз",+ "Scroll menu up": "Прокрутить меню вверх","Search Photos": "Поиск фото","Search commands or keys": "Поиск команд или клавиш","Search…": "Поиск…",diff --git a/crates/ui-egui/locales/zh-hans.json b/crates/ui-egui/locales/zh-hans.jsonindex 8e7b13121..3ec174f0b 100644--- a/crates/ui-egui/locales/zh-hans.json+++ b/crates/ui-egui/locales/zh-hans.json@@ -1233,6 +1233,8 @@"Scanning": "正在扫描","Scores stay on the photos: filter or make smart albums with Focus and Best of Similar Shots.": "评分会保留在照片上:可使用“对焦”和“相似照片中的最佳”进行筛选或创建智能相册。","Screen": "屏幕",+ "Scroll menu down": "向下滚动菜单",+ "Scroll menu up": "向上滚动菜单","Search": "搜索","Search Photos": "搜索照片","Search commands or keys": "搜索命令或按键",diff --git a/crates/ui-egui/locales/zh-hant.json b/crates/ui-egui/locales/zh-hant.jsonindex 71a2bb5f9..7a60b4dd9 100644--- a/crates/ui-egui/locales/zh-hant.json+++ b/crates/ui-egui/locales/zh-hant.json@@ -1233,6 +1233,8 @@"Scanning": "正在掃描","Scores stay on the photos: filter or make smart albums with Focus and Best of Similar Shots.": "分數會保留在照片上:可依焦點與相似照片中的最佳照片篩選,或建立智慧型相簿。","Screen": "螢幕",+ "Scroll menu down": "向下捲動選單",+ "Scroll menu up": "向上捲動選單","Search": "搜尋","Search Photos": "搜尋照片","Search commands or keys": "搜尋命令或按鍵",diff --git a/crates/ui-egui/src/menu_level.rs b/crates/ui-egui/src/menu_level.rsindex 3d972fd07..df9bdf09b 100644--- a/crates/ui-egui/src/menu_level.rs+++ b/crates/ui-egui/src/menu_level.rs@@ -114,7 +114,9 @@ pub fn level(ui: &mut Ui, depth: usize, bar_bottom: Option<f32>, rows: impl FnOnui.painter().add(egui::Shape::convex_polygon(tri, if live { t.text } else { t.text_disabled }, egui::Stroke::NONE));let id = key.with(dir < 0.0);let r = ui.interact(strip, id, Sense::hover());- r.widget_info(|| egui::WidgetInfo::labeled(egui::WidgetType::Button, live, if dir < 0.0 { "Scroll menu up" } else { "Scroll menu down" }));+ r.widget_info(|| {+ egui::WidgetInfo::labeled(egui::WidgetType::Button, live, crate::i18n::tr(if dir < 0.0 { "Scroll menu up" } else { "Scroll menu down" }))+ });if live && pointer_on(ui, strip) {target = (offset + dir * SPEED * dt.max(1.0 / 120.0)).clamp(0.0, max);ctx.request_repaint();