Ñò
?]Mc           @   sg   d  Z  d d k Z d d k l Z d d k l Z d „  Z e d j o e e  i d d ƒ ƒ GHn d S(	   s­   Convert a list's interpolation strings from %-strings to $-strings.

This script is intended to be run as a bin/withlist script, i.e.

% bin/withlist -l -r convert <mylist>
iÿÿÿÿN(   t   Utils(   t   _c         C   sa   x< d
 D]4 } t  |  | ƒ } t i | ƒ } t |  | | ƒ q Wd |  _ t d	 ƒ GH|  i ƒ  d  S(   Nt
   msg_headert
   msg_footert   digest_headert   digest_footert   autoresponse_postings_textt   autoresponse_admin_textt   autoresponse_request_texti   s   Saving list(   R   R   R   R   R   R   R   (   t   getattrR    t	   to_dollart   setattrt   use_dollar_stringsR   t   Save(   t   mlistt   attrt   st   t(    (    s   /usr/lib/mailman/bin/convert.pyt   convert   s      	t   __main__t   %s   %%(	   t   __doc__t   pathst   MailmanR    t   Mailman.i18nR   R   t   __name__t   replace(    (    (    s   /usr/lib/mailman/bin/convert.pyt   <module>   s   	
