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
@@ -95,7 +95,7 @@ pub fn popup(app: &mut SolveApp, ctx: &egui::Context) {
|
||||
let mut picked: Option<&'static str> = None;
|
||||
let t = Tokens::get();
|
||||
let center = ctx.content_rect().center();
|
||||
crate::frame::window(ctx, "Search commands", crate::frame::Width::Normal)
|
||||
crate::frame::window(ctx, crate::i18n::tr_label("Search commands"), crate::frame::Width::Normal)
|
||||
.id(egui::Id::new("sc_search"))
|
||||
.pivot(egui::Align2::LEFT_TOP)
|
||||
.fixed_pos(egui::pos2(center.x - 200.0, 150.0))
|
||||
@@ -103,7 +103,7 @@ pub fn popup(app: &mut SolveApp, ctx: &egui::Context) {
|
||||
.collapsible(false)
|
||||
.open(&mut open)
|
||||
.show(ctx, |ui| {
|
||||
let r = ui.add(egui::TextEdit::singleline(&mut app.palette.text).hint_text("command name").desired_width(380.0));
|
||||
let r = ui.add(egui::TextEdit::singleline(&mut app.palette.text).hint_text(crate::i18n::tr_label("command name")).desired_width(380.0));
|
||||
// Read Enter before taking the focus back (lost_focus reads the focus as it is now).
|
||||
let entered = r.lost_focus() && ui.input(|i| i.key_pressed(egui::Key::Enter));
|
||||
r.request_focus();
|
||||
|
||||
Reference in new issue
Block a user