| Server IP : 93.86.61.54 / Your IP : 216.73.216.156 Web Server : Apache/2.4.62 (Ubuntu) System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64 User : www-data ( 33) PHP Version : 8.4.22 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3/dist-packages/orca/__pycache__/ |
Upload File : |
o
S�b� � @ s� d Z ddlZddlZddlZddlZejaejaejad�dd�Z e�
de � e�d� 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|v r|S |S )z3Provide qualified translatable strings via context.z%s%s�)�cgettext)�ctx�s�
translated� r �0/usr/lib/python3/dist-packages/orca/orca_i18n.py�C_1 s r
c C sf zt jdt|gd�}|j a|ja|j aW n
t j at jat j aY tj�| �}|r1t �
|� d S d S )Nr )� languages)�gettext�translation� localedir�_�ngettextr �sys�modules�get�imp�reload)�
moduleName� newLocaler
�moduler r r �setModuleLocale9 s
�r c C s ddg}|D ]}t || � qd S )Nzorca.tutorialgeneratorz
orca.messages�r �r r r r r r �setLocaleForMessagesI s �r c C � g d�}|D ]}t || � qd S )N) zorca.chnamesz
orca.keynameszorca.phonnameszorca.text_attribute_nameszorca.object_propertiesz
orca.cmdnameszorca.keybindingszorca.colornameszorca.mathsymbolsr r r r r �setLocaleForNamesN s �r c C r )N)zorca.orca_gtkbuilderzorca.guilabelszorca.brltablenamesr r r r r �setLocaleForGUIV s �r )N)�__doc__r r �osr r r r �replacer �bindtextdomain�
textdomainr
r r r r r r r r �<module> s