Implements localization for the map mode.
More...
Go to the source code of this file.
Implements localization for the map mode.
Definition in file stats_mode_local.c.
◆ update_stats_local()
void update_stats_local |
( |
void | | ) |
|
Update localized strings for the stats mode.
Updates the localized strings used in the stats menu.
Updates all localized strings used in the stats window.
Definition at line 13 of file stats_mode_local.c.
13 {
14 for (int i = 0; i < MAX_STATS_STRINGS; i++) {
15 if (stats_mode_strings[i] != NULL) {
16 free(stats_mode_strings[i]);
17 }
18 }
19
20 stats_mode_strings[PLAYER_MENU_TITLE] =
get_local_string(
"STATS.PLAYER.MENU.TITLE");
21 stats_mode_strings[STATS_MENU_TITLE] =
get_local_string(
"STATS.STATS.MENU.TITLE");
22 stats_mode_strings[INVENTORY_MENU_TITLE] =
get_local_string(
"STATS.INVENTORY.MENU.TITLE");
33 stats_mode_strings[MAGIC_RESISTANCE_STR] =
get_local_string(
"MAGIC_RESISTANCE");
34 stats_mode_strings[AVAILABLE_SKILL_POINTS_STR] =
get_local_string(
"STATS.AV.SKILL_P");
35 stats_mode_strings[EQUIPPED_ARMOR_STR] =
get_local_string(
"STATS.EQUIPPED.ARMOR");
36 stats_mode_strings[EMPTY_ARMOR_SLOT_STR] =
get_local_string(
"STATS.EMPTY.ARMOR.SLOT");
37}
char * get_local_string(const char *key)
Get the localized string for the given key.
◆ stats_mode_strings
char** stats_mode_strings = NULL |