mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
installer: Look up timezone name translations in "iso_3166-1".
* gnu/installer/newt/timezone.scm (run-timezone-page): Add call to 'gettext' for timezone names.
This commit is contained in:
parent
7837a57241
commit
7cb7be17af
1 changed files with 4 additions and 1 deletions
|
@ -50,12 +50,15 @@ (define (all-but-last list)
|
|||
|
||||
(define (run-page timezone-tree)
|
||||
(define (loop path)
|
||||
;; XXX: Translation of time zones isn't perfect here because the
|
||||
;; "iso_3166-1" domain contains translation for "territories" (like
|
||||
;; "Antarctic") but not for continents (like "Africa").
|
||||
(let ((timezones (locate-children timezone-tree path)))
|
||||
(run-listbox-selection-page
|
||||
#:title (G_ "Timezone")
|
||||
#:info-text (G_ "Please select a timezone.")
|
||||
#:listbox-items timezones
|
||||
#:listbox-item->text identity
|
||||
#:listbox-item->text (cut gettext <> "iso_3166-1")
|
||||
#:button-text (if (null? path)
|
||||
(G_ "Exit")
|
||||
(G_ "Back"))
|
||||
|
|
Loading…
Reference in a new issue