SDL: Fixed language detection on iOS

From 156b3b4a8c6717ba860b6bd0a16a69797b61b08f Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Fri, 3 Jan 2025 15:25:12 -0800
Subject: [PATCH] Fixed language detection on iOS

On iOS you might see traditional Chinese on a US phone as: "zh-Hans_US"
---
 src/locale/SDL_locale.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/locale/SDL_locale.c b/src/locale/SDL_locale.c
index d2c3a216426f6..09e011b7b3f8a 100644
--- a/src/locale/SDL_locale.c
+++ b/src/locale/SDL_locale.c
@@ -73,7 +73,7 @@ static SDL_Locale **build_locales_from_csv_string(char *csv, int *count)
         loc->language = ptr++;
         while (true) {
             const char ch = *ptr;
-            if (ch == '_' || ch == '-') {
+            if (ch == '_') {
                 *(ptr++) = '\0';
                 loc->country = ptr;
             } else if (SDL_isspace(ch)) {