[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
161/197: installer: Improve i18n in ping page.
From: |
Danny Milosavljevic |
Subject: |
161/197: installer: Improve i18n in ping page. |
Date: |
Mon, 3 Jul 2017 20:37:18 -0400 (EDT) |
dannym pushed a commit to branch wip-installer-2
in repository guix.
commit 98494ca1c9d65662147e47b8ba3a99679d68cb10
Author: John Darrington <address@hidden>
Date: Wed Feb 1 08:43:02 2017 +0100
installer: Improve i18n in ping page.
* gnu/system/installer/ping.scm (ping-key-handler): Deal properly
with internationalised strings.
---
gnu/system/installer/ping.scm | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/gnu/system/installer/ping.scm b/gnu/system/installer/ping.scm
index 0620517..2bde5eb 100644
--- a/gnu/system/installer/ping.scm
+++ b/gnu/system/installer/ping.scm
@@ -22,6 +22,7 @@
#:use-module (gnu system installer misc)
#:use-module (gnu system installer utils)
#:use-module (guix store)
+ #:use-module (guix ui)
#:use-module (gurses buttons)
#:use-module (ncurses curses)
#:use-module (web uri)
@@ -90,9 +91,9 @@
(car %default-substitute-urls)))))
(addstr test-window
- (gettext "Test successful. Network is working."))
+ (_ "Test successful. Network is working."))
(addstr test-window
- (gettext "Test failed. No servers reached.")))
+ (_ "Test failed. No servers reached.")))
(refresh* test-window)))) #f))
@@ -100,7 +101,13 @@
(when (not (page-initialised? page))
(ping-page-init page)
(page-set-initialised! page #t))
- (refresh* (page-datum page 'test-window)))
+
+ (let ((text-window (page-datum page 'text-window)))
+ (addstr* text-window
+ (_ "Choose \"Test\" to check network connectivity."))
+
+ (refresh* text-window)
+ (refresh* (page-datum page 'test-window))))
(define (ping-page-init p)
(let* ((s (page-surface p))
@@ -126,10 +133,9 @@
)
(box test-window 0 0)
- (addstr* text-window
- (gettext "Choose \"Test\" to check network connectivity."))
(page-set-wwin! p frame)
(page-set-datum! p 'test-window test-window)
+ (page-set-datum! p 'text-window text-window)
(page-set-datum! p 'navigation buttons)
(buttons-post buttons button-window)
(refresh* text-window)
- 134/197: installer: Tolerate an undefined system role in config generation., (continued)
- 134/197: installer: Tolerate an undefined system role in config generation., Danny Milosavljevic, 2017/07/03
- 137/197: installer: Prepare for new wireless network features., Danny Milosavljevic, 2017/07/03
- 140/197: installer: Fix the key map option., Danny Milosavljevic, 2017/07/03
- 132/197: installer: Add new procedure to check file system specifications., Danny Milosavljevic, 2017/07/03
- 145/197: gurses: Avoid yet another use of car and cdr., Danny Milosavljevic, 2017/07/03
- 129/197: installer: Emphasise that writing filesystems destroys existing data., Danny Milosavljevic, 2017/07/03
- 150/197: gurses: Reimplement pad-complex-string., Danny Milosavljevic, 2017/07/03
- 159/197: installer: Fix i18n in dialogs., Danny Milosavljevic, 2017/07/03
- 154/197: installer: Main page: Redisplay translatable strings upon refresh., Danny Milosavljevic, 2017/07/03
- 157/197: installer: Replace 'file-browser' with 'key-map'., Danny Milosavljevic, 2017/07/03
- 161/197: installer: Improve i18n in ping page.,
Danny Milosavljevic <=
- 162/197: gurses: Avoid one use of car/cdr., Danny Milosavljevic, 2017/07/03
- 166/197: installer: Provide verbose description of locale., Danny Milosavljevic, 2017/07/03
- 167/197: installer: Fix bug when changing languages., Danny Milosavljevic, 2017/07/03
- 156/197: installer: New page to select language., Danny Milosavljevic, 2017/07/03
- 168/197: installer: Fix the startup locale., Danny Milosavljevic, 2017/07/03
- 173/197: installer: Remove whitespace., Danny Milosavljevic, 2017/07/03
- 01/197: gnu: Add graphical installer, Danny Milosavljevic, 2017/07/03
- 174/197: installer: Provide the ability to add new users., Danny Milosavljevic, 2017/07/03
- 178/197: installer: Infer likely entries for user accounts from the gecos field., Danny Milosavljevic, 2017/07/03
- 180/197: installer: Use a different mount-point for each install attempt., Danny Milosavljevic, 2017/07/03