1reload_config_texts(3) Allegro manual reload_config_texts(3)
2
3
4
6 reload_config_texts - Reloads translated strings returned by get_con‐
7 fig_text(). Allegro game programming library.
8
10 #include <allegro.h>
11
12
13 void reload_config_texts(const char *new_language);
14
16 Reloads the translated strings returned by get_config_text(). This is
17 useful to switch to another language in your program at runtime. If you
18 want to modify the `[system]' language configuration variable yourself,
19 or you have switched configuration files, you will want to pass NULL to
20 just reload whatever language is currently selected. Or you can pass a
21 string containing the two letter code of the language you desire to
22 switch to, and the function will modify the language variable. After
23 you call this function, the previously returned pointers of get_con‐
24 fig_text() will be invalid. Example:
25
26 ...
27 /* The user selects French from a language choice menu. */
28 reload_config_texts("FR");
29
30
32 get_config_text(3), get_config_string(3)
33
34
35
36Allegro version 4.4.3 reload_config_texts(3)