
    Vhp                        d dl Z d dlZd dlZd dlZd dlmZ d dlmZ d dlm	Z	 d dl
Z
d dlmZ d dlmZ d dlmZ d dlmZmZ d d	lmZmZmZmZ d d
lmZ d dlmZ d dlmZ d dlm Z  d dl!m"Z"  edejF                  ejH                  z        Z%d Z& e'       Z(d Z)d Z*e G d d             Z+ G d d      Z,d Z-d Z. G d de      Z/y)    N)total_ordering)	dropwhile)Path)settings)ImproperlyConfigured)NamedTemporaryFile)BaseCommandCommandError)find_commandhandle_extensionsis_ignored_pathpopen_wrapper)DEFAULT_LOCALE_ENCODING)cached_property)_lazy_re_compile)get_text_list)
templatizez$^(?P<value>"Plural-Forms.+?\\n")\s*$c                  F    | D ]  }t        |      t        d| d       y )NzCan't find z?. Make sure you have GNU gettext tools 0.19 or newer installed.)r   r
   )programsprograms     \/home/dcms/DCMS/lib/python3.12/site-packages/django/core/management/commands/makemessages.pycheck_programsr   !   s:      (gY '+ +     c                 ^    t        j                  d|       xs t        j                  d|       S )Nz^[a-z]+$z^[a-z]+_[A-Z0-9].*$)rematch)locales    r   is_valid_localer   *   s$    88K(TBHH5KV,TTr   c                   4    e Zd Zd Zd Zd Zd Zed        Zy)TranslatableFilec                 .    || _         || _        || _        y N)filedirpath
locale_dir)selfr$   	file_namer%   s       r   __init__zTranslatableFile.__init__0   s    	$r   c                     d| j                   j                  dt        j                  j	                  | j
                  | j                  g      dS )N<z: >)	__class____name__ossepjoinr$   r#   r&   s    r   __repr__zTranslatableFile.__repr__5   s6    NN##FFKKtyy12
 	
r   c                 4    | j                   |j                   k(  S r"   pathr&   others     r   __eq__zTranslatableFile.__eq__;   s    yyEJJ&&r   c                 4    | j                   |j                   k  S r"   r4   r6   s     r   __lt__zTranslatableFile.__lt__>   s    yy5::%%r   c                 j    t         j                  j                  | j                  | j                        S r"   )r.   r5   r0   r$   r#   r1   s    r   r5   zTranslatableFile.pathA   s    ww||DLL$))44r   N)	r-   
__module____qualname__r(   r2   r8   r:   propertyr5    r   r   r    r    .   s*    %

'& 5 5r   r    c                   X    e Zd ZdZd Zed        Zed        Zed        Zd Z	d Z
d Zy	)
	BuildFilezN
    Represent the state of a translatable file during the build process.
    c                 .    || _         || _        || _        y r"   )commanddomaintranslatable)r&   rC   rD   rE   s       r   r(   zBuildFile.__init__K   s    (r   c                     | j                   dk(  r;t        j                  j                  | j                  j
                        d   }|dk7  S y)Ndjango   .pyF)rD   r.   r5   splitextrE   r#   )r&   file_exts     r   is_templatizedzBuildFile.is_templatizedP   sA    ;;("ww''(9(9(>(>?BHu$$r   c                 .    | j                   j                  S r"   )rE   r5   r1   s    r   r5   zBuildFile.pathW   s      %%%r   c                     | j                   s| j                  S | j                  j                   d}t        j                  j                  | j                  j                  |      S )z
        Path to a file which is being fed into GNU gettext pipeline. This may
        be either a translatable or its preprocessed version.
        rI   )rL   r5   rE   r#   r.   r0   r$   )r&   filenames     r   	work_pathzBuildFile.work_path[   sQ     ""99'',,-S1ww||D--55x@@r   c                 d   | j                   syt        | j                  d      5 }|j                         }ddd       | j                  dk(  rt        | j                  dd       }t        | j                  dd      5 }|j                         ddd       y# 1 sw Y   exY w# 1 sw Y   yxY w)zz
        Preprocess (if necessary) a translatable file before passing it to
        xgettext GNU gettext utility.
        Nutf-8encodingrG      )originw)rL   openr5   readrD   r   rP   write)r&   fpsrc_datacontents       r   
