From 484e53529a173422a95c8f72d70a3e432c14db71 Mon Sep 17 00:00:00 2001 From: HashimAbdulaziz Date: Sun, 16 Aug 2026 09:05:56 +0300 Subject: [PATCH] L10n (Pt): matches all Portuguese locales, not only bare `pt` 359cb0a79a3531e382fdb0c99357252936f08bf2 renamed the key from `pt_BR` to `pt` but kept the exact-match guard, so only the literal string `pt` matched. Every real Portuguese locale (`pt_BR`, `pt_PT` and their charset and modifier variants) fell through to `goto error` and aborted. Return the offset unconditionally, matching every other two-letter case. --- src/options/display.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/options/display.c b/src/options/display.c index 20625be92a..36d408f78b 100644 --- a/src/options/display.c +++ b/src/options/display.c @@ -71,12 +71,7 @@ static uint32_t optionParseLanguageString(FFstrbuf* language) { case 'ja': return offsetof(FFModuleDisplayName, ja); case 'ko': return offsetof(FFModuleDisplayName, ko); case 'pl': return offsetof(FFModuleDisplayName, pl); - case 'pt': { - if (ffStrbufEqualS(language, "pt")) { - return offsetof(FFModuleDisplayName, pt); - } - goto error; - } + case 'pt': return offsetof(FFModuleDisplayName, pt); case 'ru': return offsetof(FFModuleDisplayName, ru); case 'zh': { if (ffStrbufEqualS(language, "zh_cn")) {