-
Notifications
You must be signed in to change notification settings - Fork 4
Localization
Raphael Menges edited this page Oct 20, 2015
·
10 revisions
Localization is saved in a ".leyegui" file with UTF-8 encoding. Keys are used to map elements to entries.
SettingsHeader=Einstellungen
SettingsBackButton=Zurück
The path to the localization file is an optional parameter of the initial GUI creation function of the interface.
eyegui::GUI* eyegui::createGUI(
int width,
int height,
std::string fontFilepath = "",
CharacterSet characterSet = CharacterSet::US_ENGLISH,
std::string localizationFilepath = "");To use an entry as text content of an element, one has to use the same key in the localization file as in the elements "key" attribute. For example, the TextBlock displays text which can be defined in a localization file. One can create for each supported language one localization file with the same keys and different entries.