fo UdZddlZddlmZddlmZddlmZddlm Z ddl m Z m Z ddl mZd gZd d d ed eededgegdZe ed<e eZej$eZdede dededdf dZy)zLocale: set system localeN)dedent)util)Cloud)Config) MetaSchema get_meta_doc) PER_INSTANCEall cc_localeLocalezSet 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 )idnametitle descriptiondistrosexamples frequencyactivate_by_schema_keysmetarcfgcloudargsreturnc`t|dk7r|d}n%tj|d|j}tj|rt j d||yt j d|tj|d}|jj||y)Nrlocalez0Skipping module named %s, disabled by config: %szSetting locale to %slocale_configfile) lenrget_cfg_option_str get_localeis_falseLOGdebugdistro apply_locale)rrrrrlocale_cfgfiles f  II$f-,,S2EFN LLfn5)__doc__loggingtextwrapr cloudinitrcloudinit.cloudrcloudinit.configrcloudinit.config.schemarrcloudinit.settingsr rr__annotations__ getLogger__name__r!strlistr'r(r&r7s !#<+ '    3     !5j: t g!6666%6t66r(