HEX
Server: Apache/2.4.65 (Debian)
System: Linux kubikelcreative 5.10.0-35-amd64 #1 SMP Debian 5.10.237-1 (2025-05-19) x86_64
User: www-data (33)
PHP: 8.4.13
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/cloudinit/config/__pycache__/cc_locale.cpython-39.pyc
a

��`��@s�dZddlmZddlmZddlmZmZddlm	Z	e	Z
dgZddd	ed
�eed�ed�ge
d
ddd�ddd�d�d�	Zee�Zdd�Z
dS)zLocale: set system locale�)�dedent)�util)�get_schema_doc�validate_cloudconfig_schema)�PER_INSTANCE�allZ	cc_localeZLocalezSet system localez|        Configure the system locale and apply it system wide. By default use
        the locale specified by the datasource.zL            # Set the locale to ar_AE
            locale: ar_AE
            z�            # Set the locale to fr_CA in /etc/alternate_path/locale
            locale: fr_CA
            locale_configfile: /etc/alternate_path/locale
            �object�stringz5The locale to set as the system's locale (e.g. ar_PS))�type�descriptionz_The file in which to write the locale configuration (defaults to the distro's default location))�locale�locale_configfile)	�id�name�titler�distrosZexamples�	frequencyr
Z
propertiescCsxt|�dkr|d}nt�|d|���}t�|�rD|�d||�dSt|t�|�d|�t�|d�}|j�	||�dS)Nrrz0Skipping module named %s, disabled by config: %szSetting locale to %sr
)
�lenr�get_cfg_option_str�
get_locale�is_false�debugr�schema�distro�apply_locale)r�cfg�cloud�log�argsrZlocale_cfgfile�r�</usr/lib/python3/dist-packages/cloudinit/config/cc_locale.py�handle?s

�
r!N)�__doc__�textwrapr�	cloudinitrZcloudinit.config.schemarr�cloudinit.settingsrrrrr!rrrr �<module>	s8������(