mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
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:
parent
5bfdde503e
commit
30b4df8627
1 changed files with 27 additions and 12 deletions
|
@ -30,14 +30,21 @@ (define-module (gnu installer newt locale)
|
|||
#:export (run-locale-page))
|
||||
|
||||
(define (run-language-page languages language->text)
|
||||
(let ((title (G_ "Language")))
|
||||
(let ((title (G_ "Locale language")))
|
||||
(run-listbox-selection-page
|
||||
#:title title
|
||||
#:info-text (G_ "Choose the language to be used for the installation \
|
||||
process. The selected language will also be the default \
|
||||
language for the installed system.")
|
||||
#:info-text (G_ "Choose the locale's language to be used for the \
|
||||
installation process. A locale is a regional variant of your language \
|
||||
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-item->text language->text
|
||||
#:sort-listbox-items? #f
|
||||
#:button-text (G_ "Cancel")
|
||||
#:button-callback-procedure
|
||||
(lambda _
|
||||
|
@ -46,11 +53,11 @@ (define (run-language-page languages language->text)
|
|||
(&installer-step-abort)))))))
|
||||
|
||||
(define (run-territory-page territories territory->text)
|
||||
(let ((title (G_ "Location")))
|
||||
(let ((title (G_ "Locale location")))
|
||||
(run-listbox-selection-page
|
||||
#:title title
|
||||
#:info-text (G_ "Choose your location. This is a shortlist of locations \
|
||||
based on the language you selected.")
|
||||
#:info-text (G_ "Choose your locale's location. This is a shortlist of \
|
||||
locations based on the language you selected.")
|
||||
#:listbox-items territories
|
||||
#:listbox-item->text territory->text
|
||||
#:button-text (G_ "Back")
|
||||
|
@ -61,11 +68,11 @@ (define (run-territory-page territories territory->text)
|
|||
(&installer-step-abort)))))))
|
||||
|
||||
(define (run-codeset-page codesets)
|
||||
(let ((title (G_ "Codeset")))
|
||||
(let ((title (G_ "Locale codeset")))
|
||||
(run-listbox-selection-page
|
||||
#:title title
|
||||
#:info-text (G_ "Choose your codeset. If UTF-8 is available, it should be \
|
||||
preferred.")
|
||||
#:info-text (G_ "Choose your locale's codeset. If UTF-8 is available, \
|
||||
it should be preferred.")
|
||||
#:listbox-items codesets
|
||||
#:listbox-item->text identity
|
||||
#:listbox-default-item "UTF-8"
|
||||
|
@ -77,10 +84,12 @@ (define (run-codeset-page codesets)
|
|||
(&installer-step-abort)))))))
|
||||
|
||||
(define (run-modifier-page modifiers modifier->text)
|
||||
(let ((title (G_ "Modifier")))
|
||||
(let ((title (G_ "Locale modifier")))
|
||||
(run-listbox-selection-page
|
||||
#: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-item->text modifier->text
|
||||
#:button-text (G_ "Back")
|
||||
|
@ -94,6 +103,12 @@ (define* (run-locale-page #:key
|
|||
supported-locales
|
||||
iso639-languages
|
||||
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)
|
||||
"Raise the &installer-step-break condition if LOCALES contains exactly one
|
||||
|
|
Loading…
Reference in a new issue