From ff7b0e66d9354e0c4d5e3e6495ef9a01d89fab5c Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Mon, 29 Apr 2024 01:20:29 -0400 Subject: [PATCH] fix: use high-speed method for C locale too (#681) Signed-off-by: Henry Schreiner --- plumbum/cli/i18n.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plumbum/cli/i18n.py b/plumbum/cli/i18n.py index 933b27850..8e22f6887 100644 --- a/plumbum/cli/i18n.py +++ b/plumbum/cli/i18n.py @@ -2,7 +2,7 @@ # High performance method for English (no translation needed) loc = locale.getlocale()[0] -if loc is None or loc.startswith("en"): +if loc is None or loc.startswith("en") or loc == "C": class NullTranslation: def gettext(self, str1: str) -> str: # pylint: disable=no-self-use