Mini Shell
3
g��]� � @ s� d Z ddlZddlZddlZddlZejaejaejadjdd�Z ej
de � ejd� dd� Zdd 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�orcac C s t d| |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_1 s r c C sf y(t jdt|gd�}|j a|ja|j aW n t j at jat j aY nX tjj| �}|rbt j
|� d S )Nr )Z languages)�gettext�translation� localedir�_�ngettextr �sys�modules�get�imp�reload)Z
moduleName� newLocaler
�moduler r r �setModuleLocale9 s
r c C s$ ddg}x|D ]}t || � qW d S )Nzorca.tutorialgeneratorz
orca.messages)r )r r r r r r �setLocaleForMessagesI s
r c C s2 ddddddddd g }x|D ]}t || � qW d S )
Nzorca.chnamesz
orca.keynameszorca.phonnameszorca.text_attribute_nameszorca.object_propertiesz
orca.cmdnameszorca.keybindingszorca.colornameszorca.mathsymbols)r )r r r r r r �setLocaleForNamesN s
r c C s&