Skip to content

Commit

Permalink
fix BoboTiG#232: [FR] support l template
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Nov 20, 2020
1 parent e67731d commit eb92100
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/lang/fr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,8 @@ def last_template_handler(template: Tuple[str, ...], locale: str) -> str:
>>> last_template_handler(["polytonique", "φόβος", "phóbos", "sens=effroi, peur"], "fr")
'φόβος, <i>phóbos</i> («&nbsp;effroi, peur&nbsp;»)'
>>> last_template_handler(["l", "dies Lunae", "la"], "fr")
'dies Lunae'
>>> last_template_handler(["lien", "渦", "zh-Hans"], "fr")
'渦'
>>> last_template_handler(["lien", "フランス", "ja", "sens=France"], "fr")
Expand Down Expand Up @@ -849,7 +851,7 @@ def last_template_handler(template: Tuple[str, ...], locale: str) -> str:
return phrase

# Handle the {{lien}} template
if tpl == "lien":
if tpl == "lien" or tpl == "l":
phrase = parts[0]
for part in parts[1:]:
if part.startswith("tr="):
Expand Down

0 comments on commit eb92100

Please sign in to comment.