diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-10-05 14:37:11 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-10-05 14:37:11 +0200 |
| commit | 0a2b0e347d926ac0f29c9dd0f49e00634e822d0e (patch) | |
| tree | f84ecc1e559227b1435f6647b36d150f4b101585 /include/locales.hpp | |
| parent | cd827834f9ee329c27b82d987f0d1d48a854a954 (diff) | |
namespace administration
Diffstat (limited to 'include/locales.hpp')
| -rw-r--r-- | include/locales.hpp | 20 |
1 files changed, 5 insertions, 15 deletions
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); |