preprocesszBuildFile.preprocessf   s    
 ""$))g. 	!"wwyH	! ;;(" $))AB-@G$..#8 	BHHW	 		! 	!	 	s   B?B&B#&B/c                 >   | j                   s|S t        j                  dk(  r| j                  | j                  n| j                  dd | j                  dd t        j                  dt        j                        z   dz   fd|t
        j                        S )z
        Postprocess messages generated by xgettext GNU gettext utility.

        Transform paths as if these messages were generated from original
        translatable files rather than from preprocessed versions.
        ntrU   Nz	^(#: .*)()c                 .    | d   j                        S )Nr   )replace)r   new_pathold_paths    r   <lambda>z0BuildFile.postprocess_messages.<locals>.<lambda>   s    %(**8X> r   )flags)	rL   r.   namerP   r5   r   subescape	MULTILINE)r&   msgsrd   re   s     @@r   postprocess_messageszBuildFile.postprocess_messagesw   s     ""K 77d?~~HyyH~~ab)Hyy}Hvv299X..5>,,	
 	
r   c                     | j                   rJt        j                  j                  | j                        r t        j
                  | j                         yyy)zM
        Remove a preprocessed copy of a translatable file (if any).
        N)rL   r.   r5   existsrP   unlinkr1   s    r   cleanupzBuildFile.cleanup   s=      ww~~dnn-		$..) .	 r   N)r-   r<   r=   __doc__r(   r   rL   r5   rP   r^   rm   rq   r?   r   r   rA   rA   F   sY    )
   & & A A"
4	*r   rA   c                 t    | j                         }|r|d   r|j                  d       dj                  |      S )a  
    Take a block of raw text that will be passed through str.splitlines() to
    get universal newlines treatment.

    Return the resulting block of text with normalized `
` EOL sequences ready
    to be written to disk using current platform's native EOLs.
     
)
splitlinesappendr0   )raw_contents
lines_lists     r   normalize_eolsr{      s8     ((*Jjn"99Z  r   c                    |j                         }t        j                  j                  |       rt	        t
        |      }nAg }d\  }}|D ]5  }|s|sd|v rd}|j                  dd      }|s|sd}|j                  |       7 dj                  |      }t        | ddd      5 }|j                  |       d	d	d	       y	# 1 sw Y   y	xY w)
z\
    Write the `potfile` with the `msgs` contents, making sure its format is
    valid.
    )FFzcharset=CHARSETTzcharset=UTF-8rv   arR   )rT   newlineN)rw   r.   r5   ro   r   lenrc   rx   r0   rX   rZ   )potfilerl   	pot_lineslinesfoundheader_readliner[   s           r   write_pot_filer      s    
 !I	ww~~g#y)){ 	D$, E<<(9?KD"LL	 99UD 
gsWd	; r
  s   "B==Cc                       e Zd ZdZeZeZg Zg dZ	dgZ
dgZddgZd Zd Zed	        Zed
        Zd Zd Zd Zd Zd Zd Zd Zy)CommandaH  Runs over the entire source tree of the current directory and pulls out all strings marked for translation. It creates (or updates) a message file in the conf/locale (in the django tree) or locale (for projects and applications) directory.

