o
    wÚ7e†  ã                
   @   sÂ   U d Z ddlZddlmZ ddlmZ ddlmZ ddlm	Z	 ddl
mZmZ ddlmZ d	gZd
ddedƒeedƒedƒgeg dœZeed< eeƒZ e e¡Zdede	dededdf
dd„ZdS )zLocale: set system localeé    N)Údedent)Úutil)ÚCloud)ÚConfig)Ú
MetaSchemaÚget_meta_doc)ÚPER_INSTANCEÚallÚ	cc_localeÚLocalezSet 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
            )ÚidÚnameÚtitleÚdescriptionÚdistrosÚexamplesÚ	frequencyÚactivate_by_schema_keysÚmetar   ÚcfgÚcloudÚargsÚreturnc                 C   sn   t |ƒdkr|d }n	t |d| ¡ ¡}t |¡r"t d| |¡ d S t d|¡ t |d¡}|j ||¡ d S )Nr   Úlocalez0Skipping module named %s, disabled by config: %szSetting locale to %sÚlocale_configfile)	Úlenr   Úget_cfg_option_strÚ
get_localeÚis_falseÚLOGÚdebugÚdistroÚapply_locale)r   r   r   r   r   Úlocale_cfgfile© r$   ú</usr/lib/python3/dist-packages/cloudinit/config/cc_locale.pyÚhandle7   s   

ÿr&   )Ú__doc__ÚloggingÚtextwrapr   Ú	cloudinitr   Úcloudinit.cloudr   Úcloudinit.configr   Úcloudinit.config.schemar   r   Úcloudinit.settingsr   r   r   Ú__annotations__Ú	getLoggerÚ__name__r   ÚstrÚlistr&   r$   r$   r$   r%   Ú<module>   s:   ÿÿÿùæ
"