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.
This commit is contained in:
bunnie 2022-02-01 01:19:31 +08:00
parent 5c91645ede
commit 7c93b16c13
3 changed files with 6 additions and 3 deletions

View file

@ -1,18 +1,21 @@
{ {
"stats.measuring": { "stats.measuring": {
"ja": "測定...",
"en": "Measuring...", "en": "Measuring...",
"zh": "进行测量...", "zh": "进行测量...",
"en-audio": "Measuring..." "en-audio": "Measuring..."
}, },
"stats.disconnected": { "stats.disconnected": {
"ja": "接続されていません",
"en": "Not connected", "en": "Not connected",
"zh": "没有连接", "zh": "没有连接",
"en-audio": "Not connected" "en-audio": "Not connected"
}, },
"stats.uptime": { "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.", "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 ", "en": "Up ",
"zh": "运行", "zh": "运行 ",
"en-audio": "Uptime" "en-audio": "Uptime"
}, },
"secnote.usb_unlock": { "secnote.usb_unlock": {

View file

@ -197,7 +197,7 @@ fn xmain() -> ! {
uptime_tv.style = GlyphStyle::Regular; uptime_tv.style = GlyphStyle::Regular;
uptime_tv.draw_border = false; uptime_tv.draw_border = false;
uptime_tv.margin = Point::new(3, 0); 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) gam.post_textview(&mut uptime_tv)
.expect("|status: can't draw battery stats"); .expect("|status: can't draw battery stats");
log::trace!("|status: screensize as reported: {:?}", screensize); log::trace!("|status: screensize as reported: {:?}", screensize);

View file

@ -1 +1 @@
pub const LANG: &str = "en"; pub const LANG: &str = "ja";