From eb921001788d8ac438edf966d06d61e8ecb750bf Mon Sep 17 00:00:00 2001 From: lasconic Date: Fri, 20 Nov 2020 15:46:52 +0100 Subject: [PATCH] fix #232: [FR] support l template --- scripts/lang/fr/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/lang/fr/__init__.py b/scripts/lang/fr/__init__.py index db532ea1c..885ddbc8d 100644 --- a/scripts/lang/fr/__init__.py +++ b/scripts/lang/fr/__init__.py @@ -616,6 +616,8 @@ def last_template_handler(template: Tuple[str, ...], locale: str) -> str: >>> last_template_handler(["polytonique", "φόβος", "phóbos", "sens=effroi, peur"], "fr") 'φόβος, phóbos (« effroi, peur »)' + >>> 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") @@ -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="):