123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576 |
- #!/bin/bash
- export TEXTDOMAIN=main
- export TEXTDOMAINDIR=/usr/share/Lucale/locale
- . gettext.sh
- OKL=$(echo $(gettext "Next") ; echo)
- CANCELL=$(echo $(gettext "Cancel") ; echo)
- COL1=$(echo $(gettext "selection") ; echo)
- COL2=$(echo $(gettext "Locales") ; echo)
- TITLEW=$(echo $(gettext "Configuring locales") ; echo)
- TEXT1=$(echo -e $(gettext "Locales are a framework to switch between multiple languages and allow\nusers to use their language, country, characters, collation order, etc.\nPlease choose which locales to generate. UTF-8 locales should be chosen\nby default, particularly for new installations. Other character sets may\n
- be useful for backwards compatibility with older systems and software.\n\nLocales to be generated:") ; echo)
- TEXT2=$(echo $(gettext "Configuring locales") ; echo)
- TEXT3=$(echo $(gettext " Many packages in Debian use locales to display text in the correct \n language for the user. You can choose a default locale for the system
- from the generated locales. \n \n This will select the default language for the entire system. If this \n system is a multi-user system where not all users are able to speak the
- default language, they will experience difficulties. \n \n Default locale for the system environment:") ; echo)
- TEXT4=$(echo $(gettext "Setting the Default locale for the system environment") ; echo)
- TEXT5=$(echo $(gettext "updating done!") ; echo)
- TEXT6=$(echo $(gettext "Updating system locales done!") ; echo)
- ERR=$(echo $(gettext "Update error!") ; echo)
- VAR=$(zenity --list \
- --title="$TITLEW" \
- --text="$TEXT1" \
- --ok-label="$OKL" \
- --cancel-label="$CANCELL" \
- --width=600 --height=400 \
- --multiple \
- --separator="\n" \
- --column="$COL1" \
- --column="$COL2" \
- FALSE "aa_DJ ISO-8859-1 " \
- FALSE "aa_DJ.UTF-8 UTF-8 " \
- FALSE "aa_ER UTF-8 " \
- FALSE "aa_ER@saaho UTF-8 " \
- FALSE "aa_ET UTF-8 " \
- FALSE "af_ZA ISO-8859-1 " \
- FALSE "af_ZA.UTF-8 UTF-8 " \
- FALSE "agr_PE UTF-8 " \
- FALSE "ak_GH UTF-8 " \
- FALSE "am_ET UTF-8 " \
- FALSE "an_ES ISO-8859-1 " \
- FALSE "an_ES.UTF-8 UTF-8 " \
- FALSE "anp_IN UTF-8 " \
- FALSE "ar_AE ISO-8859-6 " \
- FALSE "ar_AE.UTF-8 UTF-8 " \
- FALSE "ar_BH ISO-8859-6 " \
- FALSE "ar_BH.UTF-8 UTF-8 " \
- FALSE "ar_DZ ISO-8859-6 " \
- FALSE "ar_DZ.UTF-8 UTF-8 " \
- FALSE "ar_EG ISO-8859-6 " \
- FALSE "ar_EG.UTF-8 UTF-8 " \
- FALSE "ar_IN UTF-8 " \
- FALSE "ar_IQ ISO-8859-6 " \
- FALSE "ar_IQ.UTF-8 UTF-8 " \
- FALSE "ar_JO ISO-8859-6 " \
- FALSE "ar_JO.UTF-8 UTF-8 " \
- FALSE "ar_KW ISO-8859-6 " \
- FALSE "ar_KW.UTF-8 UTF-8 " \
- FALSE "ar_LB ISO-8859-6 " \
- FALSE "ar_LB.UTF-8 UTF-8 " \
- FALSE "ar_LY ISO-8859-6 " \
- FALSE "ar_LY.UTF-8 UTF-8 " \
- FALSE "ar_MA ISO-8859-6 " \
- FALSE "ar_MA.UTF-8 UTF-8 " \
- FALSE "ar_OM ISO-8859-6 " \
- FALSE "ar_OM.UTF-8 UTF-8 " \
- FALSE "ar_QA ISO-8859-6 " \
- FALSE "ar_QA.UTF-8 UTF-8 " \
- FALSE "ar_SA ISO-8859-6 " \
- FALSE "ar_SA.UTF-8 UTF-8 " \
- FALSE "ar_SD ISO-8859-6 " \
- FALSE "ar_SD.UTF-8 UTF-8 " \
- FALSE "ar_SS UTF-8 " \
- FALSE "ar_SY ISO-8859-6 " \
- FALSE "ar_SY.UTF-8 UTF-8 " \
- FALSE "ar_TN ISO-8859-6 " \
- FALSE "ar_TN.UTF-8 UTF-8 " \
- FALSE "ar_YE ISO-8859-6 " \
- FALSE "ar_YE.UTF-8 UTF-8 " \
- FALSE "as_IN UTF-8 " \
- FALSE "ast_ES ISO-8859-1 " \
- FALSE "ast_ES.UTF-8 UTF-8 " \
- FALSE "ayc_PE UTF-8 " \
- FALSE "az_AZ UTF-8 " \
- FALSE "az_IR UTF-8 " \
- FALSE "be_BY CP1251 " \
- FALSE "be_BY.UTF-8 UTF-8 " \
- FALSE "be_BY@latin UTF-8 " \
- FALSE "bem_ZM UTF-8 " \
- FALSE "ber_DZ UTF-8 " \
- FALSE "ber_MA UTF-8 " \
- FALSE "bg_BG CP1251 " \
- FALSE "bg_BG.UTF-8 UTF-8 " \
- FALSE "bhb_IN.UTF-8 UTF-8 " \
- FALSE "bho_IN UTF-8 " \
- FALSE "bho_NP UTF-8 " \
- FALSE "bi_VU UTF-8 " \
- FALSE "bn_BD UTF-8 " \
- FALSE "bn_IN UTF-8 " \
- FALSE "bo_CN UTF-8 " \
- FALSE "bo_IN UTF-8 " \
- FALSE "br_FR ISO-8859-1 " \
- FALSE "br_FR.UTF-8 UTF-8 " \
- FALSE "br_FR@euro ISO-8859-1 " \
- FALSE "brx_IN UTF-8 " \
- FALSE "bs_BA ISO-8859-2 " \
- FALSE "bs_BA.UTF-8 UTF-8 " \
- FALSE "byn_ER UTF-8 " \
- FALSE "ca_AD ISO-8859-1 " \
- FALSE "ca_AD.UTF-8 UTF-8 " \
- FALSE "ca_ES ISO-8859-1 " \
- FALSE "ca_ES.UTF-8 UTF-8 " \
- FALSE "ca_ES@euro ISO-8859-1 " \
- FALSE "ca_ES@valencia UTF-8 " \
- FALSE "ca_FR ISO-8859-1 " \
- FALSE "ca_FR.UTF-8 UTF-8 " \
- FALSE "ca_IT ISO-8859-1 " \
- FALSE "ca_IT.UTF-8 UTF-8 " \
- FALSE "ce_RU UTF-8 " \
- FALSE "chr_US UTF-8 " \
- FALSE "cmn_TW UTF-8 " \
- FALSE "crh_UA UTF-8 " \
- FALSE "cs_CZ ISO-8859-2 " \
- FALSE "cs_CZ.UTF-8 UTF-8 " \
- FALSE "csb_PL UTF-8 " \
- FALSE "cv_RU UTF-8 " \
- FALSE "cy_GB ISO-8859-1 " \
- FALSE "cy_GB.UTF-8 UTF-8 " \
- FALSE "da_DK ISO-8859-1 " \
- FALSE "da_DK.UTF-8 UTF-8 " \
- FALSE "de_AT ISO-8859-1 " \
- FALSE "de_AT.UTF-8 UTF-8 " \
- FALSE "de_AT@euro ISO-8859-1 " \
- FALSE "de_BE ISO-8859-1 " \
- FALSE "de_BE.UTF-8 UTF-8 " \
- FALSE "de_BE@euro ISO-8859-1 " \
- FALSE "de_CH ISO-8859-1 " \
- FALSE "de_CH.UTF-8 UTF-8 " \
- FALSE "de_DE ISO-8859-1 " \
- FALSE "de_DE.UTF-8 UTF-8 " \
- FALSE "de_DE@euro ISO-8859-1 " \
- FALSE "de_IT ISO-8859-1 " \
- FALSE "de_IT.UTF-8 UTF-8 " \
- FALSE "de_LI.UTF-8 UTF-8 " \
- FALSE "de_LU ISO-8859-1 " \
- FALSE "de_LU.UTF-8 UTF-8 " \
- FALSE "de_LU@euro ISO-8859-1 " \
- FALSE "doi_IN UTF-8 " \
- FALSE "dv_MV UTF-8 " \
- FALSE "dz_BT UTF-8 " \
- FALSE "el_CY ISO-8859-7 " \
- FALSE "el_CY.UTF-8 UTF-8 " \
- FALSE "el_GR ISO-8859-7 " \
- FALSE "el_GR.UTF-8 UTF-8 " \
- FALSE "el_GR@euro ISO-8859-7 " \
- FALSE "en_AG UTF-8 " \
- FALSE "en_AU ISO-8859-1 " \
- FALSE "en_AU.UTF-8 UTF-8 " \
- FALSE "en_BW ISO-8859-1 " \
- FALSE "en_BW.UTF-8 UTF-8 " \
- FALSE "en_CA ISO-8859-1 " \
- FALSE "en_CA.UTF-8 UTF-8 " \
- FALSE "en_DK ISO-8859-1 " \
- FALSE "en_DK.ISO-8859-15 ISO-8859-1 " \
- FALSE "en_DK.UTF-8 UTF-8 " \
- FALSE "en_GB ISO-8859-1 " \
- FALSE "en_GB.ISO-8859-15 ISO-8859-1 " \
- FALSE "en_GB.UTF-8 UTF-8 " \
- FALSE "en_HK ISO-8859-1 " \
- FALSE "en_HK.UTF-8 UTF-8 " \
- FALSE "en_IE ISO-8859-1 " \
- FALSE "en_IE.UTF-8 UTF-8 " \
- FALSE "en_IE@euro ISO-8859-1 " \
- FALSE "en_IL UTF-8 " \
- FALSE "en_IN UTF-8 " \
- FALSE "en_NG UTF-8 " \
- FALSE "en_NZ ISO-8859-1 " \
- FALSE "en_NZ.UTF-8 UTF-8 " \
- FALSE "en_PH ISO-8859-1 " \
- FALSE "en_PH.UTF-8 UTF-8 " \
- FALSE "en_SC.UTF-8 UTF-8 " \
- FALSE "en_SG ISO-8859-1 " \
- FALSE "en_SG.UTF-8 UTF-8 " \
- FALSE "en_US ISO-8859-1 " \
- FALSE "en_US.ISO-8859-15 ISO-8859-1 " \
- FALSE "en_US.UTF-8 UTF-8 " \
- FALSE "en_ZA ISO-8859-1 " \
- FALSE "en_ZA.UTF-8 UTF-8 " \
- FALSE "en_ZM UTF-8 " \
- FALSE "en_ZW ISO-8859-1 " \
- FALSE "en_ZW.UTF-8 UTF-8 " \
- FALSE "eo UTF-8 " \
- FALSE "es_AR ISO-8859-1 " \
- FALSE "es_AR.UTF-8 UTF-8 " \
- FALSE "es_BO ISO-8859-1 " \
- FALSE "es_BO.UTF-8 UTF-8 " \
- FALSE "es_CL ISO-8859-1 " \
- FALSE "es_CL.UTF-8 UTF-8 " \
- FALSE "es_CO ISO-8859-1 " \
- FALSE "es_CO.UTF-8 UTF-8 " \
- FALSE "es_CR ISO-8859-1 " \
- FALSE "es_CR.UTF-8 UTF-8 " \
- FALSE "es_CU UTF-8 " \
- FALSE "es_DO ISO-8859-1 " \
- FALSE "es_DO.UTF-8 UTF-8 " \
- FALSE "es_EC ISO-8859-1 " \
- FALSE "es_EC.UTF-8 UTF-8 " \
- FALSE "es_ES ISO-8859-1 " \
- FALSE "es_ES.UTF-8 UTF-8 " \
- FALSE "es_ES@euro ISO-8859-1 " \
- FALSE "es_GT ISO-8859-1 " \
- FALSE "es_GT.UTF-8 UTF-8 " \
- FALSE "es_HN ISO-8859-1 " \
- FALSE "es_HN.UTF-8 UTF-8 " \
- FALSE "es_MX ISO-8859-1 " \
- FALSE "es_MX.UTF-8 UTF-8 " \
- FALSE "es_NI ISO-8859-1 " \
- FALSE "es_NI.UTF-8 UTF-8 " \
- FALSE "es_PA ISO-8859-1 " \
- FALSE "es_PA.UTF-8 UTF-8 " \
- FALSE "es_PE ISO-8859-1 " \
- FALSE "es_PE.UTF-8 UTF-8 " \
- FALSE "es_PR ISO-8859-1 " \
- FALSE "es_PR.UTF-8 UTF-8 " \
- FALSE "es_PY ISO-8859-1 " \
- FALSE "es_PY.UTF-8 UTF-8 " \
- FALSE "es_SV ISO-8859-1 " \
- FALSE "es_SV.UTF-8 UTF-8 " \
- FALSE "es_US ISO-8859-1 " \
- FALSE "es_US.UTF-8 UTF-8 " \
- FALSE "es_UY ISO-8859-1 " \
- FALSE "es_UY.UTF-8 UTF-8 " \
- FALSE "es_VE ISO-8859-1 " \
- FALSE "es_VE.UTF-8 UTF-8 " \
- FALSE "et_EE ISO-8859-1 " \
- FALSE "et_EE.ISO-8859-15 ISO-8859-1 " \
- FALSE "et_EE.UTF-8 UTF-8 " \
- FALSE "eu_ES ISO-8859-1 " \
- FALSE "eu_ES.UTF-8 UTF-8 " \
- FALSE "eu_ES@euro ISO-8859-1 " \
- FALSE "eu_FR ISO-8859-1 " \
- FALSE "eu_FR.UTF-8 UTF-8 " \
- FALSE "eu_FR@euro ISO-8859-1 " \
- FALSE "fa_IR UTF-8 " \
- FALSE "ff_SN UTF-8 " \
- FALSE "fi_FI ISO-8859-1 " \
- FALSE "fi_FI.UTF-8 UTF-8 " \
- FALSE "fi_FI@euro ISO-8859-1 " \
- FALSE "fil_PH UTF-8 " \
- FALSE "fo_FO ISO-8859-1 " \
- FALSE "fo_FO.UTF-8 UTF-8 " \
- FALSE "fr_BE ISO-8859-1 " \
- FALSE "fr_BE.UTF-8 UTF-8 " \
- FALSE "fr_BE@euro ISO-8859-1 " \
- FALSE "fr_CA ISO-8859-1 " \
- FALSE "fr_CA.UTF-8 UTF-8 " \
- FALSE "fr_CH ISO-8859-1 " \
- FALSE "fr_CH.UTF-8 UTF-8 " \
- FALSE "fr_FR ISO-8859-1 " \
- FALSE "fr_FR.UTF-8 UTF-8 " \
- FALSE "fr_FR@euro ISO-8859-1 " \
- FALSE "fr_LU ISO-8859-1 " \
- FALSE "fr_LU.UTF-8 UTF-8 " \
- FALSE "fr_LU@euro ISO-8859-1 " \
- FALSE "fur_IT UTF-8 " \
- FALSE "fy_DE UTF-8 " \
- FALSE "fy_NL UTF-8 " \
- FALSE "ga_IE ISO-8859-1 " \
- FALSE "ga_IE.UTF-8 UTF-8 " \
- FALSE "ga_IE@euro ISO-8859-1 " \
- FALSE "gd_GB ISO-8859-1 " \
- FALSE "gd_GB.UTF-8 UTF-8 " \
- FALSE "gez_ER UTF-8 " \
- FALSE "gez_ER@abegede UTF-8 " \
- FALSE "gez_ET UTF-8 " \
- FALSE "gez_ET@abegede UTF-8 " \
- FALSE "gl_ES ISO-8859-1 " \
- FALSE "gl_ES.UTF-8 UTF-8 " \
- FALSE "gl_ES@euro ISO-8859-1 " \
- FALSE "gu_IN UTF-8 " \
- FALSE "gv_GB ISO-8859-1 " \
- FALSE "gv_GB.UTF-8 UTF-8 " \
- FALSE "ha_NG UTF-8 " \
- FALSE "hak_TW UTF-8 " \
- FALSE "he_IL ISO-8859-8 " \
- FALSE "he_IL.UTF-8 UTF-8 " \
- FALSE "hi_IN UTF-8 " \
- FALSE "hif_FJ UTF-8 " \
- FALSE "hne_IN UTF-8 " \
- FALSE "hr_HR ISO-8859-2 " \
- FALSE "hr_HR.UTF-8 UTF-8 " \
- FALSE "hsb_DE ISO-8859-2 " \
- FALSE "hsb_DE.UTF-8 UTF-8 " \
- FALSE "ht_HT UTF-8 " \
- FALSE "hu_HU ISO-8859-2 " \
- FALSE "hu_HU.UTF-8 UTF-8 " \
- FALSE "hy_AM UTF-8 " \
- FALSE "hy_AM.ARMSCII-8 ARMSCII-8 " \
- FALSE "ia_FR UTF-8 " \
- FALSE "id_ID ISO-8859-1 " \
- FALSE "id_ID.UTF-8 UTF-8 " \
- FALSE "ig_NG UTF-8 " \
- FALSE "ik_CA UTF-8 " \
- FALSE "is_IS ISO-8859-1 " \
- FALSE "is_IS.UTF-8 UTF-8 " \
- FALSE "it_CH ISO-8859-1 " \
- FALSE "it_CH.UTF-8 UTF-8 " \
- FALSE "it_IT ISO-8859-1 " \
- FALSE "it_IT.UTF-8 UTF-8 " \
- FALSE "it_IT@euro ISO-8859-1 " \
- FALSE "iu_CA UTF-8 " \
- FALSE "ja_JP.EUC-JP EUC-JP " \
- FALSE "ja_JP.UTF-8 UTF-8 " \
- FALSE "ka_GE GEORGIAN-PS " \
- FALSE "ka_GE.UTF-8 UTF-8 " \
- FALSE "kab_DZ UTF-8 " \
- FALSE "kk_KZ PT154 " \
- FALSE "kk_KZ.RK1048 RK1048 " \
- FALSE "kk_KZ.UTF-8 UTF-8 " \
- FALSE "kl_GL ISO-8859-1 " \
- FALSE "kl_GL.UTF-8 UTF-8 " \
- FALSE "km_KH UTF-8 " \
- FALSE "kn_IN UTF-8 " \
- FALSE "ko_KR.EUC-KR EUC-KR " \
- FALSE "ko_KR.UTF-8 UTF-8 " \
- FALSE "kok_IN UTF-8 " \
- FALSE "ks_IN UTF-8 " \
- FALSE "ks_IN@devanagari UTF-8 " \
- FALSE "ku_TR ISO-8859-9 " \
- FALSE "ku_TR.UTF-8 UTF-8 " \
- FALSE "kw_GB ISO-8859-1 " \
- FALSE "kw_GB.UTF-8 UTF-8 " \
- FALSE "ky_KG UTF-8 " \
- FALSE "lb_LU UTF-8 " \
- FALSE "lg_UG ISO-8859-1 " \
- FALSE "lg_UG.UTF-8 UTF-8 " \
- FALSE "li_BE UTF-8 " \
- FALSE "li_NL UTF-8 " \
- FALSE "lij_IT UTF-8 " \
- FALSE "ln_CD UTF-8 " \
- FALSE "lo_LA UTF-8 " \
- FALSE "lt_LT ISO-8859-1 " \
- FALSE "lt_LT.UTF-8 UTF-8 " \
- FALSE "lv_LV ISO-8859-1 " \
- FALSE "lv_LV.UTF-8 UTF-8 " \
- FALSE "lzh_TW UTF-8 " \
- FALSE "mag_IN UTF-8 " \
- FALSE "mai_IN UTF-8 " \
- FALSE "mai_NP UTF-8 " \
- FALSE "mfe_MU UTF-8 " \
- FALSE "mg_MG ISO-8859-1 " \
- FALSE "mg_MG.UTF-8 UTF-8 " \
- FALSE "mhr_RU UTF-8 " \
- FALSE "mi_NZ ISO-8859-1 " \
- FALSE "mi_NZ.UTF-8 UTF-8 " \
- FALSE "miq_NI UTF-8 " \
- FALSE "mjw_IN UTF-8 " \
- FALSE "mk_MK ISO-8859-5 " \
- FALSE "mk_MK.UTF-8 UTF-8 " \
- FALSE "ml_IN UTF-8 " \
- FALSE "mn_MN UTF-8 " \
- FALSE "mni_IN UTF-8 " \
- FALSE "mr_IN UTF-8 " \
- FALSE "ms_MY ISO-8859-1 " \
- FALSE "ms_MY.UTF-8 UTF-8 " \
- FALSE "mt_MT ISO-8859-3 " \
- FALSE "mt_MT.UTF-8 UTF-8 " \
- FALSE "my_MM UTF-8 " \
- FALSE "nan_TW UTF-8 " \
- FALSE "nan_TW@latin UTF-8 " \
- FALSE "nb_NO ISO-8859-1 " \
- FALSE "nb_NO.UTF-8 UTF-8 " \
- FALSE "nds_DE UTF-8 " \
- FALSE "nds_NL UTF-8 " \
- FALSE "ne_NP UTF-8 " \
- FALSE "nhn_MX UTF-8 " \
- FALSE "niu_NU UTF-8 " \
- FALSE "niu_NZ UTF-8 " \
- FALSE "nl_AW UTF-8 " \
- FALSE "nl_BE ISO-8859-1 " \
- FALSE "nl_BE.UTF-8 UTF-8 " \
- FALSE "nl_BE@euro ISO-8859-1 " \
- FALSE "nl_NL ISO-8859-1 " \
- FALSE "nl_NL.UTF-8 UTF-8 " \
- FALSE "nl_NL@euro ISO-8859-1 " \
- FALSE "nn_NO ISO-8859-1 " \
- FALSE "nn_NO.UTF-8 UTF-8 " \
- FALSE "nr_ZA UTF-8 " \
- FALSE "nso_ZA UTF-8 " \
- FALSE "oc_FR ISO-8859-1 " \
- FALSE "oc_FR.UTF-8 UTF-8 " \
- FALSE "om_ET UTF-8 " \
- FALSE "om_KE ISO-8859-1 " \
- FALSE "om_KE.UTF-8 UTF-8 " \
- FALSE "or_IN UTF-8 " \
- FALSE "os_RU UTF-8 " \
- FALSE "pa_IN UTF-8 " \
- FALSE "pa_PK UTF-8 " \
- FALSE "pap_AW UTF-8 " \
- FALSE "pap_CW UTF-8 " \
- FALSE "pl_PL ISO-8859-2 " \
- FALSE "pl_PL.UTF-8 UTF-8 " \
- FALSE "ps_AF UTF-8 " \
- FALSE "pt_BR ISO-8859-1 " \
- FALSE "pt_BR.UTF-8 UTF-8 " \
- FALSE "pt_PT ISO-8859-1 " \
- FALSE "pt_PT.UTF-8 UTF-8 " \
- FALSE "pt_PT@euro ISO-8859-1 " \
- FALSE "quz_PE UTF-8 " \
- FALSE "raj_IN UTF-8 " \
- FALSE "ro_RO ISO-8859-2 " \
- FALSE "ro_RO.UTF-8 UTF-8 " \
- FALSE "ru_RU ISO-8859-5 " \
- FALSE "ru_RU.CP1251 CP1251 " \
- FALSE "ru_RU.KOI8-R KOI8-R " \
- FALSE "ru_RU.UTF-8 UTF-8 " \
- FALSE "ru_UA KOI8-U " \
- FALSE "ru_UA.UTF-8 UTF-8 " \
- FALSE "rw_RW UTF-8 " \
- FALSE "sa_IN UTF-8 " \
- FALSE "sat_IN UTF-8 " \
- FALSE "sc_IT UTF-8 " \
- FALSE "sd_IN UTF-8 " \
- FALSE "sd_IN@devanagari UTF-8 " \
- FALSE "se_NO UTF-8 " \
- FALSE "sgs_LT UTF-8 " \
- FALSE "shn_MM UTF-8 " \
- FALSE "shs_CA UTF-8 " \
- FALSE "si_LK UTF-8 " \
- FALSE "sid_ET UTF-8 " \
- FALSE "sk_SK ISO-8859-2 " \
- FALSE "sk_SK.UTF-8 UTF-8 " \
- FALSE "sl_SI ISO-8859-2 " \
- FALSE "sl_SI.UTF-8 UTF-8 " \
- FALSE "sm_WS UTF-8 " \
- FALSE "so_DJ ISO-8859-1 " \
- FALSE "so_DJ.UTF-8 UTF-8 " \
- FALSE "so_ET UTF-8 " \
- FALSE "so_KE ISO-8859-1 " \
- FALSE "so_KE.UTF-8 UTF-8 " \
- FALSE "so_SO ISO-8859-1 " \
- FALSE "so_SO.UTF-8 UTF-8 " \
- FALSE "sq_AL ISO-8859-1 " \
- FALSE "sq_AL.UTF-8 UTF-8 " \
- FALSE "sq_MK UTF-8 " \
- FALSE "sr_ME UTF-8 " \
- FALSE "sr_RS UTF-8 " \
- FALSE "sr_RS@latin UTF-8 " \
- FALSE "ss_ZA UTF-8 " \
- FALSE "st_ZA ISO-8859-1 " \
- FALSE "st_ZA.UTF-8 UTF-8 " \
- FALSE "sv_FI ISO-8859-1 " \
- FALSE "sv_FI.UTF-8 UTF-8 " \
- FALSE "sv_FI@euro ISO-8859-1 " \
- FALSE "sv_SE ISO-8859-1 " \
- FALSE "sv_SE.ISO-8859-15 ISO-8859-1 " \
- FALSE "sv_SE.UTF-8 UTF-8 " \
- FALSE "sw_KE UTF-8 " \
- FALSE "sw_TZ UTF-8 " \
- FALSE "szl_PL UTF-8 " \
- FALSE "ta_IN UTF-8 " \
- FALSE "ta_LK UTF-8 " \
- FALSE "tcy_IN.UTF-8 UTF-8 " \
- FALSE "te_IN UTF-8 " \
- FALSE "tg_TJ KOI8-T " \
- FALSE "tg_TJ.UTF-8 UTF-8 " \
- FALSE "th_TH TIS-620 " \
- FALSE "th_TH.UTF-8 UTF-8 " \
- FALSE "the_NP UTF-8 " \
- FALSE "ti_ER UTF-8 " \
- FALSE "ti_ET UTF-8 " \
- FALSE "tig_ER UTF-8 " \
- FALSE "tk_TM UTF-8 " \
- FALSE "tl_PH ISO-8859-1 " \
- FALSE "tl_PH.UTF-8 UTF-8 " \
- FALSE "tn_ZA UTF-8 " \
- FALSE "to_TO UTF-8 " \
- FALSE "tpi_PG UTF-8 " \
- FALSE "tr_CY ISO-8859-9 " \
- FALSE "tr_CY.UTF-8 UTF-8 " \
- FALSE "tr_TR ISO-8859-9 " \
- FALSE "tr_TR.UTF-8 UTF-8 " \
- FALSE "ts_ZA UTF-8 " \
- FALSE "tt_RU UTF-8 " \
- FALSE "tt_RU@iqtelif UTF-8 " \
- FALSE "ug_CN UTF-8 " \
- FALSE "uk_UA KOI8-U " \
- FALSE "uk_UA.UTF-8 UTF-8 " \
- FALSE "unm_US UTF-8 " \
- FALSE "ur_IN UTF-8 " \
- FALSE "ur_PK UTF-8 " \
- FALSE "uz_UZ ISO-8859-1 " \
- FALSE "uz_UZ.UTF-8 UTF-8 " \
- FALSE "uz_UZ@cyrillic UTF-8 " \
- FALSE "ve_ZA UTF-8 " \
- FALSE "vi_VN UTF-8 " \
- FALSE "wa_BE ISO-8859-1 " \
- FALSE "wa_BE.UTF-8 UTF-8 " \
- FALSE "wa_BE@euro ISO-8859-1 " \
- FALSE "wae_CH UTF-8 " \
- FALSE "wal_ET UTF-8 " \
- FALSE "wo_SN UTF-8 " \
- FALSE "xh_ZA ISO-8859-1 " \
- FALSE "xh_ZA.UTF-8 UTF-8 " \
- FALSE "yi_US CP1255 " \
- FALSE "yi_US.UTF-8 UTF-8 " \
- FALSE "yo_NG UTF-8 " \
- FALSE "yue_HK UTF-8 " \
- FALSE "yuw_PG UTF-8 " \
- FALSE "zh_CN GB2312 " \
- FALSE "zh_CN.GB18030 GB18030 " \
- FALSE "zh_CN.GBK GBK " \
- FALSE "zh_CN.UTF-8 UTF-8 " \
- FALSE "zh_HK BIG5-HKSCS " \
- FALSE "zh_HK.UTF-8 UTF-8 " \
- FALSE "zh_SG GB2312 " \
- FALSE "zh_SG.GBK GBK " \
- FALSE "zh_SG.UTF-8 UTF-8 " \
- FALSE "zh_TW BIG5 " \
- FALSE "zh_TW.EUC-TW EUC-TW " \
- FALSE "zh_TW.UTF-8 UTF-8 " \
- FALSE "zu_ZA ISO-8859-1 " \
- FALSE "zu_ZA.UTF-8 UTF-8 " \
- --checklist
- )
- PROC(){
- echo "setting up your locales selections."
- echo "# this file was generated automaticaly by lucale
- # you can find the origin version of this file in
- # /etc/locale.gen.old" > /etc/locale.gen
- cat /usr/share/Lucale/tmp-gen >> /etc/locale.gen
- echo "generate the locale ."
- /usr/sbin/locale-gen 2>&1 | tee /dev/stderr | sed -u "s/^ *[0-9]*K[ .]*\([0-9]*%\).*/\1/" | zenity --title="$TITLEW" --text="$TEXT2" --progress --pulsate --no-cancel --ok-label="$OKL" --width=300 --height=120 --auto-kill 2> /dev/null
- echo
- LOCALENV=$(locale -a)
- echo -e "$LOCALENV" > /usr/share/Lucale/locale-env
- (( $? != 0 )) && zenity --error --text="$ERR"
- VAR1=$(zenity --list \
- --title="$TEXT2" \
- --text="$TEXT3" \
- --ok-label="$OKL" \
- --cancel-label="$CANCELL" \
- --width=600 --height=400 \
- --separator="\n" \
- --column="$COL1" \
- --column "$COL2" $(sed s/^/FALSE\ / /usr/share/Lucale/locale-env) \
- --radiolist)
- echo "setting up your locales selections."
- echo "# this file was generated automaticaly by lucale" > /etc/default/locale
- echo -e "LANG=$VAR1" >> /etc/default/locale
- echo "generate the locale ."
- /usr/sbin/locale-gen "$VAR1" 2>&1 | tee /dev/stderr | sed -u "s/^ *[0-9]*K[ .]*\([0-9]*%\).*/\1/" | zenity --title="$TEXT2" --text="$TEXT4" --no-cancel --ok-label="$OKL" --progress --pulsate --width=300 --height=120 --auto-kill 2> /dev/null
- echo
- zenity --info --title="$TEXT5" --width=200 --height=100 --text "$TEXT6"
- (( $? != 0 )) && zenity --error --text="$ERR"
- exit 0
- }
- echo -e "$VAR" > /usr/share/Lucale/tmp-gen
- OUTFILE=$(grep -q '[^[:space:]]' /usr/share/Lucale/tmp-gen || echo "True")
- if [ ! "$OUTFILE" ]
- then
- PROC
- else
- zenity --info --title="$TEXT5" --width=200 --height=100 --text "$TEXT6"
- (( $? != 0 )) && zenity --error --text="$ERR"
- exit 0
- fi
|