feat(i18n): complete Japanese localization and eliminate UI hardcoded strings (#753)
Completes the Japanese catalog (all commands, panels, dialogs and preferences) and routes the remaining hard-coded UI labels through the translation lookup. English stays the default.
This commit is contained in:
1 parent
a8b3b21fd0
commit
d437c21368
35 files changed
+2219
-265
No files matched your search
@@ -2982,7 +2982,7 @@ fn signed_axis_view(app: &mut SolveApp, ui: &mut egui::Ui, rect: Rect) {
|
||||
crate::scenario::publish_handle("axis_view:home", home.center());
|
||||
let hr = ui.interact(home, ui.id().with("axis_view_home"), Sense::click());
|
||||
icons::paint(&painter, home, "home", t.icon, if hr.hovered() { t.accent_soft } else { t.overlay }, t.accent);
|
||||
if hr.on_hover_text("Home view").clicked() {
|
||||
if hr.on_hover_text(crate::i18n::tr_label("Home view")).clicked() {
|
||||
app.animate_view("home");
|
||||
}
|
||||
}
|
||||
@@ -3153,19 +3153,19 @@ fn view_menu(app: &mut SolveApp, ui: &mut egui::Ui, button: Rect) -> bool {
|
||||
let r = area.show(ui.ctx(), |ui| {
|
||||
egui::Frame::popup(ui.style()).show(ui, |ui| {
|
||||
ui.set_width(220.0);
|
||||
ui.label(egui::RichText::new("VIEW").strong().size(11.5));
|
||||
ui.checkbox(&mut app.ui.show_grid, "Grid");
|
||||
ui.checkbox(&mut app.ui.ground_shadow, "Ground shadow");
|
||||
ui.label(egui::RichText::new(crate::i18n::tr_label("VIEW")).strong().size(11.5));
|
||||
ui.checkbox(&mut app.ui.show_grid, crate::i18n::tr_label("Grid"));
|
||||
ui.checkbox(&mut app.ui.ground_shadow, crate::i18n::tr_label("Ground shadow"));
|
||||
ui.separator();
|
||||
let s = &mut app.ui.agent_cursor;
|
||||
let show = ui.checkbox(&mut s.show, "Show Agent Cursor");
|
||||
let show = ui.checkbox(&mut s.show, crate::i18n::tr_label("Show Agent Cursor"));
|
||||
crate::scenario::publish_handle("view:agent_cursor", show.rect.center());
|
||||
ui.add_enabled_ui(s.show, |ui| {
|
||||
ui.horizontal(|ui| {
|
||||
ui.label("Speed");
|
||||
ui.label(crate::i18n::tr_label("Speed"));
|
||||
crate::agent_cursor::speed_slider(ui, &mut s.speed);
|
||||
});
|
||||
ui.checkbox(&mut s.follow_camera, "Follow camera (Look At sketches)");
|
||||
ui.checkbox(&mut s.follow_camera, crate::i18n::tr_label("Follow camera (Look At sketches)"));
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user