From 9f662947fd84ad87a9d1e75006bdd8678ef9bfc1 Mon Sep 17 00:00:00 2001 From: Spacehuhn Date: Wed, 16 Nov 2022 13:23:26 +0100 Subject: [PATCH] Fix locale names --- src/locale/locale.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/locale/locale.cpp b/src/locale/locale.cpp index 0fe90c2..628c8af 100644 --- a/src/locale/locale.cpp +++ b/src/locale/locale.cpp @@ -85,15 +85,15 @@ namespace locale { hid_locale_t *get(const char *name) { if (strncmp(name, "BE_MAC", 6) == 0) return &locale_be_mac; else if (strncmp(name, "BG_MAC", 6) == 0) return &locale_bg_mac; - else if (strncmp(name, "CA_FR_MAC", 9) == 0) return &locale_ca_fr_mac; - else if (strncmp(name, "CH_DE_MAC", 9) == 0) return &locale_ch_de_mac; - else if (strncmp(name, "CH_FR_MAC", 9) == 0) return &locale_ch_fr_mac; + else if (strncmp(name, "CA-FR_MAC", 9) == 0) return &locale_ca_fr_mac; + else if (strncmp(name, "CH-DE_MAC", 9) == 0) return &locale_ch_de_mac; + else if (strncmp(name, "CH-FR_MAC", 9) == 0) return &locale_ch_fr_mac; else if (strncmp(name, "CZ_MAC", 6) == 0) return &locale_cz_mac; else if (strncmp(name, "DE_MAC", 6) == 0) return &locale_de_mac; else if (strncmp(name, "DK_MAC", 6) == 0) return &locale_dk_mac; else if (strncmp(name, "EE_MAC", 6) == 0) return &locale_ee_mac; else if (strncmp(name, "ES_MAC", 6) == 0) return &locale_es_mac; - else if (strncmp(name, "ES_LA_MAC", 9) == 0) return &locale_es_la_mac; + else if (strncmp(name, "ES-LA_MAC", 9) == 0) return &locale_es_la_mac; else if (strncmp(name, "FI_MAC", 6) == 0) return &locale_fi_mac; else if (strncmp(name, "FR_MAC", 6) == 0) return &locale_fr_mac; else if (strncmp(name, "GB_MAC", 6) == 0) return &locale_gb_mac; @@ -108,7 +108,7 @@ namespace locale { else if (strncmp(name, "NO_MAC", 6) == 0) return &locale_no_mac; else if (strncmp(name, "PL_MAC", 6) == 0) return &locale_pl_mac; else if (strncmp(name, "PT_MAC", 6) == 0) return &locale_pt_mac; - else if (strncmp(name, "PT_BR_MAC", 9) == 0) return &locale_pt_br_mac; + else if (strncmp(name, "PT-BR_MAC", 9) == 0) return &locale_pt_br_mac; else if (strncmp(name, "RO_MAC", 6) == 0) return &locale_ro_mac; else if (strncmp(name, "RU_MAC", 6) == 0) return &locale_ru_mac; else if (strncmp(name, "SE_MAC", 6) == 0) return &locale_se_mac;