mirror of
https://github.com/storytold/lightcraft.git
synced 2026-10-14 19:27:01 -04:00
fix(i18n): translate Compare and Reference view captions
Refs #911 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
1 parent
701f78ea2e
commit
e79027f728
1 file changed
+1
-1
@@ -265,7 +265,7 @@ fn photo_tile(app: &mut LightcraftApp, ui: &mut egui::Ui, id: PhotoId, slot: Slo
|
||||
let pt = ui.painter();
|
||||
let mut x = cap.left() + 4.0;
|
||||
if !label.is_empty() {
|
||||
let g = pt.layout_no_wrap(label.to_string(), t.semibold(12.0), if active { t.text } else { t.text_label });
|
||||
let g = pt.layout_no_wrap(crate::i18n::tr(label).to_string(), t.semibold(12.0), if active { t.text } else { t.text_label });
|
||||
pt.galley(pos2(x, cap.center().y - g.size().y / 2.0), g.clone(), t.text);
|
||||
x += g.size().x + 10.0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user