You must run this command with one of either the --locale, --exclude, or --all options.)z-qz--backup=nonez
--previousz--updatez--to-code=utf-8--no-obsoletez--from-code=UTF-8z--add-comments=Translatorsc           	      ,   |j                  ddg dd       |j                  ddg dd       |j                  d	d
dd       |j                  dddd       |j                  ddddd       |j                  dddd       |j                  ddddg dd        |j                  d!d"d#d$%       |j                  d&dd'       |j                  d(dd)       |j                  d*d+d,d-d./       |j                  d0dd1       |j                  d2dd3       y )4Nz--localez-lrx   zfCreates or updates the message files for the given locale(s) (e.g. pt_BR). Can be used multiple times.)defaultactionhelpz	--excludez-xz@Locales to exclude. Default is none. Can be used multiple times.z--domain-drG   z4The domain of the message files (default: "django").)r   r   z--allz-a
store_truez3Updates the message files for all existing locales.)r   r   z--extensionz-e
extensionszThe file extension(s) to examine (default: "html,txt,py", or "js" if the domain is "djangojs"). Separate multiple extensions with commas, or use -e multiple times.)destr   r   z
--symlinksz-szaFollows symlinks to directories when examining source code and templates for translation strings.z--ignorez-iignore_patternsPATTERNz`Ignore files or directories matching this glob-style pattern. Use multiple times to ignore more.)r   r   r   metavarr   z--no-default-ignorestore_falseuse_default_ignore_patternszJDon't ignore the common glob-style patterns 'CVS', '.*', '*~' and '*.pyc'.)r   r   r   	--no-wrapz2Don't break long message lines into several lines.--no-locationz%Don't write '#: filename:line' lines.z--add-location)fullr#   neverr   ?a'  Controls '#: filename:line' lines. If the option is 'full' (the default if not given), the lines  include both file name and line number. If it's 'file', the line number is omitted. If it's 'never', the lines are suppressed (same as --no-location). --add-location requires gettext 0.19 or newer.)choicesconstnargsr   r   z Remove obsolete message strings.z
--keep-potz<Keep .pot file after making messages. Useful when debugging.)add_argument)r&   parsers     r   add_argumentszCommand.add_arguments   s   6 	 		
 	S 	 	
 	G	 	 	
 	F	 	 	
 	0 	 	
 	5	 	 	
 	"1 	 		
 	! . 	 	
 	E 	 	

 	8 	 	

 	-A 	 	
 	3 	 	

 	O 	 	
r   c                     |d   }|d   }|d   | _         |d   | _        |d   }|d   }|d   | _        |d   }|d	   r|g d
z  }t        t	        |            | _        |d   r`| j                  d d  dgz   | _        | j                  d d  dgz   | _        | j                  d d  dgz   | _        | j                  d d  dgz   | _	        |d   r`| j                  d d  dgz   | _        | j                  d d  dgz   | _        | j                  d d  dgz   | _        | j                  d d  dgz   | _	        |d   rhd|d   z  }| j                  d d  |gz   | _        | j                  d d  |gz   | _        | j                  d d  |gz   | _        | j                  d d  |gz   | _	        |d   | _
        |d   | _        | j                   dvrt        d      | j                   dk(  r|xs dg}	n|xs g d}	t        |	      | _        |s|s|r| j                   Qt        dt        j                   j#                  t$        j&                  d         dt$        j&                  d   d      | j                  dkD  r;| j(                  j+                  dt-        t        | j                        d      z         d| _        g | _        d | _        t        j                   j5                  t        j                   j7                  d d            rzt        j                   j9                  t        j                   j7                  d d            g| _        | j0                  d   | _        | j
                  j;                  d!       d"| _        n| j<                  r)| j0                  j?                  t@        jB                         t        j                   j5                  d      r8| j0                  j;                  t        j                   j9                  d             | j0                  r5| j0                  d   | _        t        jD                  | j2                  d"#       tG        jH                  d$      }
tK        t        j                   j4                  tM        jL                  d%| j2                  z              }tO        t        j                   j"                  |      D cg c]  }|
jQ                  |      r| }}|r|}n |xs |}t	        |      jS                  |      }|rtU        d&d'd(       tU        d)       	 | jW                         }|D ]  }tY        |      stG        jP                  d*|      }|rJ|j[                         }|d+   j]                         }|d,   d d- j_                         |d,   d-d  z   }| d.| }n|j]                         }tY        |      r#| j(                  j+                  d/|d0|d1       n| j(                  j+                  d2|z         | j                  dkD  r| j(                  j+                  d3|z         |D ]  }| ja                  ||         	 | j                  s| jc                          y y c c}w # | j                  s| jc                          w w xY w)4Nr   excluderD   	verbosityallr   symlinksr   r   )CVSz.*z*~z*.pycno_wrapr   no_locationr   add_locationz--add-location=%sno_obsoletekeep_pot)rG   djangojszDcurrently makemessages only supports domains 'django' and 'djangojs'r   js)htmltxtpyzType 'r   z help rH   z' for usage information.z'examining files with the extensions: %sandFconfzviews/templates/i18n_catalog.jsTexist_okz[a-z]{2}z%s/*msguniqmsgmerge	msgattribxgettextzB^(?P<language>[a-zA-Z]+)(?P<separator>[^a-zA-Z])(?P<territory>.+)$language	territoryrU   _zinvalid locale z, did you mean r   zinvalid locale %szprocessing locale %s)2rD   r   r   listsetr   msgmerge_optionsmsguniq_optionsmsgattrib_optionsxgettext_optionsr   r   r
   r   r   r.   r5   basenamesysargvstdoutrZ   r   invoked_for_djangolocale_pathsdefault_locale_pathisdirr0   abspathrx   settings_availableextendr   LOCALE_PATHSmakedirsr   compilefilterglobmapr   
differencer   build_potfilesr   	groupdictlowerupperwrite_po_fileremove_potfiles)r&   argsoptionsr   r   process_allr   r   arg_add_locationextslooks_like_localelocale_dirs	lang_codeall_localeslocalespotfilesr   locale_partsr   r   proposed_localer   s                         r   handlezCommand.handle=  s%   ")$h' -en\*

+!"3401;;O#C$89 9$($9$9!$<}$LD!#'#7#7#:k]#JD %)%;%;A%>+%ND"$($9$9!$<}$LD!=!$($9$9!$<?P$PD!#'#7#7#:o=N#ND %)%;%;A%>/AR%RD"$($9$9!$<?P$PD!>"2W^5LL$($9$9!$<@P?Q$QD!#'#7#7#:>N=O#OD %)%;%;A%>BRAS%SD"$($9$9!$<@P?Q$QD!"=1
+;;44*  ;;*$'$D6!6D+D1w{t{{?R77##CHHQK0#((1+? 
 >>AKK9T__ 5u=>
 #(#' 77==fh78!#fh1O!P QD'+'8'8';D$  ''(IJ&*D#&&!!(()>)>?ww}}X&!!(()BC  +/+<+<Q+?(D44tD JJ{3GGMM499Vd.F.F%FG

 !!1!1;?
 &&y1 
 
 !G+G'l--g6G9j+>z"/	'**,H " (8&v.
 HH. 	E ','8#/
#;#A#A#C(5bq9??A*;7;< " .6Ja	{*C +1,,. '7)) !' / ))*=*FG>>A%KK%%&<v&EF' 8G&&w78O(8T ==$$& !A
@ ==$$& !s   5YD)Y Y=c                     t        ddgt              \  }}}t        j                  d|      }|r t	        d |j                         D              S t        d      )Nr   z	--version)stdout_encodingz(\d+)\.(\d+)\.?(\d+)?c              3   8   K   | ]  }|t        |        y wr"   )int).0ds     r   	<genexpr>z*Command.gettext_version.<locals>.<genexpr>  s     EAq}QEs   z/Unable to get gettext version. Is it installed?)r   r   r   searchtuplegroupsr
   )r&   outerrstatusms        r   gettext_versionzCommand.gettext_version  sY     )%3
S& II.4EEEEPQQr   c                     	 t         j                   y# t        $ r- | j                  dkD  r| j                  j                  d       Y yw xY w)NrH   z$Running without configured settings.FT)r   r   r   r   stderrrZ   r1   s    r   r   zCommand.settings_available  sH    	!!
 	 $ 	~~!!!"HI	s    3A	A	c                    | j                  d      }| j                          | j                  |       g }| j                  D ]  }t        j
                  j                  |d| j                  z        }t        j
                  j                  |      sPdg| j                  z   |gz   }t        |      \  }}}|rA|t        k7  rt        d|z        | j                  dkD  r| j                  j                  |       t!        |      }t#        |dd      5 }	|	j                  |       d	d	d	       |j%                  |        |S # 1 sw Y   xY w)
z<
        Build pot files and apply msguniq to them.
        .%s.potr   z(errors happened while running msguniq
%sr   rW   rR   rS   N)
find_filesr   process_filesr   r.   r5   r0   rD   ro   r   r   	STATUS_OKr
   r   r   rZ   r{   rX   rx   )
r&   	file_listr   r5   r   r   rl   errorsr   r[   s
             r   r   zCommand.build_potfiles  s+    OOC(	9%%% 	%Dggll4DKK)?@G77>>'*;!5!55	AD#0#6 D&&Y&&CfL  ^^a'KK%%f-!$'DgsW5 OOG$!	%"  s   D??E	c                     | j                   D ]d  }t        j                  j                  |d| j                  z        }t        j                  j                  |      sPt        j                  |       f y )Nr   )r   r.   r5   r0   rD   ro   rp   )r&   r5   pot_paths      r   r   zCommand.remove_potfiles  sP    %% 	$Dww||D(T[[*@AHww~~h'		(#	$r   c           
      |   g }g }| j                   rLt        j                  t        j                  fD cg c]#  }|rt        j
                  j                  |      % }}t	        j                  |d| j                        D ]  \  }}}|dd D ]A  }t        t        j
                  j                  t        j
                  j                  ||            | j                        s?t        j
                  j                  t        j
                  j                  |      |      |v r@|j                  |       | j                  dkD  s| j                  j!                  d|z         |dk(  s|j                  |       | j"                  j%                  dt        j
                  j                  t        j
                  j                  |      |             D |D ]T  }	t        j
                  j                  t        j
                  j                  ||	            }
t        j
                  j'                  |	      d   }|| j(                  vst        |
| j                        r2| j                  dkD  s| j                  j!                  d|	d	|       d}| j"                  D ]Q  }t        j
                  j                  |      j+                  t        j
                  j-                  |            sO|} n |xs | j.                  xs t0        }|j3                  | j5                  ||	|             W  t7        |      S c c}w )
zx
        Get all files in the given root. Also check that there is a matching
        locale dir for each file.
        T)topdownfollowlinksNrH   zignoring directory %sr   r   zignoring file  in )r   r   
MEDIA_ROOTSTATIC_ROOTr.   r5   normpathwalkr   r   r0   r   r   remover   r   rZ   r   insertrJ   r   
startswithdirnamer   NO_LOCALE_DIRrx   translatable_file_classsorted)r&   root	all_filesignored_rootspr$   dirnames	filenamesr  rO   	file_pathrK   r%   r5   s                 r   r   zCommand.find_files
  s   
 	"" #--x/C/CD   #M 
 -/GG$DMM-
 &	(GXy $A; #((gw)GH,, ww||BGGOOG$<gF-WOOG,~~)))*AG*KL(OOG,%%,,277<<(@'J  & GG,,RWW\\'8-LM	77++H5a84??2ot337 ~~)))8@'J "&J $ 1 1 "77??73>>rwwt?TU)-J!" ",!Xt/G/G!X=J$$44Wh
S#'&	N i  Ys   (L9c                     i }|D ]/  }|j                  |j                  g       }|j                  |       1 |j                         D ]  \  }}| j	                  ||        y)zu
        Group translatable files by locale directory and run pot file build
        process for each group.
        N)
setdefaultr%   rx   itemsprocess_locale_dir)r&   r   file_groupsrE   
file_groupr%   filess          r   r   zCommand.process_files@  sm    
 % 	,L$//0G0GLJl+	, "-!2!2!4 	7J##J6	7r   c                    g }|D ]  }| j                   dkD  r5| j                  j                  d|j                  d|j                         | j
                  dvrV| j                  | | j
                  |      }	 |j                          |j                  |        | j
                  d	k(  rd
d| j
                  dddddddg
}n)| j
                  dk(  rd
d| j
                  dddddddddg}ny|D cg c]  }|j                   }	}t        d      5 }
|
j                  dj                  |	             |
j                          |j!                  d|
j"                  g       |j!                  | j$                         t'        |      \  }}}ddd       rjt(        k7  r7|D ]  }|j                           t+        ddj                  |	      d|      | j                   dkD  r| j                  j                  |       r|t,        u rQ|D ]  }|j                           t.        j0                  j3                  |d   j0                        }t+        d|z        |D ]  }|j5                  |      } t.        j0                  j                  |d| j
                  z        }t7        ||       |D ]  }|j                           y# t        $ rD}| j                  j                  d|j                  d|j                  d|d       Y d}~d}~wt        $ r |D ]  }|j                            w xY wc c}w # 1 sw Y   xY w)z
        Extract translatable literals from the specified files, creating or
        updating the POT file for a given locale directory.

        Use the xgettext GNU gettext utility.
        rH   zprocessing file r  r   rG   z!UnicodeDecodeError: skipped file z
 (reason: ra   Nr   r   r   z--language=JavaScriptz--keyword=gettext_noopz--keyword=gettext_lazyz--keyword=ngettext_lazy:1,2z--keyword=pgettext:1c,2z--keyword=npgettext:1c,2,3z
--output=-rG   z--language=Pythonz--keyword=pgettext_lazy:1c,2z--keyword=npgettext_lazy:1c,2,3zw+)moderv   z--files-fromz*errors happened while running xgettext on r   zUnable to find a locale path to store translations for file %s. Make sure the 'locale' directory exists in an app or LOCALE_PATHS setting is set.r   )r   r   rZ   r#   r$   rD   build_file_classr^   UnicodeDecodeErrorBaseExceptionrq   rx   rP   r   r0   flushr   rh   r   r   r   r
   r  r.   r5   r
  rm   r   )r&   r%   r   build_filesrE   
build_fileer   bfinput_filesinput_files_listrl   r  r   r  r   s                   r   r  zCommand.process_locale_dirL  sA    ! 	+L~~!!!#((,*>*>@ {{"88..tT[[,OJ%%'  z*5	+8 ;;*$'((-),D [[H$#((-),.1D .9:r||::T* 	7.>""499[#9:""$KK)9)>)>?@KK--.#0#6 D&&	7 ""- )J&&()"yy-v7  !#!!&)]*"- )J&&()GG,,[^-@-@A	":<EF 
 * =
!66t<=ggll:x$++/EFG7D)% 	!J 	!g & 	!! %))$,,	   "- )J&&()	L ;	7 	7s+   9K /L0A8L5 	L-	9L%L-5L?c                    t         j                  j                  t         j                  j                  |      |d      }t        j                  |d       t         j                  j                  |d| j
                  z        }t         j                  j                  |      rdg| j                  z   ||gz   }t        |      \  }}}|rA|t        k7  rt        d|z        | j                  dkD  r| j                  j                  |       t        |      j                  d	      }	nDt!        |d	      5 }
|
j#                         }	d
d
d
       | j$                  s| j'                  	|      }	t)        	      }	|	j+                  d| j
                  z  d      }	t!        |dd	      5 }
|
j                  |	       d
d
d
       | j,                  rkdg| j.                  z   d||gz   }t        |      \  }	}}|rC|t        k7  rt        d|z        | j                  dkD  r| j                  j                  |       y
y
y
y
# 1 sw Y   xY w# 1 sw Y   xY w)z
        Create or update the PO file for self.domain and `locale`.
        Use contents of the existing `potfile`.

        Use msgmerge and msgattrib GNU gettext utilities.
        LC_MESSAGESTr   %s.por   z)errors happened while running msgmerge
%sr   rR   rS   Nz2#. #-#-#-#-#  %s.pot (PACKAGE VERSION)  #-#-#-#-#
ru   rW   r   z-oz*errors happened while running msgattrib
%s)r.   r5   r0   r  r   rD   ro   r   r   r   r
   r   r   rZ   r   	read_textrX   rY   r   copy_plural_formsr{   rc   r   r   )r&   r   r   basedirpofiler   r   r  r   rl   r[   s              r   r   zCommand.write_po_file  s    '',,rwww7O
Gd+gw'<=77>>&!<$"7"7767:KKD -d 3AvvY&&DvM  ^^a'KK%%f-<))7);Dg0 !Bwwy!**--dF;d#||ADKKOQS
 &#0 	BHHTN	 =4#9#99T66<RRD#0#6 D&&Y&&EN  ^^a'KK%%f- (  ! !	 	s   2H3!H?3H<?Ic           
      B   t         j                  j                  t         j                  j                  t         j                  j	                  t
        j                                    }| j                  dk(  rd}nd}|D ]  }t         j                  j                  |dd|dd|z        }t         j                  j                  |      sKt        |d	      5 }t        j                  |j                               }d
d
d
       s|d   }	| j                  dkD  r| j                  j                  d|	z         g }
d}|j!                         D ]0  }|s|rt        j                  |      r|	}d}|
j#                  |       2 dj                  |
      } |S  |S # 1 sw Y   xY w)z
        Copy plural forms header contents from a Django catalog of locale to
        the msgs string, inserting it at the right place. msgs should be the
        contents of a newly created .po file.
        r   r"  )rG   r   r   r/  r0  rR   rS   NvaluerH   zcopying plural forms: %sFTrv   )r.   r5   r
  r0   r  rG   __file__rD   ro   rX   plural_forms_rer   rY   r   r   rZ   rw   rx   )r&   rl   r   
django_dirdomainsrD   	django_por[   r   plural_form_liner   r   r   s                r   r2  zCommand.copy_plural_forms  sa    WW%%bggll277??6??3S&TU
;;*$,G!G 	FFHfmWvEUI ww~~i()g6 :"'..rwwy9A:'(z$~~)))*DGW*WXE!E $ 1 +$do6L6LT6R#3D$(ET*	+
  99U+D)	( : :s   $FF	N)r-   r<   r=   r   r    r  rA   r$  requires_system_checksr   r   r   r   r   r   r   r   r   r   r   r   r   r  r   r2  r?   r   r   r   r      s    	' 	 / H()O()+-IJa
FR'h R R  6$4!l
7g!R+.Zr   r   )0r   r.   r   r   	functoolsr   	itertoolsr   pathlibr   rG   django.confr   django.core.exceptionsr   django.core.files.tempr   django.core.management.baser	   r
   django.core.management.utilsr   r   r   r   django.utils.encodingr   django.utils.functionalr   django.utils.regex_helperr   django.utils.textr   django.utils.translationr   rk   DOTALLr8  r   objectr  r   r   r    rA   r{   r   r   r?   r   r   <module>rM     s     	 	 
 $      7 5 A  : 3 6 + /"+R\\BII-E 	U 5 5 5.T* T*n!6zk zr   