DungeonCrawl
Loading...
Searching...
No Matches
language_menu_local.c
Go to the documentation of this file.
1
6
8
9#include <stdlib.h>
10
11char** language_menu_strings = NULL;
12
14 for (int i = 0; i < MAX_LANGUAGE_MENU_STRINGS; i++) {
15 if (language_menu_strings[i] != NULL) {
16 free(language_menu_strings[i]);
17 }
18 }
19
20 language_menu_strings[LANGUAGE_ENGLISH] = get_local_string("ENGLISH");
21 language_menu_strings[LANGUAGE_GERMAN] = get_local_string("GERMAN");
22}
void update_language_menu_local(void)
Updates the localized strings for the language menu.
Exposes functionality to manage the localization of the language menu.
char * get_local_string(const char *key)
Get the localized string for the given key.
Exposes public functions for the localization handler.