
\c           @  sL  d  d l  m Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l	 Z	 d e
 f d     YZ d   Z d e
 f d     YZ d   Z d	 e j k Z d
   Z d e
 f d     YZ d   Z e j
 j d  Z e d  Z d   Z d   Z d   Z d a d   Z d a g  Z d   Z d   Z  e! d  Z" d   Z# d   Z$ i d d 6d d 6d d 6d  d! 6d" d# 6d$ d% 6d& d' 6d( d) 6d* d+ 6d, d- 6d. d/ 6d0 d1 6d2 d3 6d4 d5 6d6 d7 6d8 d9 6d: d; 6d< d= 6d> d? 6d@ dA 6dB dC 6dD dE 6dF dG 6dH dI 6dJ dK 6dL dM 6dN dO 6dP dQ 6dR dS 6dT dU 6dV dW 6dX dY 6dZ d[ 6d\ d] 6d^ d_ 6d` da 6db dc 6dd de 6df dg 6dh di 6dj dk 6dl dm 6dn do 6dp dq 6dr ds 6dt du 6dv dw 6dx dy 6dz d{ 6d| d} 6d~ d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d6dd6dd6dd6dd	6d
d6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6d d!6d"d#6d$d%6d&d'6d(d)6d*d+6d,d-6d.d/6d0d16d2d36d4d56d6d76d8d96d:d;6d<d=6d>d?6d@dA6dBdC6dDdE6dFdG6dHdI6dJdK6dLdM6dNdO6dPdQ6dRdS6dTdU6dVdW6dXdY6dZd[6d\d]6d^d_6d`da6dbdc6ddde6dfdg6dhdi6djdk6dldm6dndo6dpdq6drds6dtdu6dvdw6dvdx6Z% dy  Z& d S(z  i(   t   print_functionNt   ScriptTranslatorc           B  s8   e  Z d    Z d   Z d   Z d   Z d d  Z RS(   c         C  s   t    |  _ i  |  _ i  |  _ g  |  _ t j t  |  _ t j t	  |  _
 t j t  |  _ t j t  |  _ t j t  |  _ t j t  |  _ d  S(   N(   t   sett	   languagest   default_translatest   language_translatest   chain_worklistt   collectionst   defaultdictt   listt   file_translatest   StringTranslatort   stringst   blockt   early_blockt   pythont   additional_strings(   t   self(    (    ss   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\translation\__init__.pyt   __init__)   s    			c         C  s   t  |  j  S(   sC   
        Return the number of dialogue blocks in the game.
        (   t   lenR   (   R   (    (    ss   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\translation\__init__.pyt   count_translatesP   s    c         C  s  d } | s d St j j } t j j } t j j } t j j } t j j } t j j } t j	 j
 | d j  }	 t j j t j j |	   }	 x| D]}
 |
 j s q n  |
 j j t k	 r t |
 j t  r |
 j } q n  |
 j } | | k r2|
 j d k	 r|  j j |
 j  n  |  j |
 j j |
  q | | k r}|
 j d k	 rc|  j j |
 j  n  |  j |
 j j |
  q | | k r|
 j d k	 r|  j j |
 j  n  |  j |
 j j |
  q | | k r$x>|
 j D]? } | d } | d k r qn  |  j |	 j |
 j | f  qWq | | k r|
 j  d  } | d k rQq n  x | D]# } |  j |	 j |
 j | f  qXWq | | k r |
 j d k r|
 |  j! |
 j" <|  j# |	 j | |
 f  q|  j j |
 j  |
 |  j$ |
 j" |
 j f <|  j% j |
 j" |
 j f  q q Wd S(   s}   
        Takes the translates out of the flattened list of statements, and stores
        them into the dicts above.
        Ni    t   translation_strings(&   t   Nonet   renpyt   astt   TranslatePythont   TranslateBlockt   TranslateEarlyBlockt   Menut   UserStatementt	   Translatet   exportst   unelide_filenamet   filenamet   ost   patht   normpatht   abspatht   translation_relevantt   namet	   __class__t   tuplet
   isinstancet
   basestringt   languageR   t   addR   t   appendR   R   t   itemsR   t
   linenumbert   callR   t
   identifierR
   R   R   (   R   t   nodest   labelR   R   R   R   R   R   R!   t   nt   type_nt   it   sR   (    (    ss   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\translation\__init__.pyt   take_translatesW   sb    		
$$c         C  s   g  } xx |  j  D]m \ } } | |  j k rD | j | | f  q n  |  j | | f } |  j | j } t j j | j |  q W| |  _  d S(   sB   
        Chains nodes in non-default translates together.
        N(	   R   R   R.   R   t   afterR   R   t   chain_blockR   (   R   t	   unchainedR2   R,   t	   translatet	   next_node(    (    ss   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\translation\__init__.pyt   chain_translates   s    c         C  s   | j  d d  } t j j j } | d  k	 r{ |  j j | | f d   } | d  k r | r |  j j | | f d   } q n d  } | d  k r |  j | } n  | j	 d S(   Nt   .t   _i    (
   t   replaceR   t   gamet   preferencesR,   R   R   t   getR   R   (   R   R2   t	   alternateR,   t   tl(    (    ss   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\translation\__init__.pyt   lookup_translate   s    !N(   t   __name__t
   __module__R   R   R9   R?   R   RH   (    (    (    ss   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\translation\__init__.pyR   '   s
   	'		M	c         C  sW   |  j  d d  }  |  j  d d  }  |  j  d d  }  t j d d |   }  d |  d S(	   sG   
    Encodes a string in the format used by Ren'Py say statements.
    s   \s   \\s   
s   \ns   "s   \"s   (?<= ) s   \ (   RB   t   ret   sub(   R8   (    (    ss   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\translation\__init__.pyt   encode_say_string   s
    t   Restructurerc           B  s5   e  Z d    Z d   Z d   Z d   Z d   Z RS(   c         C  s/   d  |  _ d  |  _ t   |  _ |  j |  d  S(   N(   R   R4   RF   R   t   identifierst   callback(   R   t   children(    (    ss   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\translation\__init__.pyR      s    		c         C  s3   | |  j  k r t S| t j j j j k r/ t St S(   N(   RO   t   TrueR   RC   t   scriptt
   translatorR   t   False(   R   R2   (    (    ss   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\translation\__init__.pyt	   id_exists   s
    c         C  s   | d  k r | } n | j d d  d | } d } d } x@ t r} | | } |  j |  sa Pn  | d 7} d j |  } q> W| S(   NR@   RA   i    t    i   s   _{0}(   R   RB   RR   RV   t   format(   R   R4   t   digestt   baseR7   t   suffixR2   (    (    ss   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\translation\__init__.pyt   unique_identifier   s    		

c         C  s4  t  j   } x4 | D], } | j   } | j | j d  d  q W| j   d  } |  j |  j |  } |  j j	 |  |  j
 d k	 r |  j |  j
 |  } |  j j	 |  n d } | d j | d j f } t j j | | d | d | }	 | d j d	 |	 _ t j j |  }
 | d j d
 |
 _ |	 |
 g S(   sz   
        Creates an ast.Translate that wraps `block`. The block may only contain
        translatable statements.
        s   utf-8s   
i   i    RF   R=   t   end_translateN(   s	   translate(   R]   (   t   hashlibt   md5t   get_codet   updatet   encodet	   hexdigestR\   R4   RO   R-   RF   R   R!   R0   R   R   R   R'   t   EndTranslate(   R   R   R_   R7   t   codeRY   R2   RF   t   locRG   t   ed(    (    ss   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\translation\__init__.pyt   create_translate  s"    !c         C  sm  g  } g  } x(| D] } t  | t j j  rs | j ss | j j d  rX | j |  _ qp | j |  _ d |  _ qs n  t  | t j j
  s | j |  j  n  t  | t j j  r | j |  |  j |  } | j |  g  } q | j r | j |  q | r&|  j |  } | j |  g  } n  | j |  q W| rb|  j |  } | j |  g  } n  | | (d S(   s   
        This should be called with a list of statements. It restructures the statements
        in the list so that translatable statements are contained within translation blocks.
        RA   N(   R*   R   R   t   Labelt   hideR'   t
   startswithRF   R4   R   R   t   restructureRP   t   SayR.   Rh   t   extendt   translatable(   R   RQ   t   new_childrent   groupR7   RG   R3   (    (    ss   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\translation\__init__.pyRP   "  s8    					(   RI   RJ   R   RV   R\   Rh   RP   (    (    (    ss   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\translation\__init__.pyRN      s
   					!c         C  s   t  |   d  S(   N(   RN   (   RQ   (    (    ss   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\translation\__init__.pyRl   R  s    t   RENPY_UPDATE_STRINGSc         C  s   |  j  d d  }  |  j  d d  }  |  j  d d  }  |  j  d d  }  |  j  d	 d
  }  |  j  d d  }  |  j  d d  }  |  j  d d  }  |  j  d d  }  |  S(   Ns   \s   \\s   "s   \"s   s   \as   s   \bs   s   \fs   
s   \ns   s   \rs   	s   \ts   s   \v(   RB   (   R8   (    (    ss   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\translation\__init__.pyt   quote_unicode]  s    R   c           B  s2   e  Z d  Z d   Z d   Z d   Z d   Z RS(   s   
    This object stores the translations for a single language. It can also
    buffer unknown translations, and write them to a file at game's end, if
    we want that to happen.
    c         C  s   i  |  _  i  |  _ g  |  _ d  S(   N(   t   translationst   translation_loct   unknown(   R   (    (    ss   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\translation\__init__.pyR   r  s    		c         C  s   | |  j  k r | |  j k ri t | |  j |  |  j | \ } } t d j t |  | |    q t d j t |     n  | |  j  | <| d  k	 r | |  j | <n  d  S(   Ns/   A translation for "{}" already exists at {}:{}.s&   A translation for "{}" already exists.(   Rt   Ru   t   printt	   ExceptionRX   Rs   R   (   R   t   oldt   newt   newloct   fnt   line(    (    ss   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\translation\__init__.pyR-   }  s    		c         C  s   |  j  j | d   } | d  k	 r% | St rK | |  j  | <|  j j |  n  | d  k r t j d d |  } |  j  j | d   } n  | d  k	 r | S| S(   Ns	   \{\#.*?\}RW   (   Rt   RE   R   t   update_translationsRv   R.   RK   RL   (   R   Ry   Rz   t   notags(    (    ss   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\translation\__init__.pyR=     s    c         C  s   |  j  s d  S| d  k r7 t j j t j j d  } n' t j j t j j t j j | d  } t j	 j
 j |  } | j d j |   | j d  xV |  j  D]K } t |  } | j d j |   | j d j |   | j d  q W| j   d  S(   Ns   strings.rpyu   translate {} strings:
u   
u       old "{}"
u       new "{}"
(   Rv   R   R"   R#   t   joinR   t   configt   gamedirt   tl_directoryt   translationt
   generationt   open_tl_filet   writeRX   Rs   t   close(   R   R,   R|   t   fR7   (    (    ss   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\translation\__init__.pyt   write_updated_strings  s    	'(   RI   RJ   t   __doc__R   R-   R=   R   (    (    (    ss   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\translation\__init__.pyR   k  s
   			c         C  sC   t  j j j } | j |  } | j j |   | j | | |  d  S(   N(   R   RC   RS   RT   R   R   R-   (   R,   Ry   Rz   R{   RG   t   stl(    (    ss   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\translation\__init__.pyt   add_string_translation  s    t   defaultc         C  sA   | t  k r t j j j } n  t j j j j | } | j |   S(   s   
    :doc: translate_string
    :name: renpy.translate_string

    Translates interface string `s` to `language`. If `language` is Default,
    uses the language set in the preferences. This does not mark `s` to be
    translated.
    (	   t   DefaultR   RC   RD   R,   RS   RT   R   R=   (   R8   R,   R   (    (    ss   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\translation\__init__.pyt   translate_string  s    
c          C  s9   t  j j j j t  j j j }  |  j t  j j j  d  S(   N(   R   RC   RS   RT   R   RD   R,   R   (   R   (    (    ss   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\translation\__init__.pyR     s    c         C  s_  d   } t  j j |   j d d  } t j j |   } d } x | D] } | j d  } | j	   } | ss qF n  | d d k r qF n  | | d  } | d d k r | r t
 d	 j | |    n  | } n  | d d
 k rF | d k r
t
 d j | |    n  t | | | d  d } qF qF W| j   | d k	 r[t
 d	 j | |    n  d S(   s#   
    Loads the .rpt file `fn`.
    c         S  s(   |  j  d d  }  |  j  d d  }  |  S(   Ns   \ns   
s   \\s   \(   RB   (   R8   (    (    ss   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\translation\__init__.pyt   unquote  s    s   .rptRW   s   utf-8i    t   #i   t   <s-   {0} string {1!r} does not have a translation.t   >s1   {0} translation {1!r} doesn't belong to a string.N(   R"   R#   t   basenameRB   R   t   loadert   loadR   t   decodet   rstripRx   RX   R   R   (   R|   R   R,   R   Ry   t   lR8   (    (    ss   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\translation\__init__.pyt   load_rpt  s0    		
c          C  s:   x3 t  j j   D]" }  |  j d  r t |   q q Wd S(   s   
    Loads all .rpt files.
    s   .rptN(   R   R   t
   list_filest   endswithR   (   R|   (    (    ss   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\translation\__init__.pyt   load_all_rpts  s    c           C  s'   t  j j   a t   t  j j   d S(   s(   
    Called before the game starts.
    N(   R   t   stylet   backupt   style_backupR   t   storet   _init_language(    (    (    ss   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\translation\__init__.pyt   init_translation$  s    s   language never setc           s   x t  D] } | j   q W   f d   } t j j |  x+  j   D] } t j j | j j  qK Wx t j	 j
   D] } |   q| Wd  S(   Nc            sn   x2  j    D]# }  t j j   j |  j d  q Wx2  j   D]# }  t j j   j |  j d  qC Wd  S(   Ni    (   R   R   RC   t   contextt   runR   (   R7   (   R,   RG   (    ss   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\translation\__init__.pyt
   run_blocks=  s    !(   t   deferred_stylest   applyR   RC   t   invoke_in_new_contextR   t   py_exec_bytecodeRe   t   bytecodeR   t   language_callbacks(   RG   R,   R7   R   (    (   R,   RG   ss   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\translation\__init__.pyt   old_change_language8  s    c           s   x+  j    D] } t j  j | j j  q W   f d   } t j j |  x t j j   D] } |   qa Wx t	 D] } | j
   qy W   f d   } t j j |  t j j   d  S(   Nc            s9   x2  j    D]# }  t j j   j |  j d  q Wd  S(   Ni    (   R   R   RC   R   R   R   (   R7   (   R,   RG   (    ss   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\translation\__init__.pyR   R  s    c            s9   x2  j    D]# }  t j j   j |  j  d  q Wd  S(   Ni    (   R   R   RC   R   R   (   R7   (   R,   RG   (    ss   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\translation\__init__.pyR   ^  s    (   R   R   R   Re   R   RC   R   R   R   R   R   t   init_system_styles(   RG   R,   R7   R   (    (   R,   RG   ss   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\translation\__init__.pyt   new_change_languageM  s    c         C  s^  |  t  j j _ t |  k r& | r& d St  j j j } t  j j t	  t  j j
   x$ t  j j D] } t  j j |  q_ Wt  j j r t | |   n t | |   t  j j   t  j _ t  j j   t  j _ x t  j j D] } |   q Wt  j j   t  j j
   x$ t  j j D] } t  j j |  qWt  j j   |  t k rZt  j j   |  a n  d S(   s   
    :doc: translation_functions

    Changes the current language to `language`, which can be a string or
    None to use the default language.
    N(   R   RC   RD   R,   t   old_languageRS   RT   R   t   restoreR   t   rebuildR   t   translate_clean_storesR   t   clean_storet   new_translate_orderR   R   R   R	   t   _history_listt   nvl_listt   change_language_callbacksR   t   free_memoryt   reset_store_changest   restart_interactiont   block_rollback(   R,   t   forceRG   R7   (    (    ss   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\translation\__init__.pyt   change_languageg  s.    
c          C  s   t  j j d }  t  j j } |  j | j k r | j |  _ |  j } | d k	 r t  j j j	 j
 |  } | d k	 r t  j j | j   q q n  d S(   sw   
    Checks to see if the language has changed. If it has, jump to the start
    of the current translation block.
    iN(   R   RC   t   contextsRD   t   translate_languageR,   t   translate_identifierR   RS   RT   RH   t   JumpExceptionR'   (   t   ctxRD   t   tidt   node(    (    ss   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\translation\__init__.pyt   check_language  s    	c           C  s   d   t  j j j j D S(   s   
    :doc: translation_functions

    Returns the set of known languages. This does not include the default
    language, None.
    c         S  s"   h  |  ] } | d  k	 r |  q S(   N(   R   (   t   .0R7   (    (    ss   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\translation\__init__.pys	   <setcomp>  s   	 (   R   RC   RS   RT   R   (    (    (    ss   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\translation\__init__.pyt   known_languages  s    t	   abkhaziant   abt   afart   aat	   afrikaanst   aft   akant   akt   albaniant   sqt   amharict   amt   arabict   art	   aragoneset   ant   armeniant   hyt   assameset   ast   avarict   avt   avestant   aet   aymarat   ayt   azerbaijanit   azt   bambarat   bmt   bashkirt   bat   basquet   eut
   belarusiant   bet   bengalit   bnt   biharit   bht   bislamat   bit   bosniant   bst   bretont   brt	   bulgariant   bgt   burmeset   myt   catalant   cat   chamorrot   cht   chechent   cet   chewat   nyt   chuvasht   cvt   cornisht   kwt   corsicant   cot   creet   crt   croatiant   hrt   czecht   cst   danisht   dat	   maldiviant   dvt   dutcht   nlt   dzongkhat   dzt   englisht   ent   estoniant   ett   ewet   eet   faroeset   fot   fijiant   fjt   finnisht   fit   frencht   frt   fulaht   fft   galiciant   glt   georgiant   kat   germant   det   greekt   elt   guarant   gnt   gujaratit   gut   haitiant   htt   hausat   hat   hebrewt   het   hererot   hzt   hindit   hit	   hiri_motut   hot	   hungariant   hut
   indonesiant   idt   irisht   gat   igbot   igt   inupiaqt   ikt	   icelandict   ist   italiant   itt	   inuktitutt   iut   japaneset   jat   javaneset   jvt   greenlandict   klt   kannadat   knt   kanurit   krt   kashmirit   kst   kazakht   kkt   khmert   kmt   kikuyut   kit   kinyarwandat   rwt   kirghizt   kyt   komit   kvt   kongot   kgt   koreant   kot   kurdisht   kut   kuanyamat   kjt   latint   lat   luxembourgisht   lbt   gandat   lgt	   limburgant   lit   lingalat   lnt   laot   lot
   lithuaniant   ltt   latviant   lvt   manxt   gvt
   macedoniant   mkt   malagasyt   mgt   malayt   mst	   malayalamt   mlt   malteset   mtt   maorit   mit   marathit   mrt   marshalleset   mht	   mongoliant   mnt   naurut   nat   navahot   nvt   nepalit   net   ndongat   ngt	   norwegiant   not   nuosut   iit   ndebelet   nrt   occitant   oct   ojibwat   ojt   oromot   omt   oriyat   ort   ossetianR"   t   panjabit   pat   palit   pit   persiant   fat   polisht   plt   pashtot   pst
   portugueset   ptt   quechuat   qut   romansht   rmt   rundit   rnt   romaniant   rot   russiant   rut   sanskritt   sat	   sardiniant   sct   sindhit   sdt   samit   set   samoant   smt   sangot   sgt   serbiant   srt   gaelict   gdt   shonat   snt   sinhalat   sit   slovakt   skt   slovenet   slt   somalit   sot   sothot   stt   spanisht   est	   sundaneset   sut   swahilit   swt   swatit   sst   swedisht   svt   tamilt   tat   telugut   tet   tajikt   tgt   thait   tht   tigrinyat   tit   tibetant   bot   turkment   tkt   tagalogRG   t   tswanat   tnt   tongant   tot   turkisht   trt   tsongat   tst   tatart   ttt   twit   twt   tahitiant   tyt   uighurt   ugt	   ukrainiant   ukt   urdut   urt   uzbekt   uzt   vendat   vet
   vietnameset   vit   walloont   wat   welsht   cyt   woloft   wot   frisiant   fyt   xhosat   xht   yiddisht   yit   yorubat   yot   zhuangt   zat   zulut   zut   simplified_chineset   chst   traditional_chineset   chtt   zhc          C  s  d d  l  }  t j rH d d  l } | j j } |  j j | j    } n t j	 r d d l
 m } | d  } t | j   j    } n t j r d d  l } | j d  } | j   } | j d  j   j d  } | j d d  n% |  j   } | d  k	 r| d } n  | d  k rd S|  j |  }	 |	 | k rF| }
 } nH |	 } d	 | k rs| j d	 d
  \ } } n  | j   j d  \ }
 } |
 | f S(   Ni(   t	   autoclasss   java.util.Localet   NSLocalei    s   utf-8t   -RA   R@   i   (   NN(   t   localeR   t   windowst   ctypest   windllt   kernel32t   windows_localeRE   t   GetUserDefaultUILanguaget   androidt   jniusR'  t   strt
   getDefaultt   getLanguaget   iost   pyobjust   preferredLanguagest   objectAtIndex_t
   UTF8StringR   RB   t   getdefaultlocaleR   t	   normalizet   splitt   lower(   R*  R,  R-  t   locale_nameR'  t   LocaleR7  R(  R   R<  R,   t   regionRA   (    (    ss   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\translation\__init__.pyt   detect_user_locales  s8    			('   t
   __future__R    R   R^   RK   R   R"   t   timet   iot   codecst   objectR   RM   RN   Rl   t   environR~   Rs   R   R   t   SentinelR   R   R   R   R   R   R   R   R   R   R   R   RU   R   R   R   t   localesRB  (    (    (    ss   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\translation\__init__.pyt   <module>   s  	y		R			/				3		
