ó
    TÕÓi¢  ã                   ó¦   • S SK Jr  S SKJr  S SKJr  S SKJr  S SKJ	r	  S SK
Jr  S SKJr  S SKJr  S S	KJr  S S
KJr  S rSS\S\4S jjrS\4S jrg)é    )ÚITranslation)ÚHtml)ÚOdp)ÚOdt)ÚDocx)ÚPptx)ÚTxt)ÚEpub)ÚSrt)ÚPdfc            
      ó¨   • [        5       [        5       [        5       [        5       [	        5       [        5       [        5       [        5       [        5       /	$ ©N)	r	   r   r   r   r   r
   r   r   r   © ó    Úy/var/www/html/backend/Backoffice_Marketplace/venv/lib/python3.13/site-packages/argostranslatefiles/argostranslatefiles.pyÚget_supported_formatsr      s9   € ä‹Ü‹Ü‹Ü‹Ü‹Ü‹Ü‹Ü‹Ü‹ð
ð 
r   NÚunderlying_translationÚ	file_pathc                 óŠ   • [        5        H5  nUR                  U5      (       d  M  Ub  X#l        UR                  X5      s  $    g)zÁTranslate a file.

Args:
    underlying_translation (argostranslate.translate.ITranslation): Argos Translate Translation
    file_path (str): file path

Returns:
    file_path: Translated file
F)r   ÚsupportÚget_output_pathÚ	translate)r   r   r   Úsupported_formats       r   Útranslate_filer      sF   € ô 2Ö3ÐØ×#Ñ# I×.Ó.ØÑ*Ø3BÔ0Ø#×-Ñ-Ð.DÓPÒPñ	 4ð r   c                 óx   • [        5        H,  nUR                  U 5      (       d  M  UR                  U 5      s  $    g)z`Get the file contents.

Args:
    file_path (str): file path

Returns:
    texts: File contents
F)r   r   Ú	get_texts)r   r   s     r   r   r   /   s9   € ô 2Ö3ÐØ×#Ñ# I×.Ó.Ø#×-Ñ-¨iÓ8Ò8ñ 4ð r   r   )Úargostranslate.translater   Ú argostranslatefiles.formats.htmlr   Ú,argostranslatefiles.formats.opendocument.odpr   Ú,argostranslatefiles.formats.opendocument.odtr   Ú(argostranslatefiles.formats.openxml.docxr   Ú(argostranslatefiles.formats.openxml.pptxr   Úargostranslatefiles.formats.txtr	   Ú argostranslatefiles.formats.epubr
   Úargostranslatefiles.formats.srtr   Úargostranslatefiles.formats.pdfr   r   Ústrr   r   r   r   r   Ú<module>r(      sG   ðÝ 1å 1Ý <Ý <Ý 9Ý 9Ý /Ý 1Ý /Ý /òñ¨<ð ÀCõ ð(˜õ r   