Ñò
•OMc           @   sY   d  Z  d d k l Z d „  Z e ƒ  Z d „  Z e ƒ  Z d „  Z e ƒ  Z	 d „  Z
 d S(   s5   helper functions for translation file formats supportiÿÿÿÿ(   t   ugettext_lazyc       /   C   sà  g  }  d d k  l } |  i d t d ƒ | d f ƒ y3 d d k l } |  i d t d ƒ | d f ƒ Wn t j
 o n Xy3 d d	 k l } |  i d
 t d ƒ | d f ƒ Wn t j
 o n Xy3 d d k	 l
 } |  i d t d ƒ | d f ƒ Wn t j
 o n Xy3 d d k l } |  i d t d ƒ | d f ƒ Wn t j
 o n Xy3 d d k l } |  i d t d ƒ | d f ƒ Wn t j
 o n Xy3 d d k l } |  i d t d ƒ | d f ƒ Wn t j
 o n Xy3 d d k l } |  i d t d ƒ | d f ƒ WnB t j
 o6 d d k l }	 |  i d t d ƒ |	 d f ƒ n Xy3 d d k l }
 |  i d t d ƒ |
 d f ƒ Wn t j
 o n Xy3 d d k l } |  i d  t d! ƒ | d f ƒ Wn t j
 o n Xd d" k l } |  i d# t d$ ƒ | d f ƒ y¢ d d% k l } l } l } l } |  i d& t d' ƒ | d f ƒ |  i d( t d) ƒ | d f ƒ |  i d* t d+ ƒ | d f ƒ |  i d, t d- ƒ | d f ƒ Wn t j
 o n X|  S(.   Niÿÿÿÿ(   t   pofilet   pos
   Gettext POt	   bilingual(   t	   xlifffilet   xlft   XLIFF(   t   tsfilet   tss   Qt ts(   t   tmxfilet   tmxt   TMX(   t   tbxfilet   tbxt   TBX(   t   CatkeysFilet   catkeyss   Haiku catkeys(   t   csvfilet   csvs	   Excel CSV(   t   javafilet
   propertiess   Java Propertiest   monolingual(   t   propfile(   t   javautf8files   Java Properties (UTF-8)(   t   stringsfilet   stringss   OS X Strings(   t   phpfilet   phps
   PHP arrays(   t
   SubRipFilet   MicroDVDFilet   AdvSubStationAlphaFilet   SubStationAlphaFilet   srts   Subtitles: srtt   subs   Subtitles: subt   ssas   Subtitles: ssat   asss   Subtitles: ass(   t   translate.storage.poR   t   appendt   _t   translate.storage.xliffR   t   ImportErrort   translate.storage.ts2R   t   translate.storage.tmxR	   t   translate.storage.tbxR   t   translate.storage.catkeysR   t   translate.storage.csvl10nR   t   translate.storage.propertiesR   R   R   R   t   translate.storage.phpR   t   translate.storage.subtitlesR   R   R   R   (   t   formatsR   R   R   R	   R   R   R   R   R   R   R   R   R   R   R   R   (    (    s4   /var/www/Pootle/local_apps/pootle_store/filetypes.pyt   get_supported_formats   sx    #######$##"#c          C   s-   g  }  t  D] } |  | d | d f q ~  S(   Ni    i   (   t   supported_formats(   t   _[1]t   format(    (    s4   /var/www/Pootle/local_apps/pootle_store/filetypes.pyt   get_filetype_choices^   s    c          C   s4   t  d „  t Dƒ ƒ }  d d k l } | |  d <|  S(   Nc         s   s'   x  |  ] } | d  | d f Vq Wd S(   i    i   N(    (   t   .0R5   (    (    s4   /var/www/Pootle/local_apps/pootle_store/filetypes.pys	   <genexpr>c   s   	 iÿÿÿÿ(   R   t   pot(   t   dictR3   R$   R   (   t   classesR   (    (    s4   /var/www/Pootle/local_apps/pootle_store/filetypes.pyt   get_factory_classesb   s    
c         C   s,   t  d „  t Dƒ ƒ } | i |  d ƒ d j S(   Nc         s   s'   x  |  ] } | d  | d f Vq Wd S(   i   i   N(    (   R7   R5   (    (    s4   /var/www/Pootle/local_apps/pootle_store/filetypes.pys	   <genexpr>k   s   	 R   R   (   R9   R3   t   get(   t   klassR:   (    (    s4   /var/www/Pootle/local_apps/pootle_store/filetypes.pyt   is_monolingualj   s    N(   t   __doc__t   django.utils.translationR    R&   R2   R3   R6   t   filetype_choicesR;   t   factory_classesR>   (    (    (    s4   /var/www/Pootle/local_apps/pootle_store/filetypes.pyt   <module>   s   	C					