From 7c93b16c133fa1e960163479a0009a1419804db0 Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 1 Feb 2022 01:19:31 +0800 Subject: [PATCH] minor tweaks The japanese phrase for "disconnected" is very long and doesn't fit in the allocated space :-/ something to think about in the future. --- services/status/locales/i18n.json | 5 ++++- services/status/src/main.rs | 2 +- xous-rs/src/locale.rs | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/services/status/locales/i18n.json b/services/status/locales/i18n.json index 9fa50ca42..59a4eb97c 100644 --- a/services/status/locales/i18n.json +++ b/services/status/locales/i18n.json @@ -1,18 +1,21 @@ { "stats.measuring": { + "ja": "測定...", "en": "Measuring...", "zh": "进行测量...", "en-audio": "Measuring..." }, "stats.disconnected": { + "ja": "接続されていません", "en": "Not connected", "zh": "没有连接", "en-audio": "Not connected" }, "stats.uptime": { "translator-note": "This needs to be a very short string, 2 chars max. Trailing space is necessary for English due to proportional font.", + "ja": "稼働 ", "en": "Up ", - "zh": "运行", + "zh": "运行 ", "en-audio": "Uptime" }, "secnote.usb_unlock": { diff --git a/services/status/src/main.rs b/services/status/src/main.rs index 73bca1647..23365b919 100644 --- a/services/status/src/main.rs +++ b/services/status/src/main.rs @@ -197,7 +197,7 @@ fn xmain() -> ! { uptime_tv.style = GlyphStyle::Regular; uptime_tv.draw_border = false; uptime_tv.margin = Point::new(3, 0); - write!(uptime_tv, "Booting up...").expect("|status: couldn't init uptime text"); + write!(uptime_tv, t!("secnote.startup", xous::LANG)).expect("|status: couldn't init uptime text"); gam.post_textview(&mut uptime_tv) .expect("|status: can't draw battery stats"); log::trace!("|status: screensize as reported: {:?}", screensize); diff --git a/xous-rs/src/locale.rs b/xous-rs/src/locale.rs index ed67705bc..af9531b03 100644 --- a/xous-rs/src/locale.rs +++ b/xous-rs/src/locale.rs @@ -1 +1 @@ -pub const LANG: &str = "en"; +pub const LANG: &str = "ja";