Magellan Linux

Diff of /trunk/installer/ncurses-gui/locales.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1044 by niro, Sun May 30 21:40:02 2010 UTC revision 1480 by niro, Wed Aug 3 17:10:03 2011 UTC
# Line 38  select_timezone_location() Line 38  select_timezone_location()
38    
39  select_locale()  select_locale()
40  {  {
41   local items=( $(localedef --list-archive | grep $(${INSTALLER_DIR}/include/timezone.sh --get-code ${TIMEZONE_LOCATION})) )   local items
42   local count=${#items[*]}   local count
43   local i   local i
44     local retval
45    
46   dialog \   if [[ -z $(localedef --list-archive) ]]
47   --stdout \   then
48   --colors \   echo "Error: No locales found on this system!"
49   --backtitle "${TITLE}" \   retval=255
50   --menu "Select a default locale" \   else
51   0 0 ${count} \   items=( $(localedef --list-archive | grep $(${INSTALLER_DIR}/include/timezone.sh --get-code ${TIMEZONE_LOCATION})) )
52   $(for (( i=0; i<count; i++ )); do echo "${items[$i]} ."; done)   count=${#items[*]}
53    
54   return $?   dialog \
55     --stdout \
56     --colors \
57     --backtitle "${TITLE}" \
58     --menu "Select a default locale" \
59     0 0 ${count} \
60     $(for (( i=0; i<count; i++ )); do echo "${items[$i]} ."; done)
61     retval=$?
62     fi
63    
64     return ${retval}
65  }  }
66    
67  rundialog_select_timezone_region()  rundialog_select_timezone_region()

Legend:
Removed from v.1044  
changed lines
  Added in v.1480