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:
Mithril_MEX authored and GitHub committed 2026-10-13 13:24:24 -04:00
1 parent a8b3b21fd0
commit d437c21368
35 files changed
+2219 -265

No files matched your search

+4 -4
View File
@@ -107,7 +107,7 @@ pub fn show(app: &mut SolveApp, ctx: &egui::Context) {
};
let (deleted, fails) = (list("deleted"), list("would_fail"));
let mut answer: Option<bool> = None;
crate::frame::window(ctx, "Delete", crate::frame::Width::Normal)
crate::frame::window(ctx, crate::i18n::tr_label("Delete"), crate::frame::Width::Normal)
.id(egui::Id::new("sc_delete_confirm"))
.collapsible(false)
.resizable(false)
@@ -115,10 +115,10 @@ pub fn show(app: &mut SolveApp, ctx: &egui::Context) {
.show(ctx, |ui| {
ui.set_max_width(360.0);
if shared_occurrences(app, &p.params) {
ui.label("This child is shared. Deleting it removes it from every copy of its parent.");
ui.label(crate::i18n::tr_label("This child is shared. Deleting it removes it from every copy of its parent."));
}
if !deleted.is_empty() {
ui.label("These features will be deleted:");
ui.label(crate::i18n::tr_label("These features will be deleted:"));
for d in deleted.iter().take(20) {
ui.label(RichText::new(format!(" • {d}")).color(t.text));
}
@@ -128,7 +128,7 @@ pub fn show(app: &mut SolveApp, ctx: &egui::Context) {
}
if !fails.is_empty() {
ui.add_space(6.0);
ui.label(RichText::new("These features will fail:").color(t.warning));
ui.label(RichText::new(crate::i18n::tr_label("These features will fail:")).color(t.warning));
for f in fails.iter().take(20) {
ui.label(RichText::new(format!(" • {f}")).color(t.warning));
}