main 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576
  1. #!/bin/bash
  2. export TEXTDOMAIN=main
  3. export TEXTDOMAINDIR=/usr/share/Lucale/locale
  4. . gettext.sh
  5. OKL=$(echo $(gettext "Next") ; echo)
  6. CANCELL=$(echo $(gettext "Cancel") ; echo)
  7. COL1=$(echo $(gettext "selection") ; echo)
  8. COL2=$(echo $(gettext "Locales") ; echo)
  9. TITLEW=$(echo $(gettext "Configuring locales") ; echo)
  10. 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
  11. be useful for backwards compatibility with older systems and software.\n\nLocales to be generated:") ; echo)
  12. TEXT2=$(echo $(gettext "Configuring locales") ; echo)
  13. 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
  14. 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
  15. default language, they will experience difficulties. \n \n Default locale for the system environment:") ; echo)
  16. TEXT4=$(echo $(gettext "Setting the Default locale for the system environment") ; echo)
  17. TEXT5=$(echo $(gettext "updating done!") ; echo)
  18. TEXT6=$(echo $(gettext "Updating system locales done!") ; echo)
  19. ERR=$(echo $(gettext "Update error!") ; echo)
  20. VAR=$(zenity --list \
  21. --title="$TITLEW" \
  22. --text="$TEXT1" \
  23. --ok-label="$OKL" \
  24. --cancel-label="$CANCELL" \
  25. --width=600 --height=400 \
  26. --multiple \
  27. --separator="\n" \
  28. --column="$COL1" \
  29. --column="$COL2" \
  30. FALSE "aa_DJ ISO-8859-1 " \
  31. FALSE "aa_DJ.UTF-8 UTF-8 " \
  32. FALSE "aa_ER UTF-8 " \
  33. FALSE "aa_ER@saaho UTF-8 " \
  34. FALSE "aa_ET UTF-8 " \
  35. FALSE "af_ZA ISO-8859-1 " \
  36. FALSE "af_ZA.UTF-8 UTF-8 " \
  37. FALSE "agr_PE UTF-8 " \
  38. FALSE "ak_GH UTF-8 " \
  39. FALSE "am_ET UTF-8 " \
  40. FALSE "an_ES ISO-8859-1 " \
  41. FALSE "an_ES.UTF-8 UTF-8 " \
  42. FALSE "anp_IN UTF-8 " \
  43. FALSE "ar_AE ISO-8859-6 " \
  44. FALSE "ar_AE.UTF-8 UTF-8 " \
  45. FALSE "ar_BH ISO-8859-6 " \
  46. FALSE "ar_BH.UTF-8 UTF-8 " \
  47. FALSE "ar_DZ ISO-8859-6 " \
  48. FALSE "ar_DZ.UTF-8 UTF-8 " \
  49. FALSE "ar_EG ISO-8859-6 " \
  50. FALSE "ar_EG.UTF-8 UTF-8 " \
  51. FALSE "ar_IN UTF-8 " \
  52. FALSE "ar_IQ ISO-8859-6 " \
  53. FALSE "ar_IQ.UTF-8 UTF-8 " \
  54. FALSE "ar_JO ISO-8859-6 " \
  55. FALSE "ar_JO.UTF-8 UTF-8 " \
  56. FALSE "ar_KW ISO-8859-6 " \
  57. FALSE "ar_KW.UTF-8 UTF-8 " \
  58. FALSE "ar_LB ISO-8859-6 " \
  59. FALSE "ar_LB.UTF-8 UTF-8 " \
  60. FALSE "ar_LY ISO-8859-6 " \
  61. FALSE "ar_LY.UTF-8 UTF-8 " \
  62. FALSE "ar_MA ISO-8859-6 " \
  63. FALSE "ar_MA.UTF-8 UTF-8 " \
  64. FALSE "ar_OM ISO-8859-6 " \
  65. FALSE "ar_OM.UTF-8 UTF-8 " \
  66. FALSE "ar_QA ISO-8859-6 " \
  67. FALSE "ar_QA.UTF-8 UTF-8 " \
  68. FALSE "ar_SA ISO-8859-6 " \
  69. FALSE "ar_SA.UTF-8 UTF-8 " \
  70. FALSE "ar_SD ISO-8859-6 " \
  71. FALSE "ar_SD.UTF-8 UTF-8 " \
  72. FALSE "ar_SS UTF-8 " \
  73. FALSE "ar_SY ISO-8859-6 " \
  74. FALSE "ar_SY.UTF-8 UTF-8 " \
  75. FALSE "ar_TN ISO-8859-6 " \
  76. FALSE "ar_TN.UTF-8 UTF-8 " \
  77. FALSE "ar_YE ISO-8859-6 " \
  78. FALSE "ar_YE.UTF-8 UTF-8 " \
  79. FALSE "as_IN UTF-8 " \
  80. FALSE "ast_ES ISO-8859-1 " \
  81. FALSE "ast_ES.UTF-8 UTF-8 " \
  82. FALSE "ayc_PE UTF-8 " \
  83. FALSE "az_AZ UTF-8 " \
  84. FALSE "az_IR UTF-8 " \
  85. FALSE "be_BY CP1251 " \
  86. FALSE "be_BY.UTF-8 UTF-8 " \
  87. FALSE "be_BY@latin UTF-8 " \
  88. FALSE "bem_ZM UTF-8 " \
  89. FALSE "ber_DZ UTF-8 " \
  90. FALSE "ber_MA UTF-8 " \
  91. FALSE "bg_BG CP1251 " \
  92. FALSE "bg_BG.UTF-8 UTF-8 " \
  93. FALSE "bhb_IN.UTF-8 UTF-8 " \
  94. FALSE "bho_IN UTF-8 " \
  95. FALSE "bho_NP UTF-8 " \
  96. FALSE "bi_VU UTF-8 " \
  97. FALSE "bn_BD UTF-8 " \
  98. FALSE "bn_IN UTF-8 " \
  99. FALSE "bo_CN UTF-8 " \
  100. FALSE "bo_IN UTF-8 " \
  101. FALSE "br_FR ISO-8859-1 " \
  102. FALSE "br_FR.UTF-8 UTF-8 " \
  103. FALSE "br_FR@euro ISO-8859-1 " \
  104. FALSE "brx_IN UTF-8 " \
  105. FALSE "bs_BA ISO-8859-2 " \
  106. FALSE "bs_BA.UTF-8 UTF-8 " \
  107. FALSE "byn_ER UTF-8 " \
  108. FALSE "ca_AD ISO-8859-1 " \
  109. FALSE "ca_AD.UTF-8 UTF-8 " \
  110. FALSE "ca_ES ISO-8859-1 " \
  111. FALSE "ca_ES.UTF-8 UTF-8 " \
  112. FALSE "ca_ES@euro ISO-8859-1 " \
  113. FALSE "ca_ES@valencia UTF-8 " \
  114. FALSE "ca_FR ISO-8859-1 " \
  115. FALSE "ca_FR.UTF-8 UTF-8 " \
  116. FALSE "ca_IT ISO-8859-1 " \
  117. FALSE "ca_IT.UTF-8 UTF-8 " \
  118. FALSE "ce_RU UTF-8 " \
  119. FALSE "chr_US UTF-8 " \
  120. FALSE "cmn_TW UTF-8 " \
  121. FALSE "crh_UA UTF-8 " \
  122. FALSE "cs_CZ ISO-8859-2 " \
  123. FALSE "cs_CZ.UTF-8 UTF-8 " \
  124. FALSE "csb_PL UTF-8 " \
  125. FALSE "cv_RU UTF-8 " \
  126. FALSE "cy_GB ISO-8859-1 " \
  127. FALSE "cy_GB.UTF-8 UTF-8 " \
  128. FALSE "da_DK ISO-8859-1 " \
  129. FALSE "da_DK.UTF-8 UTF-8 " \
  130. FALSE "de_AT ISO-8859-1 " \
  131. FALSE "de_AT.UTF-8 UTF-8 " \
  132. FALSE "de_AT@euro ISO-8859-1 " \
  133. FALSE "de_BE ISO-8859-1 " \
  134. FALSE "de_BE.UTF-8 UTF-8 " \
  135. FALSE "de_BE@euro ISO-8859-1 " \
  136. FALSE "de_CH ISO-8859-1 " \
  137. FALSE "de_CH.UTF-8 UTF-8 " \
  138. FALSE "de_DE ISO-8859-1 " \
  139. FALSE "de_DE.UTF-8 UTF-8 " \
  140. FALSE "de_DE@euro ISO-8859-1 " \
  141. FALSE "de_IT ISO-8859-1 " \
  142. FALSE "de_IT.UTF-8 UTF-8 " \
  143. FALSE "de_LI.UTF-8 UTF-8 " \
  144. FALSE "de_LU ISO-8859-1 " \
  145. FALSE "de_LU.UTF-8 UTF-8 " \
  146. FALSE "de_LU@euro ISO-8859-1 " \
  147. FALSE "doi_IN UTF-8 " \
  148. FALSE "dv_MV UTF-8 " \
  149. FALSE "dz_BT UTF-8 " \
  150. FALSE "el_CY ISO-8859-7 " \
  151. FALSE "el_CY.UTF-8 UTF-8 " \
  152. FALSE "el_GR ISO-8859-7 " \
  153. FALSE "el_GR.UTF-8 UTF-8 " \
  154. FALSE "el_GR@euro ISO-8859-7 " \
  155. FALSE "en_AG UTF-8 " \
  156. FALSE "en_AU ISO-8859-1 " \
  157. FALSE "en_AU.UTF-8 UTF-8 " \
  158. FALSE "en_BW ISO-8859-1 " \
  159. FALSE "en_BW.UTF-8 UTF-8 " \
  160. FALSE "en_CA ISO-8859-1 " \
  161. FALSE "en_CA.UTF-8 UTF-8 " \
  162. FALSE "en_DK ISO-8859-1 " \
  163. FALSE "en_DK.ISO-8859-15 ISO-8859-1 " \
  164. FALSE "en_DK.UTF-8 UTF-8 " \
  165. FALSE "en_GB ISO-8859-1 " \
  166. FALSE "en_GB.ISO-8859-15 ISO-8859-1 " \
  167. FALSE "en_GB.UTF-8 UTF-8 " \
  168. FALSE "en_HK ISO-8859-1 " \
  169. FALSE "en_HK.UTF-8 UTF-8 " \
  170. FALSE "en_IE ISO-8859-1 " \
  171. FALSE "en_IE.UTF-8 UTF-8 " \
  172. FALSE "en_IE@euro ISO-8859-1 " \
  173. FALSE "en_IL UTF-8 " \
  174. FALSE "en_IN UTF-8 " \
  175. FALSE "en_NG UTF-8 " \
  176. FALSE "en_NZ ISO-8859-1 " \
  177. FALSE "en_NZ.UTF-8 UTF-8 " \
  178. FALSE "en_PH ISO-8859-1 " \
  179. FALSE "en_PH.UTF-8 UTF-8 " \
  180. FALSE "en_SC.UTF-8 UTF-8 " \
  181. FALSE "en_SG ISO-8859-1 " \
  182. FALSE "en_SG.UTF-8 UTF-8 " \
  183. FALSE "en_US ISO-8859-1 " \
  184. FALSE "en_US.ISO-8859-15 ISO-8859-1 " \
  185. FALSE "en_US.UTF-8 UTF-8 " \
  186. FALSE "en_ZA ISO-8859-1 " \
  187. FALSE "en_ZA.UTF-8 UTF-8 " \
  188. FALSE "en_ZM UTF-8 " \
  189. FALSE "en_ZW ISO-8859-1 " \
  190. FALSE "en_ZW.UTF-8 UTF-8 " \
  191. FALSE "eo UTF-8 " \
  192. FALSE "es_AR ISO-8859-1 " \
  193. FALSE "es_AR.UTF-8 UTF-8 " \
  194. FALSE "es_BO ISO-8859-1 " \
  195. FALSE "es_BO.UTF-8 UTF-8 " \
  196. FALSE "es_CL ISO-8859-1 " \
  197. FALSE "es_CL.UTF-8 UTF-8 " \
  198. FALSE "es_CO ISO-8859-1 " \
  199. FALSE "es_CO.UTF-8 UTF-8 " \
  200. FALSE "es_CR ISO-8859-1 " \
  201. FALSE "es_CR.UTF-8 UTF-8 " \
  202. FALSE "es_CU UTF-8 " \
  203. FALSE "es_DO ISO-8859-1 " \
  204. FALSE "es_DO.UTF-8 UTF-8 " \
  205. FALSE "es_EC ISO-8859-1 " \
  206. FALSE "es_EC.UTF-8 UTF-8 " \
  207. FALSE "es_ES ISO-8859-1 " \
  208. FALSE "es_ES.UTF-8 UTF-8 " \
  209. FALSE "es_ES@euro ISO-8859-1 " \
  210. FALSE "es_GT ISO-8859-1 " \
  211. FALSE "es_GT.UTF-8 UTF-8 " \
  212. FALSE "es_HN ISO-8859-1 " \
  213. FALSE "es_HN.UTF-8 UTF-8 " \
  214. FALSE "es_MX ISO-8859-1 " \
  215. FALSE "es_MX.UTF-8 UTF-8 " \
  216. FALSE "es_NI ISO-8859-1 " \
  217. FALSE "es_NI.UTF-8 UTF-8 " \
  218. FALSE "es_PA ISO-8859-1 " \
  219. FALSE "es_PA.UTF-8 UTF-8 " \
  220. FALSE "es_PE ISO-8859-1 " \
  221. FALSE "es_PE.UTF-8 UTF-8 " \
  222. FALSE "es_PR ISO-8859-1 " \
  223. FALSE "es_PR.UTF-8 UTF-8 " \
  224. FALSE "es_PY ISO-8859-1 " \
  225. FALSE "es_PY.UTF-8 UTF-8 " \
  226. FALSE "es_SV ISO-8859-1 " \
  227. FALSE "es_SV.UTF-8 UTF-8 " \
  228. FALSE "es_US ISO-8859-1 " \
  229. FALSE "es_US.UTF-8 UTF-8 " \
  230. FALSE "es_UY ISO-8859-1 " \
  231. FALSE "es_UY.UTF-8 UTF-8 " \
  232. FALSE "es_VE ISO-8859-1 " \
  233. FALSE "es_VE.UTF-8 UTF-8 " \
  234. FALSE "et_EE ISO-8859-1 " \
  235. FALSE "et_EE.ISO-8859-15 ISO-8859-1 " \
  236. FALSE "et_EE.UTF-8 UTF-8 " \
  237. FALSE "eu_ES ISO-8859-1 " \
  238. FALSE "eu_ES.UTF-8 UTF-8 " \
  239. FALSE "eu_ES@euro ISO-8859-1 " \
  240. FALSE "eu_FR ISO-8859-1 " \
  241. FALSE "eu_FR.UTF-8 UTF-8 " \
  242. FALSE "eu_FR@euro ISO-8859-1 " \
  243. FALSE "fa_IR UTF-8 " \
  244. FALSE "ff_SN UTF-8 " \
  245. FALSE "fi_FI ISO-8859-1 " \
  246. FALSE "fi_FI.UTF-8 UTF-8 " \
  247. FALSE "fi_FI@euro ISO-8859-1 " \
  248. FALSE "fil_PH UTF-8 " \
  249. FALSE "fo_FO ISO-8859-1 " \
  250. FALSE "fo_FO.UTF-8 UTF-8 " \
  251. FALSE "fr_BE ISO-8859-1 " \
  252. FALSE "fr_BE.UTF-8 UTF-8 " \
  253. FALSE "fr_BE@euro ISO-8859-1 " \
  254. FALSE "fr_CA ISO-8859-1 " \
  255. FALSE "fr_CA.UTF-8 UTF-8 " \
  256. FALSE "fr_CH ISO-8859-1 " \
  257. FALSE "fr_CH.UTF-8 UTF-8 " \
  258. FALSE "fr_FR ISO-8859-1 " \
  259. FALSE "fr_FR.UTF-8 UTF-8 " \
  260. FALSE "fr_FR@euro ISO-8859-1 " \
  261. FALSE "fr_LU ISO-8859-1 " \
  262. FALSE "fr_LU.UTF-8 UTF-8 " \
  263. FALSE "fr_LU@euro ISO-8859-1 " \
  264. FALSE "fur_IT UTF-8 " \
  265. FALSE "fy_DE UTF-8 " \
  266. FALSE "fy_NL UTF-8 " \
  267. FALSE "ga_IE ISO-8859-1 " \
  268. FALSE "ga_IE.UTF-8 UTF-8 " \
  269. FALSE "ga_IE@euro ISO-8859-1 " \
  270. FALSE "gd_GB ISO-8859-1 " \
  271. FALSE "gd_GB.UTF-8 UTF-8 " \
  272. FALSE "gez_ER UTF-8 " \
  273. FALSE "gez_ER@abegede UTF-8 " \
  274. FALSE "gez_ET UTF-8 " \
  275. FALSE "gez_ET@abegede UTF-8 " \
  276. FALSE "gl_ES ISO-8859-1 " \
  277. FALSE "gl_ES.UTF-8 UTF-8 " \
  278. FALSE "gl_ES@euro ISO-8859-1 " \
  279. FALSE "gu_IN UTF-8 " \
  280. FALSE "gv_GB ISO-8859-1 " \
  281. FALSE "gv_GB.UTF-8 UTF-8 " \
  282. FALSE "ha_NG UTF-8 " \
  283. FALSE "hak_TW UTF-8 " \
  284. FALSE "he_IL ISO-8859-8 " \
  285. FALSE "he_IL.UTF-8 UTF-8 " \
  286. FALSE "hi_IN UTF-8 " \
  287. FALSE "hif_FJ UTF-8 " \
  288. FALSE "hne_IN UTF-8 " \
  289. FALSE "hr_HR ISO-8859-2 " \
  290. FALSE "hr_HR.UTF-8 UTF-8 " \
  291. FALSE "hsb_DE ISO-8859-2 " \
  292. FALSE "hsb_DE.UTF-8 UTF-8 " \
  293. FALSE "ht_HT UTF-8 " \
  294. FALSE "hu_HU ISO-8859-2 " \
  295. FALSE "hu_HU.UTF-8 UTF-8 " \
  296. FALSE "hy_AM UTF-8 " \
  297. FALSE "hy_AM.ARMSCII-8 ARMSCII-8 " \
  298. FALSE "ia_FR UTF-8 " \
  299. FALSE "id_ID ISO-8859-1 " \
  300. FALSE "id_ID.UTF-8 UTF-8 " \
  301. FALSE "ig_NG UTF-8 " \
  302. FALSE "ik_CA UTF-8 " \
  303. FALSE "is_IS ISO-8859-1 " \
  304. FALSE "is_IS.UTF-8 UTF-8 " \
  305. FALSE "it_CH ISO-8859-1 " \
  306. FALSE "it_CH.UTF-8 UTF-8 " \
  307. FALSE "it_IT ISO-8859-1 " \
  308. FALSE "it_IT.UTF-8 UTF-8 " \
  309. FALSE "it_IT@euro ISO-8859-1 " \
  310. FALSE "iu_CA UTF-8 " \
  311. FALSE "ja_JP.EUC-JP EUC-JP " \
  312. FALSE "ja_JP.UTF-8 UTF-8 " \
  313. FALSE "ka_GE GEORGIAN-PS " \
  314. FALSE "ka_GE.UTF-8 UTF-8 " \
  315. FALSE "kab_DZ UTF-8 " \
  316. FALSE "kk_KZ PT154 " \
  317. FALSE "kk_KZ.RK1048 RK1048 " \
  318. FALSE "kk_KZ.UTF-8 UTF-8 " \
  319. FALSE "kl_GL ISO-8859-1 " \
  320. FALSE "kl_GL.UTF-8 UTF-8 " \
  321. FALSE "km_KH UTF-8 " \
  322. FALSE "kn_IN UTF-8 " \
  323. FALSE "ko_KR.EUC-KR EUC-KR " \
  324. FALSE "ko_KR.UTF-8 UTF-8 " \
  325. FALSE "kok_IN UTF-8 " \
  326. FALSE "ks_IN UTF-8 " \
  327. FALSE "ks_IN@devanagari UTF-8 " \
  328. FALSE "ku_TR ISO-8859-9 " \
  329. FALSE "ku_TR.UTF-8 UTF-8 " \
  330. FALSE "kw_GB ISO-8859-1 " \
  331. FALSE "kw_GB.UTF-8 UTF-8 " \
  332. FALSE "ky_KG UTF-8 " \
  333. FALSE "lb_LU UTF-8 " \
  334. FALSE "lg_UG ISO-8859-1 " \
  335. FALSE "lg_UG.UTF-8 UTF-8 " \
  336. FALSE "li_BE UTF-8 " \
  337. FALSE "li_NL UTF-8 " \
  338. FALSE "lij_IT UTF-8 " \
  339. FALSE "ln_CD UTF-8 " \
  340. FALSE "lo_LA UTF-8 " \
  341. FALSE "lt_LT ISO-8859-1 " \
  342. FALSE "lt_LT.UTF-8 UTF-8 " \
  343. FALSE "lv_LV ISO-8859-1 " \
  344. FALSE "lv_LV.UTF-8 UTF-8 " \
  345. FALSE "lzh_TW UTF-8 " \
  346. FALSE "mag_IN UTF-8 " \
  347. FALSE "mai_IN UTF-8 " \
  348. FALSE "mai_NP UTF-8 " \
  349. FALSE "mfe_MU UTF-8 " \
  350. FALSE "mg_MG ISO-8859-1 " \
  351. FALSE "mg_MG.UTF-8 UTF-8 " \
  352. FALSE "mhr_RU UTF-8 " \
  353. FALSE "mi_NZ ISO-8859-1 " \
  354. FALSE "mi_NZ.UTF-8 UTF-8 " \
  355. FALSE "miq_NI UTF-8 " \
  356. FALSE "mjw_IN UTF-8 " \
  357. FALSE "mk_MK ISO-8859-5 " \
  358. FALSE "mk_MK.UTF-8 UTF-8 " \
  359. FALSE "ml_IN UTF-8 " \
  360. FALSE "mn_MN UTF-8 " \
  361. FALSE "mni_IN UTF-8 " \
  362. FALSE "mr_IN UTF-8 " \
  363. FALSE "ms_MY ISO-8859-1 " \
  364. FALSE "ms_MY.UTF-8 UTF-8 " \
  365. FALSE "mt_MT ISO-8859-3 " \
  366. FALSE "mt_MT.UTF-8 UTF-8 " \
  367. FALSE "my_MM UTF-8 " \
  368. FALSE "nan_TW UTF-8 " \
  369. FALSE "nan_TW@latin UTF-8 " \
  370. FALSE "nb_NO ISO-8859-1 " \
  371. FALSE "nb_NO.UTF-8 UTF-8 " \
  372. FALSE "nds_DE UTF-8 " \
  373. FALSE "nds_NL UTF-8 " \
  374. FALSE "ne_NP UTF-8 " \
  375. FALSE "nhn_MX UTF-8 " \
  376. FALSE "niu_NU UTF-8 " \
  377. FALSE "niu_NZ UTF-8 " \
  378. FALSE "nl_AW UTF-8 " \
  379. FALSE "nl_BE ISO-8859-1 " \
  380. FALSE "nl_BE.UTF-8 UTF-8 " \
  381. FALSE "nl_BE@euro ISO-8859-1 " \
  382. FALSE "nl_NL ISO-8859-1 " \
  383. FALSE "nl_NL.UTF-8 UTF-8 " \
  384. FALSE "nl_NL@euro ISO-8859-1 " \
  385. FALSE "nn_NO ISO-8859-1 " \
  386. FALSE "nn_NO.UTF-8 UTF-8 " \
  387. FALSE "nr_ZA UTF-8 " \
  388. FALSE "nso_ZA UTF-8 " \
  389. FALSE "oc_FR ISO-8859-1 " \
  390. FALSE "oc_FR.UTF-8 UTF-8 " \
  391. FALSE "om_ET UTF-8 " \
  392. FALSE "om_KE ISO-8859-1 " \
  393. FALSE "om_KE.UTF-8 UTF-8 " \
  394. FALSE "or_IN UTF-8 " \
  395. FALSE "os_RU UTF-8 " \
  396. FALSE "pa_IN UTF-8 " \
  397. FALSE "pa_PK UTF-8 " \
  398. FALSE "pap_AW UTF-8 " \
  399. FALSE "pap_CW UTF-8 " \
  400. FALSE "pl_PL ISO-8859-2 " \
  401. FALSE "pl_PL.UTF-8 UTF-8 " \
  402. FALSE "ps_AF UTF-8 " \
  403. FALSE "pt_BR ISO-8859-1 " \
  404. FALSE "pt_BR.UTF-8 UTF-8 " \
  405. FALSE "pt_PT ISO-8859-1 " \
  406. FALSE "pt_PT.UTF-8 UTF-8 " \
  407. FALSE "pt_PT@euro ISO-8859-1 " \
  408. FALSE "quz_PE UTF-8 " \
  409. FALSE "raj_IN UTF-8 " \
  410. FALSE "ro_RO ISO-8859-2 " \
  411. FALSE "ro_RO.UTF-8 UTF-8 " \
  412. FALSE "ru_RU ISO-8859-5 " \
  413. FALSE "ru_RU.CP1251 CP1251 " \
  414. FALSE "ru_RU.KOI8-R KOI8-R " \
  415. FALSE "ru_RU.UTF-8 UTF-8 " \
  416. FALSE "ru_UA KOI8-U " \
  417. FALSE "ru_UA.UTF-8 UTF-8 " \
  418. FALSE "rw_RW UTF-8 " \
  419. FALSE "sa_IN UTF-8 " \
  420. FALSE "sat_IN UTF-8 " \
  421. FALSE "sc_IT UTF-8 " \
  422. FALSE "sd_IN UTF-8 " \
  423. FALSE "sd_IN@devanagari UTF-8 " \
  424. FALSE "se_NO UTF-8 " \
  425. FALSE "sgs_LT UTF-8 " \
  426. FALSE "shn_MM UTF-8 " \
  427. FALSE "shs_CA UTF-8 " \
  428. FALSE "si_LK UTF-8 " \
  429. FALSE "sid_ET UTF-8 " \
  430. FALSE "sk_SK ISO-8859-2 " \
  431. FALSE "sk_SK.UTF-8 UTF-8 " \
  432. FALSE "sl_SI ISO-8859-2 " \
  433. FALSE "sl_SI.UTF-8 UTF-8 " \
  434. FALSE "sm_WS UTF-8 " \
  435. FALSE "so_DJ ISO-8859-1 " \
  436. FALSE "so_DJ.UTF-8 UTF-8 " \
  437. FALSE "so_ET UTF-8 " \
  438. FALSE "so_KE ISO-8859-1 " \
  439. FALSE "so_KE.UTF-8 UTF-8 " \
  440. FALSE "so_SO ISO-8859-1 " \
  441. FALSE "so_SO.UTF-8 UTF-8 " \
  442. FALSE "sq_AL ISO-8859-1 " \
  443. FALSE "sq_AL.UTF-8 UTF-8 " \
  444. FALSE "sq_MK UTF-8 " \
  445. FALSE "sr_ME UTF-8 " \
  446. FALSE "sr_RS UTF-8 " \
  447. FALSE "sr_RS@latin UTF-8 " \
  448. FALSE "ss_ZA UTF-8 " \
  449. FALSE "st_ZA ISO-8859-1 " \
  450. FALSE "st_ZA.UTF-8 UTF-8 " \
  451. FALSE "sv_FI ISO-8859-1 " \
  452. FALSE "sv_FI.UTF-8 UTF-8 " \
  453. FALSE "sv_FI@euro ISO-8859-1 " \
  454. FALSE "sv_SE ISO-8859-1 " \
  455. FALSE "sv_SE.ISO-8859-15 ISO-8859-1 " \
  456. FALSE "sv_SE.UTF-8 UTF-8 " \
  457. FALSE "sw_KE UTF-8 " \
  458. FALSE "sw_TZ UTF-8 " \
  459. FALSE "szl_PL UTF-8 " \
  460. FALSE "ta_IN UTF-8 " \
  461. FALSE "ta_LK UTF-8 " \
  462. FALSE "tcy_IN.UTF-8 UTF-8 " \
  463. FALSE "te_IN UTF-8 " \
  464. FALSE "tg_TJ KOI8-T " \
  465. FALSE "tg_TJ.UTF-8 UTF-8 " \
  466. FALSE "th_TH TIS-620 " \
  467. FALSE "th_TH.UTF-8 UTF-8 " \
  468. FALSE "the_NP UTF-8 " \
  469. FALSE "ti_ER UTF-8 " \
  470. FALSE "ti_ET UTF-8 " \
  471. FALSE "tig_ER UTF-8 " \
  472. FALSE "tk_TM UTF-8 " \
  473. FALSE "tl_PH ISO-8859-1 " \
  474. FALSE "tl_PH.UTF-8 UTF-8 " \
  475. FALSE "tn_ZA UTF-8 " \
  476. FALSE "to_TO UTF-8 " \
  477. FALSE "tpi_PG UTF-8 " \
  478. FALSE "tr_CY ISO-8859-9 " \
  479. FALSE "tr_CY.UTF-8 UTF-8 " \
  480. FALSE "tr_TR ISO-8859-9 " \
  481. FALSE "tr_TR.UTF-8 UTF-8 " \
  482. FALSE "ts_ZA UTF-8 " \
  483. FALSE "tt_RU UTF-8 " \
  484. FALSE "tt_RU@iqtelif UTF-8 " \
  485. FALSE "ug_CN UTF-8 " \
  486. FALSE "uk_UA KOI8-U " \
  487. FALSE "uk_UA.UTF-8 UTF-8 " \
  488. FALSE "unm_US UTF-8 " \
  489. FALSE "ur_IN UTF-8 " \
  490. FALSE "ur_PK UTF-8 " \
  491. FALSE "uz_UZ ISO-8859-1 " \
  492. FALSE "uz_UZ.UTF-8 UTF-8 " \
  493. FALSE "uz_UZ@cyrillic UTF-8 " \
  494. FALSE "ve_ZA UTF-8 " \
  495. FALSE "vi_VN UTF-8 " \
  496. FALSE "wa_BE ISO-8859-1 " \
  497. FALSE "wa_BE.UTF-8 UTF-8 " \
  498. FALSE "wa_BE@euro ISO-8859-1 " \
  499. FALSE "wae_CH UTF-8 " \
  500. FALSE "wal_ET UTF-8 " \
  501. FALSE "wo_SN UTF-8 " \
  502. FALSE "xh_ZA ISO-8859-1 " \
  503. FALSE "xh_ZA.UTF-8 UTF-8 " \
  504. FALSE "yi_US CP1255 " \
  505. FALSE "yi_US.UTF-8 UTF-8 " \
  506. FALSE "yo_NG UTF-8 " \
  507. FALSE "yue_HK UTF-8 " \
  508. FALSE "yuw_PG UTF-8 " \
  509. FALSE "zh_CN GB2312 " \
  510. FALSE "zh_CN.GB18030 GB18030 " \
  511. FALSE "zh_CN.GBK GBK " \
  512. FALSE "zh_CN.UTF-8 UTF-8 " \
  513. FALSE "zh_HK BIG5-HKSCS " \
  514. FALSE "zh_HK.UTF-8 UTF-8 " \
  515. FALSE "zh_SG GB2312 " \
  516. FALSE "zh_SG.GBK GBK " \
  517. FALSE "zh_SG.UTF-8 UTF-8 " \
  518. FALSE "zh_TW BIG5 " \
  519. FALSE "zh_TW.EUC-TW EUC-TW " \
  520. FALSE "zh_TW.UTF-8 UTF-8 " \
  521. FALSE "zu_ZA ISO-8859-1 " \
  522. FALSE "zu_ZA.UTF-8 UTF-8 " \
  523. --checklist
  524. )
  525. PROC(){
  526. echo "setting up your locales selections."
  527. echo "# this file was generated automaticaly by lucale
  528. # you can find the origin version of this file in
  529. # /etc/locale.gen.old" > /etc/locale.gen
  530. cat /usr/share/Lucale/tmp-gen >> /etc/locale.gen
  531. echo "generate the locale ."
  532. /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
  533. echo
  534. LOCALENV=$(locale -a)
  535. echo -e "$LOCALENV" > /usr/share/Lucale/locale-env
  536. (( $? != 0 )) && zenity --error --text="$ERR"
  537. VAR1=$(zenity --list \
  538. --title="$TEXT2" \
  539. --text="$TEXT3" \
  540. --ok-label="$OKL" \
  541. --cancel-label="$CANCELL" \
  542. --width=600 --height=400 \
  543. --separator="\n" \
  544. --column="$COL1" \
  545. --column "$COL2" $(sed s/^/FALSE\ / /usr/share/Lucale/locale-env) \
  546. --radiolist)
  547. echo "setting up your locales selections."
  548. echo "# this file was generated automaticaly by lucale" > /etc/default/locale
  549. echo -e "LANG=$VAR1" >> /etc/default/locale
  550. echo "generate the locale ."
  551. /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
  552. echo
  553. zenity --info --title="$TEXT5" --width=200 --height=100 --text "$TEXT6"
  554. (( $? != 0 )) && zenity --error --text="$ERR"
  555. exit 0
  556. }
  557. echo -e "$VAR" > /usr/share/Lucale/tmp-gen
  558. OUTFILE=$(grep -q '[^[:space:]]' /usr/share/Lucale/tmp-gen || echo "True")
  559. if [ ! "$OUTFILE" ]
  560. then
  561. PROC
  562. else
  563. zenity --info --title="$TEXT5" --width=200 --height=100 --text "$TEXT6"
  564. (( $? != 0 )) && zenity --error --text="$ERR"
  565. exit 0
  566. fi