summaryrefslogtreecommitdiff
path: root/include/locales.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/locales.hpp')
-rw-r--r--include/locales.hpp31
1 files changed, 17 insertions, 14 deletions
diff --git a/include/locales.hpp b/include/locales.hpp
index d361f1e..ec6cc74 100644
--- a/include/locales.hpp
+++ b/include/locales.hpp
@@ -16,20 +16,23 @@
#pragma once
-typedef struct {
- const char* key;
- const char* value;
-} locale_entry;
+namespace locale {
-typedef struct {
- const char* lang_code;
- locale_entry* entries;
- int entry_count;
-} locale_map;
+ typedef struct {
+ const char* key;
+ const char* value;
+ } locale_entry;
-extern locale_entry en_locales[];
-extern const int en_locale_count;
+ typedef struct {
+ const char* lang_code;
+ locale_entry* entries;
+ int entry_count;
+ } locale_map;
-const char* get_locale();
-void set_locale(const char key[2]);
-const char* localize(const char* key); \ No newline at end of file
+ extern locale_entry en_locales[];
+ extern const int en_locale_count;
+
+ const char* get_locale();
+ void set_locale(const char key[2]);
+ const char* get(const char* key);
+} \ No newline at end of file