@@ -200,21 +200,11 @@ class Language:
200200 in_prod : bool
201201 sphinxopts : tuple
202202 html_only : bool = False
203- repo_name : str = None
204203
205204 @property
206205 def tag (self ):
207206 return self .iso639_tag .replace ("_" , "-" ).lower ()
208207
209- @property
210- def repo_url (self ):
211- repo_name = (
212- self .repo_name
213- if self .repo_name is not None
214- else f"python-docs-{ self .iso639_tag } "
215- )
216- return f"https://github.com/python/{ repo_name } .git"
217-
218208 @property
219209 def switcher_label (self ):
220210 if self .translated_name :
@@ -691,14 +681,15 @@ def clone_translation(self):
691681 def translation_repo (self ):
692682 """See PEP 545 for translations repository naming convention."""
693683
684+ locale_repo = f"https://github.com/python/python-docs-{ self .language .tag } .git"
694685 locale_clone_dir = (
695686 self .build_root
696687 / self .version .name
697688 / "locale"
698689 / self .language .iso639_tag
699690 / "LC_MESSAGES"
700691 )
701- return Repository (self . language . repo_url , locale_clone_dir )
692+ return Repository (locale_repo , locale_clone_dir )
702693
703694 @property
704695 def translation_branch (self ):
@@ -1179,7 +1170,6 @@ def parse_languages_from_config() -> list[Language]:
11791170 in_prod = section .get ("in_prod" , default_in_prod ),
11801171 sphinxopts = section .get ("sphinxopts" , default_sphinxopts ),
11811172 html_only = section .get ("html_only" , default_html_only ),
1182- repo_name = section .get ("repo_name" ),
11831173 )
11841174 for iso639_tag , section in config ["languages" ].items ()
11851175 ]
0 commit comments