---
name: "reload_config_texts"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/reload_config_texts"
---

# reload\_config\_texts(3alleg)

Reloads translated strings returned by get\_config\_text(). Allegro game programming library.

## NAME

reload\_config\_texts - Reloads translated strings returned by get\_config\_text(). Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**void reload\_config\_texts(const char \*new\_language);**

## DESCRIPTION

Reloads the translated strings returned by get\_config\_text(). This is useful to switch to another language in your program at runtime. If you want to modify the \`\[system\]' language configuration variable yourself, or you have switched configuration files, you will want to pass NULL to just reload whatever language is currently selected. Or you can pass a string containing the two letter code of the language you desire to switch to, and the function will modify the language variable. After you call this function, the previously returned pointers of get\_config\_text() will be invalid. Example:

```
   ...
   /* The user selects French from a language choice menu. */
   reload_config_texts("FR");
```

## SEE ALSO

[**get\_config\_text**(3alleg)](/get_config_text/3alleg.md), [**get\_config\_string**(3alleg)](/get_config_string/3alleg.md)
