Skip to content
Snippets Groups Projects
Unverified Commit 7cb7be17 authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

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.
parent 7837a572
No related branches found
No related tags found
No related merge requests found
...@@ -50,12 +50,15 @@ (define (all-but-last list) ...@@ -50,12 +50,15 @@ (define (all-but-last list)
(define (run-page timezone-tree) (define (run-page timezone-tree)
(define (loop path) (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))) (let ((timezones (locate-children timezone-tree path)))
(run-listbox-selection-page (run-listbox-selection-page
#:title (G_ "Timezone") #:title (G_ "Timezone")
#:info-text (G_ "Please select a timezone.") #:info-text (G_ "Please select a timezone.")
#:listbox-items timezones #:listbox-items timezones
#:listbox-item->text identity #:listbox-item->text (cut gettext <> "iso_3166-1")
#:button-text (if (null? path) #:button-text (if (null? path)
(G_ "Exit") (G_ "Exit")
(G_ "Back")) (G_ "Back"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment