From 0a2b0e347d926ac0f29c9dd0f49e00634e822d0e Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 5 Oct 2025 14:37:11 +0200 Subject: namespace administration --- include/locales.hpp | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) (limited to 'include/locales.hpp') diff --git a/include/locales.hpp b/include/locales.hpp index ec6cc74..d0bf3f2 100644 --- a/include/locales.hpp +++ b/include/locales.hpp @@ -16,22 +16,12 @@ #pragma once -namespace locale { - - typedef struct { - const char* key; - const char* value; - } locale_entry; - - typedef struct { - const char* lang_code; - locale_entry* entries; - int entry_count; - } locale_map; - - extern locale_entry en_locales[]; - extern const int en_locale_count; +typedef struct { + const char* key; + const char* value; +} locale_entry; +namespace locale { const char* get_locale(); void set_locale(const char key[2]); const char* get(const char* key); -- cgit v1.2.3-70-g09d2