Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
reload_config_texts(3)		 Allegro manual 	  reload_config_texts(3)

NAME
     reload_config_texts  -  Reloads  translated  strings  returned  by get_con-
     fig_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  use-
     ful  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 re-
     load whatever language is currently selected. Or you can pass a string con-
     taining the two letter code of the language you desire to	switch	to,  and
     the  function  will modify the language variable. After you call this func-
     tion, the previously returned pointers of	get_config_text()  will  be  in-
     valid. Example:

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

SEE ALSO
     get_config_text(3), get_config_string(3)

Allegro 			  version 4.4.3 	  reload_config_texts(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=reload_config_texts&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help