@@ -200,21 +200,11 @@ class Language:
200
200
in_prod : bool
201
201
sphinxopts : tuple
202
202
html_only : bool = False
203
- repo_name : str = None
204
203
205
204
@property
206
205
def tag (self ):
207
206
return self .iso639_tag .replace ("_" , "-" ).lower ()
208
207
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
-
218
208
@property
219
209
def switcher_label (self ):
220
210
if self .translated_name :
@@ -691,14 +681,15 @@ def clone_translation(self):
691
681
def translation_repo (self ):
692
682
"""See PEP 545 for translations repository naming convention."""
693
683
684
+ locale_repo = f"https://github.com/python/python-docs-{ self .language .tag } .git"
694
685
locale_clone_dir = (
695
686
self .build_root
696
687
/ self .version .name
697
688
/ "locale"
698
689
/ self .language .iso639_tag
699
690
/ "LC_MESSAGES"
700
691
)
701
- return Repository (self . language . repo_url , locale_clone_dir )
692
+ return Repository (locale_repo , locale_clone_dir )
702
693
703
694
@property
704
695
def translation_branch (self ):
@@ -1179,7 +1170,6 @@ def parse_languages_from_config() -> list[Language]:
1179
1170
in_prod = section .get ("in_prod" , default_in_prod ),
1180
1171
sphinxopts = section .get ("sphinxopts" , default_sphinxopts ),
1181
1172
html_only = section .get ("html_only" , default_html_only ),
1182
- repo_name = section .get ("repo_name" ),
1183
1173
)
1184
1174
for iso639_tag , section in config ["languages" ].items ()
1185
1175
]
0 commit comments