2 # Don't use config_query here or you'll regret it ;)
3 # If you do, after a user says 'y' to configuring the locales,
4 # every subsequent recast will also pop up the locales menu until
5 # glibc is recast with `cast -r glibc`, which would also remove
6 # the selected locales and you'd need to reconfigure them again...
8 if query "Would you like to select locales?" n; then
9 local GLIBC_LOCALES_LIST &&
10 persistent_add GLIBC_LOCALES &&
11 GLIBC_LOCALES_LIST=`cat $SCRIPT_DIRECTORY/locales` &&
12 BACKTITLE="Glibc Configuration" &&
13 TITLE="Locale Selection" &&
14 HELP="Translated messages are automatically installed, but the locale database that controls other behavior is not.
15 Please select desired locale or locales.
16 If none are selected then all will be installed." &&
18 GLIBC_LOCALES=`dialog --backtitle "$BACKTITLE" \