[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/11: installer: Simplify locale dialogs.
From: |
guix-commits |
Subject: |
03/11: installer: Simplify locale dialogs. |
Date: |
Sun, 7 Apr 2019 12:06:13 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 04d0aa99059e4925dcfb55d4d9a550f225948612
Author: Ludovic Courtès <address@hidden>
Date: Sun Apr 7 12:11:55 2019 +0200
installer: Simplify locale dialogs.
* gnu/installer/newt/locale.scm (run-language-page): Simplify text.
(run-territory-page): Likewise.
(run-codeset-page): Likewise.
(run-locale-page): Don't call 'run-codeset-page' when "UTF-8" is among
the codesets of LOCALES.
---
gnu/installer/newt/locale.scm | 24 +++++++++---------------
1 file changed, 9 insertions(+), 15 deletions(-)
diff --git a/gnu/installer/newt/locale.scm b/gnu/installer/newt/locale.scm
index 4fa07df..b819d06 100644
--- a/gnu/installer/newt/locale.scm
+++ b/gnu/installer/newt/locale.scm
@@ -33,14 +33,8 @@
(let ((title (G_ "Locale language")))
(run-listbox-selection-page
#:title title
- #: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-text (G_ "Choose the language to use for the \
+installation process and for the installed system.")
#:info-textbox-width 70
#:listbox-items languages
#:listbox-item->text language->text
@@ -56,8 +50,7 @@ installed system.")
(let ((title (G_ "Locale location")))
(run-listbox-selection-page
#:title title
- #:info-text (G_ "Choose your locale's location. This is a shortlist of \
-locations based on the language you selected.")
+ #:info-text (G_ "Choose a territory for this language.")
#:listbox-items territories
#:listbox-item->text territory->text
#:button-text (G_ "Back")
@@ -71,8 +64,7 @@ locations based on the language you selected.")
(let ((title (G_ "Locale codeset")))
(run-listbox-selection-page
#:title title
- #:info-text (G_ "Choose your locale's codeset. If UTF-8 is available, \
- it should be preferred.")
+ #:info-text (G_ "Choose the locale encoding.")
#:listbox-items codesets
#:listbox-item->text identity
#:listbox-default-item "UTF-8"
@@ -191,9 +183,11 @@ glibc locale string and return it."
;; narrow down the search of a locale.
(break-on-locale-found locales)
- ;; Otherwise, ask for a codeset.
- (run-codeset-page
- (delete-duplicates (map locale-codeset locales)))))))
+ ;; Otherwise, choose a codeset.
+ (let ((codesets (delete-duplicates (map locale-codeset locales))))
+ (if (member "UTF-8" codesets)
+ "UTF-8" ;don't even ask
+ (run-codeset-page codesets)))))))
(installer-step
(id 'modifier)
(compute
- branch master updated (32c055f -> 71b4974), guix-commits, 2019/04/07
- 01/11: size: Optimize dependency size computation., guix-commits, 2019/04/07
- 03/11: installer: Simplify locale dialogs.,
guix-commits <=
- 07/11: installer: Remove SLiM-specific instructions., guix-commits, 2019/04/07
- 02/11: doc: Fix syntax of cross-manual references., guix-commits, 2019/04/07
- 05/11: installer: Use the normalized codeset in the 'locale' field., guix-commits, 2019/04/07
- 06/11: installer: Fix wording for "Internet access.", guix-commits, 2019/04/07
- 08/11: installer: Generalize desktop environments to system services., guix-commits, 2019/04/07
- 11/11: gnu: address@hidden: Move to ssh.scm., guix-commits, 2019/04/07
- 10/11: services: dropbear: Add default value., guix-commits, 2019/04/07
- 04/11: installer: Move the 'locale' step before the 'welcome' step., guix-commits, 2019/04/07
- 09/11: installer: Add dialog to select networking services., guix-commits, 2019/04/07