installer: locale: Make clear that the point is to select a glibc locale.

* gnu/installer/newt/locale.scm (run-language-page): Be more specific about
what is a locale and what are the different steps involved in the info messages.
This commit is contained in:
Mathieu Othacehe 2018-12-05 19:27:31 +09:00 committed by Ludovic Courtès
parent 5bfdde503e
commit 30b4df8627
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 27 additions and 12 deletions

View File

@ -30,14 +30,21 @@
#:export (run-locale-page)) #:export (run-locale-page))
(define (run-language-page languages language->text) (define (run-language-page languages language->text)
(let ((title (G_ "Language"))) (let ((title (G_ "Locale language")))
(run-listbox-selection-page (run-listbox-selection-page
#:title title #:title title
#:info-text (G_ "Choose the language to be used for the installation \ #:info-text (G_ "Choose the locale's language to be used for the \
process. The selected language will also be the default \ installation process. A locale is a regional variant of your language \
language for the installed system.") encompassing number, date and currency format, among other details.
Based on the language you choose, you will possibly be asked to \
select a locale's territory, codeset and modifier in the next \
steps. The locale will also be used as the default one for the \
installed system.")
#:info-textbox-width 70
#:listbox-items languages #:listbox-items languages
#:listbox-item->text language->text #:listbox-item->text language->text
#:sort-listbox-items? #f
#:button-text (G_ "Cancel") #:button-text (G_ "Cancel")
#:button-callback-procedure #:button-callback-procedure
(lambda _ (lambda _
@ -46,11 +53,11 @@ language for the installed system.")
(&installer-step-abort))))))) (&installer-step-abort)))))))
(define (run-territory-page territories territory->text) (define (run-territory-page territories territory->text)
(let ((title (G_ "Location"))) (let ((title (G_ "Locale location")))
(run-listbox-selection-page (run-listbox-selection-page
#:title title #:title title
#:info-text (G_ "Choose your location. This is a shortlist of locations \ #:info-text (G_ "Choose your locale's location. This is a shortlist of \
based on the language you selected.") locations based on the language you selected.")
#:listbox-items territories #:listbox-items territories
#:listbox-item->text territory->text #:listbox-item->text territory->text
#:button-text (G_ "Back") #:button-text (G_ "Back")
@ -61,11 +68,11 @@ based on the language you selected.")
(&installer-step-abort))))))) (&installer-step-abort)))))))
(define (run-codeset-page codesets) (define (run-codeset-page codesets)
(let ((title (G_ "Codeset"))) (let ((title (G_ "Locale codeset")))
(run-listbox-selection-page (run-listbox-selection-page
#:title title #:title title
#:info-text (G_ "Choose your codeset. If UTF-8 is available, it should be \ #:info-text (G_ "Choose your locale's codeset. If UTF-8 is available, \
preferred.") it should be preferred.")
#:listbox-items codesets #:listbox-items codesets
#:listbox-item->text identity #:listbox-item->text identity
#:listbox-default-item "UTF-8" #:listbox-default-item "UTF-8"
@ -77,10 +84,12 @@ preferred.")
(&installer-step-abort))))))) (&installer-step-abort)))))))
(define (run-modifier-page modifiers modifier->text) (define (run-modifier-page modifiers modifier->text)
(let ((title (G_ "Modifier"))) (let ((title (G_ "Locale modifier")))
(run-listbox-selection-page (run-listbox-selection-page
#:title title #:title title
#:info-text (G_ "Choose your modifier.") #:info-text (G_ "Choose your locale's modifier. The most frequent \
modifier is euro. It indicates that you want to use Euro as the currency \
symbol.")
#:listbox-items modifiers #:listbox-items modifiers
#:listbox-item->text modifier->text #:listbox-item->text modifier->text
#:button-text (G_ "Back") #:button-text (G_ "Back")
@ -94,6 +103,12 @@ preferred.")
supported-locales supported-locales
iso639-languages iso639-languages
iso3166-territories) iso3166-territories)
"Run a page asking the user to select a locale language and possibly
territory, codeset and modifier. Use SUPPORTED-LOCALES as the list of glibc
available locales. ISO639-LANGUAGES is an association list associating a
locale code to a locale name. ISO3166-TERRITORIES is an association list
associating a territory code with a territory name. The formated locale, under
glibc format is returned."
(define (break-on-locale-found locales) (define (break-on-locale-found locales)
"Raise the &installer-step-break condition if LOCALES contains exactly one "Raise the &installer-step-break condition if LOCALES contains exactly one