Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #232: [FR] support l template #233

Merged
merged 1 commit into from
Nov 20, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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