%PDF- %PDF-
Direktori : /usr/lib/python3/dist-packages/orca/__pycache__/ |
Current File : //usr/lib/python3/dist-packages/orca/__pycache__/orca_i18n.cpython-312.pyc |
� J f� � � � d Z ddlZddlZddlZddlZej aej aej aej j dd� Z ej de � ej d� d� Z dd�Zdd�Zdd �Zdd �Zy)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/usrzshare/locale�orcac �2 � t | �d|��� }d|v r|S |S )z3Provide qualified translatable strings via context.�)�cgettext)�ctx�s� translateds �0/usr/lib/python3/dist-packages/orca/orca_i18n.py�C_r 1 s$ � ���Q�/�0�J� ������� c �d � t j dt |g�� }|j a|j a|j at j j | � }|rt j |� y y # t j at j at j aY �lxY w)Nr )� languages)�gettext�translation� localedir�_�ngettextr �sys�modules�get� importlib�reload)� moduleName� newLocaler �modules r �setModuleLocaler 9 s� � �#��)�)�&�)� �{�S�������'�'���&�&�� �[�[�_�_�Z� (�F� ����� � ��#��O�O���#�#���?�?��s �AA; �;2B/c �0 � dg}|D ] }t || � � y )Nz orca.messages�r �r r r s r �setLocaleForMessagesr I s# � ���G�� +���� �*�+r c �2 � g d�}|D ] }t || � � y )N)z orca.keynameszorca.phonnameszorca.text_attribute_nameszorca.object_propertiesz orca.cmdnameszorca.keybindingszorca.colornameszorca.mathsymbolsr r s r �setLocaleForNamesr"