IupSetLanguage

IUP - Portable User Interface

IupSetLanguage

Defines the language used by some pre-defined dialogs. This is an old function, it just sets the global attribute LANGUAGE.

Parameters/Return

void IupSetLanguage(const char *lng); [in C] 
iup.SetLanguage(lng: string) [in Lua]

lng: Language to be used. Can have one of the following values:

  • "ENGLISH"
  • "PORTUGUESE"

default: "ENGLISH".

Affects

All elements that have predefined texts.

Examples

#include "iup.h"

void main(void)
{
  IupOpen();
  IupSetLanguage("ENGLISH"); 
  IupMessage("IUP Language", IupGetLanguage());
  IupClose();
}

See Also

IupGetLanguage, LANGUAGE