Mini Shell

Direktori : /lib/python3.6/site-packages/orca/__pycache__/
Upload File :
Current File : //lib/python3.6/site-packages/orca/__pycache__/orca_i18n.cpython-36.pyc

3

g��]��@s�dZddlZddlZddlZddlZejaejaejadjdd�Z	ej
de	�ejd�dd�Zdd	d
�Z
ddd�Zdd
d�Zddd�ZdS)z�Provides i18n support for orca using the gettext module.  Tells
gettext where to find localized strings and creates an alias, _, that
maps to the gettext.gettext function.  This function will accept a
string and return a localized string for that string.
�Nz${prefix}/share/localez	${prefix}z/usr�orcacCs td||f�}d|kr|S|S)z3Provide qualified translatable strings via context.z%s%s�)�cgettext)Zctx�sZ
translated�r�/usr/lib/python3.6/orca_i18n.py�C_1srcCsfy(tjdt|gd�}|ja|ja|jaWntjatjatjaYnXtjj|�}|rbt	j
|�dS)Nr)Z	languages)�gettext�translation�	localedir�_�ngettextr�sys�modules�get�imp�reload)Z
moduleName�	newLocaler
�modulerrr�setModuleLocale9s
rcCs$ddg}x|D]}t||�qWdS)Nzorca.tutorialgeneratorz
orca.messages)r)rrrrrr�setLocaleForMessagesIs
rc	Cs2ddddddddd	g	}x|D]}t||�qWdS)
Nzorca.chnamesz
orca.keynameszorca.phonnameszorca.text_attribute_nameszorca.object_propertiesz
orca.cmdnameszorca.keybindingszorca.colornameszorca.mathsymbols)r)rrrrrr�setLocaleForNamesNs
rcCs&dddg}x|D]}t||�qWdS)Nzorca.orca_gtkbuilderzorca.guilabelszorca.brltablenames)r)rrrrrr�setLocaleForGUIVs

r)N)N)N)N)�__doc__r	r�osrrr
r�replacer�bindtextdomain�
textdomainrrrrrrrrr�<module>s