updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / python-pyhyphen / pyhyphen-setup.py
blobe08250a66bccca6e06ca23d737161805eb199932
1 #!/usr/bin/python2
3 import hyphen, locale
4 from hyphen.dictools import install, install_dict_info
6 print 'Downloading dictionary info...',
7 hyphen.dict_info = install_dict_info()
8 print 'done.'
10 print 'Downloading dictionaries... en_US',
11 install('en_US')
13 # Install dict for local language if needed
14 locale.setlocale(locale.LC_ALL, '')
15 local_lang = locale.getlocale()[0]
16 if local_lang != 'en_US':
17 if local_lang in hyphen.dict_info:
18 print local_lang,
19 install(local_lang)
20 print 'done.'