Your IP : 3.145.88.111


Current Path : /usr/lib/python3.6/site-packages/syspurpose/__pycache__/
Upload File :
Current File : //usr/lib/python3.6/site-packages/syspurpose/__pycache__/i18n.cpython-36.pyc

3

i�f�	�@s�ddlmZmZmZddlZddlZddlmZddlZdZ	dZ
eje	dd�Ze�Z
de
_de
_dd	�Zd
d�Zdd
�Zdd�ZdS)�)�print_function�division�absolute_importN)�localZ
syspurposez/usr/share/locale/T)ZfallbackcCsJddl}y|j|jd�Wn$|jk
r>|j|jd�YnXt�dS)z�
    Configure internationalization for the application. Should only be
    called once per invocation. (once for CLI, once for GUI)
    rN��C)�locale�	setlocale�LC_ALL�Error�configure_gettext)r�r
�/usr/lib/python3.6/i18n.py�configure_i18n"srcCs2tjtt�tjt�tjtd�tjtd�dS)NzUTF-8)�gettext�bindtextdomain�APP�DIR�
textdomain�bind_textdomain_codesetrr
r
r
rr/s
rcOshtjr6ttd�r(tjdk	r(tjj||�Stj||�Sn.ttd�rXtjdk	rXtjj||�Stj||�SdS)N�lang)�six�PY2�hasattr�LOCALEr�ugettext�TRANSLATIONr)�args�kwargsr
r
rr6srcOshtjr6ttd�r(tjdk	r(tjj||�Stj||�Sn.ttd�rXtjdk	rXtjj||�Stj||�SdS)Nr)rrrrr�	ungettextrZngettext)rrr
r
rrCsr)Z
__future__rrrrrZ	threadingrrrrZtranslationrrZlanguagerrrrrr
r
r
r�<module>s


?>