Skip to content

Commit

Permalink
fix BoboTiG#341: [FR] Support 'mn-lien' template
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Nov 23, 2020
1 parent f5199a3 commit 9f669f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/lang/fr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,8 @@
"lexique": "term(', '.join(capitalize(p) for p in parts[1:-1]))",
# {{localités|fr|d’Espagne}}
"localités": "term('Géographie')",
# {{mn-lien|далай|dalai|ᠲᠠᠯᠠᠢ}}
"mn-lien": "f'{parts[1]} (MNS : {italic(parts[2])})'",
# {{nobr|1 000 000 000 000}}
"nobr": "re.sub(r'^1=', '', parts[-1].replace(' ', ' ').replace('!', '|'))",
# {{nom w pc|Aldous|Huxley}}
Expand Down
1 change: 1 addition & 0 deletions tests/test_fr.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ def test_parse_word(
("{{incise|texte placé en incise}}", "— texte placé en incise —"),
("{{incise|texte placé en incise|stop}}", "— texte placé en incise"),
("{{instruments à cordes|fr}}", "<i>(Musique)</i>"),
("{{mn-lien|далай|dalai|ᠲᠠᠯᠠᠢ}}", "далай (MNS : <i>dalai</i>)"),
("{{musiciens|fr}}", "<i>(Musique)</i>"),
("{{nobr|1 000 000 000 000}}", "1&nbsp;000&nbsp;000&nbsp;000&nbsp;000"),
("{{nobr|ℶ₀ {{=}} [[ℵ₀]]}}", "ℶ₀&nbsp;=&nbsp;ℵ₀"),
Expand Down

0 comments on commit 9f669f1

Please sign in to comment.