403Webshell
Server IP : 209.205.66.10  /  Your IP : 216.73.216.173
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux ammon 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64
User :  ( 1006)
PHP Version : 8.5.8
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/system-config-printer/troubleshoot/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/system-config-printer/troubleshoot/__pycache__/Locale.cpython-310.pyc
o

3�b��@s0ddlZddlmZddlTGdd�de�ZdS)�N)�Gtk�)�*c@s$eZdZdd�Zdd�Zdd�ZdS)�LocalecCst�||d�|�td�td��}t��}|�d�|�d�|�|ddd�t�	�|_
|j
�dd�t�	�|_|j�dd�tj	td�d�}|�dd�|�
|ddd	d	�|�
|jd	dd	d	�tj	td
�d�}|�dd�|�
|dd	d	d	�|�
|j
d	d	d	d	�|�||�dS)Nz
Locale issueszIncorrect Page Sizez�The page size for the print job was not the printer's default page size.  If this is not intentional it may cause alignment problems.�FrzPrint job page size:)�labelrzPrinter page size:)�Question�__init__�initial_vbox�_r�Grid�set_row_spacing�set_column_spacing�
pack_start�Label�printer_page_size�
set_alignment�
job_page_size�attach�new_page)�self�troubleshooter�page�gridr�r�7/usr/share/system-config-printer/troubleshoot/Locale.pyr	s*
�



zLocale.__init__cCs"i|_t�tj�\}}t�tj�\}}||jd<||jd<zYd}d}dD]}zt|���}Wq$ty7Yq$w|duru|D]#}|�d�rO|dd��	d�}q>|dura|�d�ra|dd��	d�}q>|duru|�
d	�}|d
kru|d|�}Wnd}Y||jd<d}	z|jjd}
|
��D]\}}d
|vr�|d
}	nq�Wnt
y�z|jjd}
|
d}	Wn	t
y�YnwYnwz|jjd}Wnt
y�g}Ynw|	|jd<|	du�rd}|D]-\}}}}}}
|�rd
|
v�r|
d
}||jd<||	k�r|j�|	�|j�|�dSq�dS)N�user_locale_messages�user_locale_ctype)z/etc/locale.confz/etc/sysconfig/i18nz	LC_PAPER=�	z
"zLANG=��.����system_locale_lang�cups_printer_ppd_defaults�PageSize�remote_cups_queue_attributesz
media-default�test_page_job_statusrrTF)�answers�locale�	getlocale�LC_MESSAGES�LC_CTYPE�open�	readlines�IOError�
startswith�strip�findr�items�KeyErrorr�set_textr)r�messages�encoding�ctype�system_lang�conf�conffile�line�dotr�ppd_defs�group�options�attrs�
job_statusr�test�jobid�printer�doc�statusrrr�display6s�

�
�
�
������




�zLocale.displaycCs|jS)N)r')rrrr�collect_answeryszLocale.collect_answerN)�__name__�
__module__�__qualname__r	rGrHrrrrrsCr)r(�
gi.repositoryr�baserrrrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit