Skip to content

Commit

Permalink
Fix {{S|traductions}} addition
Browse files Browse the repository at this point in the history
  • Loading branch information
JackPotte committed Apr 5, 2020
1 parent 3bf99f7 commit 524dab4
Show file tree
Hide file tree
Showing 3 changed files with 167 additions and 159 deletions.
3 changes: 2 additions & 1 deletion src/lib/templates_translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,8 @@ def translate_link_templates(current_page):
final_page = final_page + current_page[
:re.search(r'{{[\n ]*' + old_template[m] + r' *[\|\n]', current_page).end() - 1]
current_page = current_page[re.search(r'{{[\n ]*' + old_template[m] + r' *[\|\n]', current_page).end() - 1:]
# Identification du code langue existant dans le modèle

# TODO split to get_template_language_from_template_page()
language_code = ''
if final_page.rfind('{{') != -1:
page_start = final_page[:final_page.rfind('{{')]
Expand Down
Loading

0 comments on commit 524dab4

Please sign in to comment.